Re: [PATCHES] Patch to log usage of temporary
От
Bruce Momjian
Тема
Re: [PATCHES] Patch to log usage of temporary
Дата
Msg-id
200701121936.l0CJavZ28203@momjian.us
Ответ на
Re: [pgsql-patches] [PATCHES] Patch to log usage of temporary files (Guillaume Smet)
Список
Дерево обсуждения
Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [PATCHES] Patch to log usage of temporary files "Guillaume Smet" <guillaume.smet@gmail.com>
Re: [PATCHES] Patch to log usage of temporary Bruce Momjian <bruce@momjian.us>
Re: [PATCHES] Patch to log usage of temporary files "Guillaume Smet" <guillaume.smet@gmail.com>
Re: [PATCHES] Patch to log usage of temporary Bruce Momjian <bruce@momjian.us>
Re: [PATCHES] Patch to log usage of temporary files "Guillaume Smet" <guillaume.smet@gmail.com>
Re: [PATCHES] Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files "Guillaume Smet" <guillaume.smet@gmail.com>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCHES] Patch to log usage of Bruce Momjian <bruce@momjian.us>
Re: Patch to log usage of temporary files Alvaro Herrera <alvherre@commandprompt.com>
Re: Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Patch to log usage of temporary files "Simon Riggs" <simon@2ndquadrant.com>
Re: [HACKERS] Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [HACKERS] Patch to log usage of temporary files Andrew Dunstan <andrew@dunslane.net>
Re: [HACKERS] Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [HACKERS] Patch to log usage of temporary files "Andrew Dunstan" <andrew@dunslane.net>
Re: [HACKERS] Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [HACKERS] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [HACKERS] Patch to log usage of temporary files Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Patch to log usage of temporary files Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files "Simon Riggs" <simon@2ndquadrant.com>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files "Simon Riggs" <simon@2ndquadrant.com>
Re: [HACKERS] [PATCHES] Patch to log usage of Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] [PATCHES] Patch to log usage oftemporary files "Simon Riggs" <simon@2ndquadrant.com>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files "Simon Riggs" <simon@2ndquadrant.com>
Re: [HACKERS] [PATCHES] Patch to log usage of temporary files "Jim C. Nasby" <jim@nasby.net>
Re: [HACKERS] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [HACKERS] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Patch to log usage of temporary files Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Patch to log usage of temporary files Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Patch to log usage of temporary files Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Patch to log usage of temporary files Bill Moran <wmoran@collaborativefusion.com>
Re: [HACKERS] Patch to log usage of temporary files Andrew Dunstan <andrew@dunslane.net>
Re: [HACKERS] Patch to log usage of temporary files Jim Nasby <decibel@decibel.org>
Re: Patch to log usage of temporary files Andrew Dunstan <andrew@dunslane.net>
Guillaume Smet wrote: > Hi Bruce, > > Thanks for your answer. > > On 1/12/07, Bruce Momjian wrote: > > We have the ability to conditionally print statements based on error > > level, but LOG isn't a valid level for log_min_error_statement. > > > > We could add a parameter that few people would use, but the right way to > > do this is to log all queries. > > > > We do not allow unlimited logging control or the system would be too > > complex. > > That's not what I had in mind. I was asking if the text of the query > was available when logging the temp file usage. If so it could be good > to add a DETAIL line with it directly and systematically when logging > the temp file usage. > > Sure that if you log every query, you could find which query was > responsible for that temp file but I suspect that this new log > feature will be used on production servers and so usually without > statement logging enabled. > > IMHO, it's really important to know which queries are responsible for > the temp file usage. > > If the text of the query is not available when logging the temp file > usage then I agree that we cannot do anything. Usually people don't want th query unless they ask for it. One nify trick would be to print the query as DETAIL unless they are already logging queries, but that just seems too complex. If you want the query, why not just log them all? -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
От: Guillaume Smet
Дата: