Re: logging as inserts - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: logging as inserts
Date
Msg-id 200503031302.30032.josh@agliodbs.com
Whole thread Raw
In response to Re: logging as inserts  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: logging as inserts
List pgsql-hackers
Tom,

> That seems a bit bizarre to me.  The facility isn't a new log
> destination; what it is is a different way of formatting what's
> sent to the log.

It's not, but it functions like one.  And ultimately, the destination *is* 
someplace different; likely the DBA will be piping the log output to another 
database somewhere.

> log_message_format = 'INSERT INTO mytab VALUES(%this, %that, ...);'

Yeah, good idea.

> I wonder whether this could be defined in a way that lets it replace
> log_line_prefix ... otherwise we have to think about the interaction of
> the two facilities.

Well, that's why I like the idea of using log_destination.   It makes it clear 
that log_line_prefix doesn't work if log_destination <> 'stderr'.   

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco


pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: unexpected and reproducable crash in pl/pgsql function
Next
From: "Merlin Moncure"
Date:
Subject: Re: unexpected and reproducable crash in pl/pgsql function