On Tue, Nov 1, 2016 at 10:21 AM, Tomas Vondra <tomas.von...@2ndquadrant.com> wrote: > Clearly we need to pass some information to the worker processes, so that > they know whether to instrument the query or not. I don't know if there's a > good non-invasive way to do that from an extension - the easiest way I can > think of is using a bit of shared memory to pass the "sample query" flag - > attached is a patch that does that, and it seems to be working fine for me.
Uh, isn't this going to break as soon as there are multiple parallel queries in process at the same time? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers