postgresql/src/backend/commands
Álvaro Herrera 1d617a2028
Change one loop in ATRewriteTable to use 1-based attnums
All TupleDescAttr() calls in tablecmds.c that aren't in loops across all
attributes use AttrNumber-style indexes (1-based); there was only one
place in ATRewriteTable that was stashing 0-based indexes in a list for
later processing.  Switch that to use attnums for consistency.

Author: jian he <jian.universality@gmail.com>
Discussion: https://postgr.es/m/CACJufxEoYA5ScUr2=CmA1xcpaS_1ixneDbEkVU77X1ctGxY2mA@mail.gmail.com
2025-03-21 10:55:06 +01:00
..
aggregatecmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
alter.c Avoid invalidating all RelationSyncCache entries on publication rename. 2025-03-13 09:16:33 +05:30
amcmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
analyze.c Add relallfrozen to pg_class 2025-03-03 11:18:05 -05:00
async.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
cluster.c Add relallfrozen to pg_class 2025-03-03 11:18:05 -05:00
collationcmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
comment.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
constraint.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
conversioncmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
copy.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
copyfrom.c Refactor Copy{From|To}GetRoutine() to use pass-by-reference argument. 2025-03-04 10:38:41 -08:00
copyfromparse.c Re-export NextCopyFromRawFields() to copy.h. 2025-02-28 15:11:41 -08:00
copyto.c Refactor Copy{From|To}GetRoutine() to use pass-by-reference argument. 2025-03-04 10:38:41 -08:00
createas.c Make it possible for loadable modules to add EXPLAIN options. 2025-03-18 08:41:12 -04:00
dbcommands.c Assert that a snapshot is active or registered before it's used 2025-03-11 23:20:34 +02:00
define.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
discard.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
dropcmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
event_trigger.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
explain.c Simplify EXPLAIN code for Memoize 2025-03-21 13:40:05 +13:00
explain_dr.c Make it possible for loadable modules to add EXPLAIN options. 2025-03-18 08:41:12 -04:00
explain_format.c Make it possible for loadable modules to add EXPLAIN options. 2025-03-18 08:41:12 -04:00
explain_state.c Add an additional hook for EXPLAIN option validation. 2025-03-20 13:47:55 -04:00
extension.c extension_control_path 2025-03-19 07:03:20 +01:00
foreigncmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
functioncmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
indexcmds.c Allow non-btree unique indexes for partition keys 2025-03-18 11:25:36 +01:00
lockcmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Make it possible for loadable modules to add EXPLAIN options. 2025-03-18 08:41:12 -04:00
matview.c Allow non-btree unique indexes for matviews 2025-03-18 11:29:15 +01:00
meson.build Make it possible for loadable modules to add EXPLAIN options. 2025-03-18 08:41:12 -04:00
opclasscmds.c Generalize hash and ordering support in amapi 2025-02-27 17:03:31 +01:00
operatorcmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
policy.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
portalcmds.c Don't lock partitions pruned by initial pruning 2025-02-20 17:09:48 +09:00
prepare.c Make it possible for loadable modules to add EXPLAIN options. 2025-03-18 08:41:12 -04:00
proclang.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
publicationcmds.c Use correct variable name in publicationcmds.c. 2025-03-18 14:06:51 +05:30
schemacmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
seclabel.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
sequence.c Remove unnecessary (char *) casts [xlog] 2025-02-13 10:57:07 +01:00
statscmds.c Virtual generated columns 2025-02-07 09:46:59 +01:00
subscriptioncmds.c Fix a WARNING for data origin discrepancies. 2025-02-21 14:34:40 +05:30
tablecmds.c Change one loop in ATRewriteTable to use 1-based attnums 2025-03-21 10:55:06 +01:00
tablespace.c Remove unnecessary (char *) casts [xlog] 2025-02-13 10:57:07 +01:00
trigger.c Don't lock partitions pruned by initial pruning 2025-02-20 17:09:48 +09:00
tsearchcmds.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
typecmds.c Remove dead code 2025-01-16 14:37:28 +01:00
user.c Avoid race condition between "GRANT role" and "DROP ROLE". 2025-02-21 17:07:01 -05:00
vacuum.c Add vacuum_truncate configuration parameter. 2025-03-20 10:16:50 -05:00
vacuumparallel.c Add cost-based vacuum delay time to progress views. 2025-02-11 16:38:14 -06:00
variable.c Introduce io_max_combine_limit. 2025-03-19 15:23:54 +13:00
view.c Update copyright for 2025 2025-01-01 11:21:55 -05:00