Re: Logging query parmeters in auto_explain
От | Dagfinn Ilmari Mannsåker |
---|---|
Тема | Re: Logging query parmeters in auto_explain |
Дата | |
Msg-id | 87a69xkv7x.fsf@wibble.ilmari.org обсуждение исходный текст |
Ответ на | Re: Logging query parmeters in auto_explain (Michael Paquier <michael@paquier.xyz>) |
Ответы |
Re: Logging query parmeters in auto_explain
|
Список | pgsql-hackers |
Michael Paquier <michael@paquier.xyz> writes: > On Mon, Jun 27, 2022 at 12:27:57PM +0100, Dagfinn Ilmari Mannsåker wrote: >> I forgot to mention, I also changed the order of the query and >> parameters, so that they can more naturally be left out when no changes >> are needed. > > I can see that, and I have added $node as an extra parameter of the > routine. After putting my hands on that, it also felt a bit unnatural > to do the refactoring of the tests and the addition of the new GUC in > the same patch, so I have split things as the attached. The amount of > coverage is still the same but it makes the integration of the feature > easier to follow. That makes sense, but I still think the query_log() function definition should go at the end (after done_testing()), so the machinery doesn't distract from what's actually being tested. Also, the second paragraph of the second commit message now belongs in the first commit (without the word "Also"). Thanks, ilmari
В списке pgsql-hackers по дате отправления: