Re: making update/delete of inheritance trees scale better

Amit Langote <amitlangote09@gmail.com>

From: Amit Langote <amitlangote09@gmail.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-03-03T14:39:01Z
Lists: pgsql-hackers

Attachments

Just noticed that a test added by the recent 927f453a941 fails due to
0002.  We no longer allow moving a row into a postgres_fdw partition
if it is among the UPDATE's result relations, whereas previously we
would if the UPDATE on that partition is already finished.

To fix, I've adjusted the test case.  Attached updated version.

-- 
Amit Langote
EDB: http://www.enterprisedb.com

Commits

  1. Rework planning and execution of UPDATE and DELETE.

  2. Faster expression evaluation and targetlist projection.