On Wed, May 17, 2017 at 6:04 PM, Amit Langote <langote_amit...@lab.ntt.co.jp> wrote: > On 2017/05/17 11:22, Thomas Munro wrote: >> Here is that patch. Thoughts? > > I looked at the patch and noticed that there might be some confusion about > what's in the EState.es_root_result_relations array.
Thanks for looking at this! > ... > > targetRelInfo should instead be set to mtstate->rootResultRelInfo that was > set in ExecInitModifyTable() as described above, IOW, as follows: > > /* Partitioned table. */ > if (mtstate->rootResultRelInfo != NULL) > targetRelInfo = mtstate->rootResultRelInfo; Ah, I see. Thank you. Fixed in the attached. -- Thomas Munro http://www.enterprisedb.com
transition-tuples-from-child-tables-v5.patch
Description: Binary data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers