pgsql: Refactor code for cross-partition updates to a separate function

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor code for cross-partition updates to a separate function
Date: 2020-10-15 14:09:56
Message-ID: E1kT3x6-0001Gu-Ri@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor code for cross-partition updates to a separate function.

ExecUpdate() is very long, so extract the part of it that deals with
cross-partition updates to a separate function to make it more readable.
Per Andres Freund's suggestion.

Author: Amit Langote
Discussion: https://www.postgresql.org/message-id/CA%2BHiwqEUgb5RdUgxR7Sqco4S09jzJstHiaT2vnCRPGR4JCAPqA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5b097f8fa69861ab83470c0bfe732ab90df9e62

Modified Files
--------------
src/backend/executor/nodeModifyTable.c | 265 ++++++++++++++++++++-------------
1 file changed, 158 insertions(+), 107 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2020-10-15 14:36:55 pgsql: Review logical replication tablesync code
Previous Message Alvaro Herrera 2020-10-15 12:53:08 pgsql: Fix query in new test to check tables are synced