Re: [HACKERS] Deadlock with pg_dump?
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] Deadlock with pg_dump? |
Дата | |
Msg-id | 200703011406.l21E6fe28790@momjian.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Deadlock with pg_dump? (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] Deadlock with pg_dump?
|
Список | pgsql-patches |
Tom Lane wrote: > Bruce Momjian <bruce@momjian.us> writes: > > I have coded up the following patch which places LOG just above ERROR in > > log_min_error_statement. > > LOG_NO_STATEMENT? What *are* you thinking? The kindest word I can find > for this is "baroque". > > What I had in mind was a one-line patch: > > if (edata->elevel >= log_min_error_statement && debug_query_string != NULL) > > becomes > > if (is_log_level_output(edata->elevel, log_min_error_statement) && debug_query_string != NULL) What are *you* thinking? Yes, that patch has that line, but log_statement and log_min_duration_statement is going to trigger log_min_error_statement so you are going to get the statement printed twice. LOG_NO_STATEMENT fixes that. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-patches по дате отправления: