Add 'missing_ok' argument to build_attrmap_by_name
Alvaro Herrera <alvherre@alvh.no-ip.org>
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@gmail.com> Discussion: https://postgr.es/m/CA+HiwqFfiai=qBxPDTjaio_ZcaqUKh+FC=prESrB8ogZgFNNNQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/attmap.c | modified | +10 −4 |
| src/backend/access/common/tupconvert.c | modified | +1 −1 |
| src/backend/catalog/partition.c | modified | +2 −1 |
| src/backend/commands/indexcmds.c | modified | +2 −1 |
| src/backend/commands/tablecmds.c | modified | +16 −8 |
| src/backend/executor/execMain.c | modified | +7 −4 |
| src/backend/executor/execPartition.c | modified | +10 −5 |
| src/backend/parser/parse_utilcmd.c | modified | +2 −1 |
| src/backend/replication/pgoutput/pgoutput.c | modified | +1 −1 |
| src/include/access/attmap.h | modified | +4 −2 |
Discussion
- ExecRTCheckPerms() and many prunable partitions 97 messages · 2021-06-30 → 2023-06-30