From: Ashutosh B. <ash...@en...> - 2013-08-14 04:36:24
|
Right, that's one thing, other thing is we don't want to initiate two queries simultaneously on the same node. In a plan tree with multiple RemoteQuery nodes, this is very much possible. On Wed, Aug 14, 2013 at 9:46 AM, Pavan Deolasee <pav...@gm...>wrote: > On Wed, Aug 7, 2013 at 2:12 PM, Ashutosh Bapat < > ash...@en...> wrote: > >> >>> >> This can be done if we move "issueing query" inside ExecInitRemoteQuery, >> but I am not sure if that can be applied in all the cases. This wouldn't >> require any change in PG. >> >> > > I am not sure either. AFAICS we only do initialization in that path. For > example, Explain will also call ExecutorStart (which in turns initializes > all the nodes). And we definitely don't want to run a query when its being > explained. > > > Thanks, > Pavan > > -- > Pavan Deolasee > http://www.linkedin.com/in/pavandeolasee > -- Best Wishes, Ashutosh Bapat EntepriseDB Corporation The Postgres Database Company |