From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add 'missing_ok' argument to build_attrmap_by_name |
Date: | 2022-11-29 08:41:56 |
Message-ID: | E1ozwBf-001Gst-9S@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add 'missing_ok' argument to build_attrmap_by_name
When it's given as true, return a 0 in the position of the missing
column rather than raising an error.
This is currently unused, but it allows us to reimplement column
permission checking in a subsequent commit. It seems worth breaking
into a separate commit because it affects unrelated code.
Author: Amit Langote <amitlangote09(at)gmail(dot)com>
Discussion: https://postgr.es/m/CA+HiwqFfiai=qBxPDTjaio_ZcaqUKh+FC=prESrB8ogZgFNNNQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ad86d159b6ab90b195b06fb5c7b593900a7f9cd8
Modified Files
--------------
src/backend/access/common/attmap.c | 14 ++++++++++----
src/backend/access/common/tupconvert.c | 2 +-
src/backend/catalog/partition.c | 3 ++-
src/backend/commands/indexcmds.c | 3 ++-
src/backend/commands/tablecmds.c | 24 ++++++++++++++++--------
src/backend/executor/execMain.c | 11 +++++++----
src/backend/executor/execPartition.c | 15 ++++++++++-----
src/backend/parser/parse_utilcmd.c | 3 ++-
src/backend/replication/pgoutput/pgoutput.c | 2 +-
src/include/access/attmap.h | 6 ++++--
10 files changed, 55 insertions(+), 28 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-11-29 15:52:59 | pgsql: Remove bogus Assert and dead code in remove_useless_results_recu |
Previous Message | Michael Paquier | 2022-11-29 04:35:13 | pgsql: meson: Add some missing env settings for tests of pg_dump and pg |