Re: [HACKERS] Regarding identifying a foreign scan

2012-10-08 Thread Merlin Moncure
On Sun, Oct 7, 2012 at 10:29 AM, Tom Lane wrote: > Atri Sharma writes: >> Does that mean that using (some) global storage is the cause of the problem? > > If you're using global storage for state that needs to be replicated > per-scan, yes, probably. But it's hard to be sure when you're being >

Re: [HACKERS] Regarding identifying a foreign scan

2012-10-07 Thread Tom Lane
Atri Sharma writes: > Does that mean that using (some) global storage is the cause of the problem? If you're using global storage for state that needs to be replicated per-scan, yes, probably. But it's hard to be sure when you're being so vague about what you're doing. r

Re: [HACKERS] Regarding identifying a foreign scan

2012-10-06 Thread Atri Sharma
On Sun, Oct 7, 2012 at 3:17 AM, Tom Lane wrote: > Atri Sharma writes: >> The issue I am trying to resolve is that if two scans are taking place >> on the same backend(due to the same query),then,the server is >> crashing. > > That sounds like an FDW bug ... which FDW are we talking about? > >> I

Re: [HACKERS] Regarding identifying a foreign scan

2012-10-06 Thread Tom Lane
Atri Sharma writes: > The issue I am trying to resolve is that if two scans are taking place > on the same backend(due to the same query),then,the server is > crashing. That sounds like an FDW bug ... which FDW are we talking about? > I think it is because I am not saving the state of the scan,s

Re: [HACKERS] Regarding identifying a foreign scan

2012-10-06 Thread Atri Sharma
On Sat, Oct 6, 2012 at 4:05 PM, Tom Lane wrote: > Atri Sharma writes: >> On Sat, Oct 6, 2012 at 3:45 PM, Tom Lane wrote: >>> Atri Sharma writes: I am trying to identify foreign scans uniquely. > >>> What do you mean by "identify"? What are you trying to accomplish, >>> and in what context

Re: [HACKERS] Regarding identifying a foreign scan

2012-10-06 Thread Tom Lane
Atri Sharma writes: > On Sat, Oct 6, 2012 at 3:45 PM, Tom Lane wrote: >> Atri Sharma writes: >>> I am trying to identify foreign scans uniquely. >> What do you mean by "identify"? What are you trying to accomplish, >> and in what context? > I am trying to identify the situation where a query

Re: [HACKERS] Regarding identifying a foreign scan

2012-10-06 Thread Atri Sharma
On Sat, Oct 6, 2012 at 3:45 PM, Tom Lane wrote: > Atri Sharma writes: >> I am trying to identify foreign scans uniquely. > > What do you mean by "identify"? What are you trying to accomplish, > and in what context? > > regards, tom lane Hi Tom, I am trying to identify t

Re: [HACKERS] Regarding identifying a foreign scan

2012-10-06 Thread Tom Lane
Atri Sharma writes: > I am trying to identify foreign scans uniquely. What do you mean by "identify"? What are you trying to accomplish, and in what context? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to you

[HACKERS] Regarding identifying a foreign scan

2012-10-06 Thread Atri Sharma
Hi, I am trying to identify foreign scans uniquely.I am trying to do that by struct ForeignScanState,but I am confused as to how I can identify the scan. Is there a member of ForeignScanState that can be used for this purpose? Atri -- Regards, Atri l'apprenant -- Sent via pgsql-hackers mai