Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4faea7f

Browse files
committed
Revert recent change of ScanOption values and renumber SO_TYPE_TIDSCAN.
Commit598b466 in v12 renumbered ScanOption enum values to addthe option for Tid scan. But the change of the codes assigned tothe existing values caused an ABI break and may break some extensionsdepending on them. This should be avoided in minor version.This commit reverts the renumbering of ScanOption enum values made bycommit598b466 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 parent388d435 commit4faea7f

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)

[8]ページ先頭

©2009-2025 Movatter.jp