From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: auto_explain sample rate |
Date: | 2015-05-29 03:35:17 |
Message-ID: | 14929.1432870517@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Craig Ringer <craig(at)2ndquadrant(dot)com> writes:
> It's sometimes desirable to collect auto_explain data with ANALYZE in order
> to track down hard-to-reproduce issues, but the performance impacts can be
> pretty hefty on the DB.
> I'm inclined to add a sample rate to auto_explain so that it can trigger
> only on x percent of queries,
That sounds reasonable ...
> and also add a sample test hook that can be
> used to target statements of interest more narrowly (using a C hook
> function).
You'd have to be pretty desperate, *and* knowledgeable, to write a
C function for that. Can't we invent something a bit more user-friendly
for the purpose? No idea what it should look like though.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-05-29 03:45:24 | Re: useless assignment pointer argument |
Previous Message | Joshua D. Drake | 2015-05-29 03:32:10 | Re: RFC: Remove contrib entirely |