Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage)
Date
Msg-id 3747.940785581@sss.pgh.pa.us
Whole thread Raw
In response to Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage)  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
The Hermit Hacker <scrappy@hub.org> writes:
> Why not do something similar to what we are doing with pg_shadow?  If I
> remember the logic right, when you update pg_shadow, one ofits "steps" is
> to dump it to a text file so that postmaster can read it?

I thought about suggesting that, but IIRC the pg_shadow stuff doesn't
really *work* very well --- CREATE USER and friends know that they
are supposed to dump the table to a textfile after modifying it,
but heaven help you if you try poking pg_shadow with vanilla SQL
commands.  And I bet aborting a transaction after it does a CREATE USER
doesn't undo the changes to the flat file, either.

So, unless someone is feeling inspired to go rework the way the pg_shadow
stuff is handled, I don't think it's a good model to emulate.
        regards, tom lane


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage)
Next
From: Tim Holloway
Date:
Subject: Re: [HACKERS] RFC: Industrial-strength logging (long message)