pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move ModifyTableContext->lockmode to UpdateContext
Date: Wed, 20 Apr 2022 09:26:57 +0000
Message-ID: <E1nh6bx-000FEs-9C@gemulon.postgresql.org> (raw)

Move ModifyTableContext->lockmode to UpdateContext

Should have been done this way to start with, but I failed to notice
This way we avoid some pointless initialization, and better contains the
variable to exist in the scope where it is really used.

Reviewed-by: Michaƫl Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/202204191345.qerjy3kxi3eb@alvherre.pgsql

Branch
------
master

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

Modified Files
--------------
src/backend/executor/nodeModifyTable.c | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)



Message-ID: <E1nh6bx-000FEs-9C@gemulon.postgresql.org>
Permalink:  ../E1nh6bx-000FEs-9C@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nh6bx-000FEs-9C@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Move ModifyTableContext->lockmode to UpdateContext
  In-Reply-To: <E1nh6bx-000FEs-9C@gemulon.postgresql.org>
  References: <E1nh6bx-000FEs-9C@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox