Allow auto_explain to log to NOTICE

From: Tom Dunstan <pgsql(at)tomd(dot)cc>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Allow auto_explain to log to NOTICE
Date: 2018-04-27 02:13:58
Message-ID: CAPPfruyZh+snR2AdmutrA0B_caj=yWZkLqxUTZYNjJCaQ_wKQg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-hackers

Hi all

This patch allows a user to configure auto_explain to log to NOTICE instead
of the server log. This allows automated testing of application-generated
queries to ensure correct plans etc from code that can inspect returned
notices but not the server log.

I don't see any tests for auto_explain so haven't added any test cases.
Happy to do so if that's deemed necessary.

Diff is against master. Also at
https://github.com/tomdcc/postgres/tree/auto-explain-notice

Cheers

Tom

Attachment Content-Type Size
auto-explain-notice-v1.diff application/octet-stream 3.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-04-27 02:16:38 Re: Allow auto_explain to log to NOTICE
Previous Message Amit Langote 2018-04-27 01:23:14 Re: Oddity in tuple routing for foreign partitions