Re: [HACKERS] Passing query string to workers - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] Passing query string to workers
Date
Msg-id CA+TgmoaymWup8Qg_0xquvdU8rQnAGYoDd5oJ3MsQ4MBgUfiiGg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Passing query string to workers  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] Passing query string to workers  (Rafia Sabih <rafia.sabih@enterprisedb.com>)
List pgsql-hackers
On Wed, Jan 11, 2017 at 11:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Wed, Jan 11, 2017 at 6:36 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> That would work, if you had a way to get at the active QueryDesc ...
>>> but we don't pass that down to executor nodes.
>
>> Hmm, that is a bit of a problem.  Do you have a suggestion?
>
> Copy that string pointer into the EState, perhaps?

OK, that sounds good.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: tushar
Date:
Subject: Re: [HACKERS] Parallel bitmap heap scan
Next
From: "Karl O. Pinc"
Date:
Subject: Re: [HACKERS] Patch to implement pg_current_logfile() function