Move ModifyTableContext->lockmode to UpdateContext
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Apr 2022 09:18:04 +0000 (11:18 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Apr 2022 09:18:04 +0000 (11:18 +0200)
commita87e75956926f966d90bdd1a6bd495cf59cdc3ad
tree005f76e2586ccfe730df65fcf99f330586f99ddc
parent3dcc6bf4068a29be2bebee80bb919f8057af0fd9
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
src/backend/executor/nodeModifyTable.c