Skip to content

Commit 4faea7f

Browse files
committed
Revert recent change of ScanOption values and renumber SO_TYPE_TIDSCAN.
Commit 598b466 in v12 renumbered ScanOption enum values to add the option for Tid scan. But the change of the codes assigned to the existing values caused an ABI break and may break some extensions depending on them. This should be avoided in minor version. This commit reverts the renumbering of ScanOption enum values made by commit 598b466 in v12 and put the ScanOption for Tid scan with new value. This is applied only to v12. Per complaint from Tom Lane. Discussion: https://postgr.es/m/5261.1581103527@sss.pgh.pa.us
1 parent 388d435 commit 4faea7f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/include/access/tableam.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ typedef enum ScanOptions
4747
SO_TYPE_SEQSCAN = 1 << 0,
4848
SO_TYPE_BITMAPSCAN = 1 << 1,
4949
SO_TYPE_SAMPLESCAN = 1 << 2,
50-
SO_TYPE_TIDSCAN = 1 << 3,
51-
SO_TYPE_ANALYZE = 1 << 4,
50+
SO_TYPE_ANALYZE = 1 << 3,
51+
SO_TYPE_TIDSCAN = 1 << 8,
5252

5353
/* several of SO_ALLOW_* may be specified */
5454
/* allow or disallow use of access strategy */
55-
SO_ALLOW_STRAT = 1 << 5,
55+
SO_ALLOW_STRAT = 1 << 4,
5656
/* report location to syncscan logic? */
57-
SO_ALLOW_SYNC = 1 << 6,
57+
SO_ALLOW_SYNC = 1 << 5,
5858
/* verify visibility page-at-a-time? */
59-
SO_ALLOW_PAGEMODE = 1 << 7,
59+
SO_ALLOW_PAGEMODE = 1 << 6,
6060

6161
/* unregister snapshot at scan end? */
62-
SO_TEMP_SNAPSHOT = 1 << 8
62+
SO_TEMP_SNAPSHOT = 1 << 7
6363
} ScanOptions;
6464

6565
/*

0 commit comments

Comments
 (0)