Re: [HACKERS] Libpq functions - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Libpq functions
Date
Msg-id 199901100143.UAA19379@candle.pha.pa.us
Whole thread Raw
In response to RE: [HACKERS] Libpq functions  (Magnus Hagander <mha@sollentuna.net>)
List pgsql-hackers
> Also, I noticed that in backend/util/error/elog.c, it checks for "Pfout !=
> NULL" to see if it's running under the postmaster. If Pfout == NULL, it
> sends its data out to stderr instead of the client.
> Shouldn't it be safe to just if on the global "IsUnderPostmaster" boolean
> here? Or am I missing something? (I'm starting my work by trying to get rid
> of anything other than pqcomm.c using Pfout and Pfin).

Not sure, but it is possible the coder didn't know about the variable.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: "Stan Brown"
Date:
Subject: TCL/TK configure problems
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] RE: [GENERAL] Benchmarking PGSQL against Microsoft SQL 7