Re: [HACKERS] How to inspect tuples during execution of a plan?

2016-10-13 Thread Jim Nasby
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

Re: [HACKERS] How to inspect tuples during execution of a plan?

2016-10-12 Thread Ernst-Georg Schmid
Hello, > > 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

Re: [HACKERS] How to inspect tuples during execution of a plan?

2016-10-11 Thread Ashutosh Bapat
On Mon, Oct 10, 2016 at 1:39 PM, Ernst-Georg Schmid wrote: > Hello all, > > I'd like to inspect the content of tuples as they are sent during the > execution of a query in order to react to their values. The correct answer will depend upon the purpose of this

[HACKERS] How to inspect tuples during execution of a plan?

2016-10-10 Thread Ernst-Georg Schmid
Hello all, I'd like to inspect the content of tuples as they are sent during the execution of a query in order to react to their values. I guess I could do it with a FDW, but that's a bit clumsy so I took a look at the hooks but have two questions: 1.) Would ExecutorRun_hook be the correct