Re: How to inspect tuples during execution of a plan? - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: How to inspect tuples during execution of a plan?
Date
Msg-id 3c27dc2f-dfe7-4c57-d891-9630b18f1507@BlueTreble.com
Whole thread Raw
In response to Re: How to inspect tuples during execution of a plan?  (Ernst-Georg Schmid <ernst.georg.schmid@googlemail.com>)
List pgsql-hackers
On 10/12/16 2:58 AM, Ernst-Georg Schmid wrote:
>> Either of those would do, if you want to write change the executor.
>> >
> I used the ExeceutorRun_hook and it seems to work. The drawback is,
> that I have to provide my own implementation of ExecutePlan() which
> could make it incompatible over versions of PostgreSQL. I don't know
> how stable that function is over time.

There might be another possibility, which would be to use one of the 
earlier hooks to change the query destination, and to implement a custom 
receiver.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Conflicting constraint being merged
Next
From: Merlin Moncure
Date:
Subject: emergency outage requiring database restart