OSDN Git Service

Make elog() switch to ErrorContext while invoking libpq output routines,
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Dec 2000 19:52:04 +0000 (19:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Dec 2000 19:52:04 +0000 (19:52 +0000)
commit08ede423d1fefee039474303b31e3474c92eda9e
tree9788fd38f77626ed9daa87ec58c072b0b4bd08b5
parenta49436d7e900e677af7f5598891e9d7514ccd464
Make elog() switch to ErrorContext while invoking libpq output routines,
since those routines may do palloc's.  We want to be fairly sure we can
send the error message to the client even under low-memory conditions.
That's what we stashed away 8K in ErrorContext for, after all ...
src/backend/utils/error/elog.c