Re: Feature request -- Log Database Name
От | Robert Treat |
---|---|
Тема | Re: Feature request -- Log Database Name |
Дата | |
Msg-id | 1059414628.22259.800.camel@camel обсуждение исходный текст |
Ответ на | Re: Feature request -- Log Database Name (ohp@pyrenet.fr) |
Ответы |
Re: Feature request -- Log Database Name
|
Список | pgsql-hackers |
On Thu, 2003-07-24 at 11:23, ohp@pyrenet.fr wrote: > Also I was thinking that we could "hide" a log table into a "special" > schema like this: > > CREATE TABLE log ( > when timestamp, > user text, > table name, > query text, > error text); > > So that iff this table exists in a databse, all error reporting would > be logged in this table. > > This sounds complicated but IMHO would be unvaluable for debugging help > I think better would be a GUC "log_to_table" which wrote all standard out/err to a pg_log table. of course, I doubt you could make this foolproof (how to log startup errors in this table?) but it could be a start. Robert Treat -- Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
В списке pgsql-hackers по дате отправления: