Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage)
Дата
Msg-id 3747.940785581@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage)  (The Hermit Hacker <scrappy@hub.org>)
Список 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 по дате отправления:

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [ADMIN] Re: [HACKERS] RFC: Industrial-strength logging (longmessage)
Следующее
От: Tim Holloway
Дата:
Сообщение: Re: [HACKERS] RFC: Industrial-strength logging (long message)