Re: On Logging - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: On Logging
Date
Msg-id 20050930225449.GL40138@pervasive.com
Whole thread Raw
In response to Re: On Logging  (Ron Mayer <rm_pg@cheapcomplexdevices.com>)
Responses Re: On Logging
List pgsql-hackers
On Mon, Sep 26, 2005 at 10:57:54AM -0700, Ron Mayer wrote:
> David Fetter wrote:
> >...log file formats in 8.0....
> >
> >* CSV
> >* YAML
> >* XML
> >* Piped logs, as Apache can do
> >* DB handle.  I know this one will be controversial.
> >[...]
> >1.  Am I the only one who would wants an option for machine-readable logs?
> 
> I'd very much like a format that can be easily loaded into
> a database (not necessarily the same one producing the logs :-) )
> in real time and/or be visible as a table through something
> like dbi-link.
> 
> I suppose any of the first three formats you suggest could work
> with dbi-link; or another alternate format
>   * sql insert statements
> would work if piped logs were supported by sending it to psql.

Apache seems to have the best, most flexible logging of anything out
there, and should probably be used as a model. It's pretty easy to have
it actually log to a database.

Whatever method we decide on, I think it would be very useful if we
supported multiple logging streams. I certainly wouldn't want to give up
a human-readable log to get a CSV one.

Is a logging mechanism the best way to do profiling? Seems like it might
be better to have a more efficient, dedicated method. But I'm not
against adding capabilities like per-backend logging, etc.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Open items list for 8.1
Next
From: Neil Conway
Date:
Subject: Re: Open items list for 8.1