Re: How could we make it simple to access the log as a table? - Mailing list pgsql-hackers

From David Fetter
Subject Re: How could we make it simple to access the log as a table?
Date
Msg-id 20120522171533.GB30943@fetter.org
Whole thread Raw
In response to How could we make it simple to access the log as a table?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
On Mon, May 21, 2012 at 05:53:55PM -0700, Josh Berkus wrote:
> Hackers,
> 
> There's a lot of great information in the postgres logs.  While we
> eventually want to get more sophisticated about providing users with
> status and history information, for 9.3 it would be really nice to
> just offer the current logs in system view format.
> 
> Certainly this can be done ad-hoc using CSV format and csv_fdw.
> However, such setups are fragile due to log rotation and other
> issues.  It seems like we could come up with a better way.  Ideas?

Would it help to automate this stuff with that CSV format?  The trick,
as I see it, is to make those on-disk log files be partitions of a
table.

Stephen Frost's point is well-taken, but I'm not sure we need to make
it a blocker for this.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: heap metapages
Next
From: Josh Berkus
Date:
Subject: Re: Changing the concept of a DATABASE