postgresql/src
Á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
..
backend Change one loop in ATRewriteTable to use 1-based attnums 2025-03-21 10:55:06 +01:00
bin Add test for pg_upgrade file transfer modes. 2025-03-20 11:08:42 -05:00
common Revert workarounds for -Wmissing-braces false positives on old GCC 2025-03-20 11:25:58 +01:00
fe_utils pg_rewind: Add dbname to primary_conninfo when using --write-recovery-conf. 2025-03-12 16:56:04 -07:00
include Support buffer forwarding in StartReadBuffers(). 2025-03-21 20:43:59 +13:00
interfaces Revert workarounds for -Wmissing-braces false positives on old GCC 2025-03-20 11:25:58 +01:00
makefiles Add support for OAUTHBEARER SASL mechanism 2025-02-20 16:25:17 +01:00
pl Activate Python "Limited API" in PL/Python 2025-03-14 08:57:02 +01:00
port Assert that wrapper_handler()'s argument is within expected range. 2025-03-07 15:23:09 -06:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Add test for pg_upgrade file transfer modes. 2025-03-20 11:08:42 -05:00
timezone pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tools meson: Flush stdout in testwrap 2025-03-19 09:04:09 -04:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in extension_control_path 2025-03-19 07:03:20 +01:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00