Commit 1d617a2
committed
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.com1 parent ce1a75c commit 1d617a2
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6189 | 6189 | | |
6190 | 6190 | | |
6191 | 6191 | | |
6192 | | - | |
| 6192 | + | |
6193 | 6193 | | |
6194 | 6194 | | |
6195 | 6195 | | |
| |||
6370 | 6370 | | |
6371 | 6371 | | |
6372 | 6372 | | |
6373 | | - | |
| 6373 | + | |
6374 | 6374 | | |
6375 | | - | |
6376 | | - | |
6377 | | - | |
| 6375 | + | |
6378 | 6376 | | |
6379 | | - | |
| 6377 | + | |
6380 | 6378 | | |
6381 | 6379 | | |
6382 | 6380 | | |
6383 | 6381 | | |
6384 | 6382 | | |
6385 | 6383 | | |
6386 | | - | |
| 6384 | + | |
6387 | 6385 | | |
6388 | 6386 | | |
6389 | 6387 | | |
| |||
0 commit comments