On Fri, Jun 17, 2016 at 12:55 AM, Amit Kapila <[email protected]> wrote: > Isn't it possible that the below statement used in parallel restricted > function fails in leader backend itself: > + perform * from pg_stat_activity where client_port is null; > + if (found) then > + raise 'parallel restricted function run in worker'; > + end if;
Yeah, I can't believe I managed to be dumb enough to think that was going to work. Clearly, I shouldn't be trusted with anything more dangerous than a dull pair of scissors. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
