Thread: pgsql: Only use the pipe chunking protocol if we know the syslogger

pgsql: Only use the pipe chunking protocol if we know the syslogger

From
adunstan@postgresql.org (Andrew Dunstan)
Date:
Log Message:
-----------
Only use the pipe chunking protocol if we know the syslogger should
be catching stderr output, and we are not ourselves the
syslogger. Otherwise, go directly to stderr.
Bug noticed by Tom Lane.
Backpatch as far as 8.0.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        postmaster.c (r1.505.2.3 -> r1.505.2.4)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.505.2.3&r2=1.505.2.4)
        syslogger.c (r1.29.2.1 -> r1.29.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/syslogger.c.diff?r1=1.29.2.1&r2=1.29.2.2)
    pgsql/src/backend/utils/error:
        elog.c (r1.178.2.2 -> r1.178.2.3)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/error/elog.c.diff?r1=1.178.2.2&r2=1.178.2.3)