Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> writes:
> On 25/07/11 12:33, Harshitha S wrote:
>> But I just want to replace the implementation of the logging/tracing
>> in Postgres, so that the existing messages can be redirected to a
>> file, a USB etc.,
> OK. If you are running on Unix/Linux you can just tell your syslog
> daemon to do that for you, there's no need to modify PostgreSQL at all.
Or just redirect postmaster's stderr to the target file, and don't even
bother with syslog ...
regards, tom lane