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

Commit0fec000

Browse files
committed
Renumber GUC_* constants.
This moves all the regular flags back together (for aesthetic reasons), andmakes room for more GUC_UNIT_* types.
1 parent1b63026 commit0fec000

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

‎src/include/utils/guc.h

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,22 +201,21 @@ typedef enum
201201
#defineGUC_CUSTOM_PLACEHOLDER0x0080/* placeholder for custom variable */
202202
#defineGUC_SUPERUSER_ONLY0x0100/* show only to superusers */
203203
#defineGUC_IS_NAME0x0200/* limit string to NAMEDATALEN-1 */
204+
#defineGUC_NOT_WHILE_SEC_REST0x0400/* can't set if security restricted */
205+
#defineGUC_DISALLOW_IN_AUTO_FILE 0x0800/* can't set in PG_AUTOCONF_FILENAME */
204206

205-
#defineGUC_UNIT_KB0x0400/* value is in kilobytes */
206-
#defineGUC_UNIT_BLOCKS0x0800/* value is in blocks */
207-
#defineGUC_UNIT_XBLOCKS0x0C00/* value is in xlog blocks */
208-
#defineGUC_UNIT_MEMORY0x0C00/* mask for KB, BLOCKS, XBLOCKS */
207+
#defineGUC_UNIT_KB0x1000/* value is in kilobytes */
208+
#defineGUC_UNIT_BLOCKS0x2000/* value is in blocks */
209+
#defineGUC_UNIT_XBLOCKS0x3000/* value is in xlog blocks */
210+
#defineGUC_UNIT_MEMORY0xF000/* mask for KB, BLOCKS, XBLOCKS */
209211

210-
#defineGUC_UNIT_MS0x1000/* value is in milliseconds */
211-
#defineGUC_UNIT_S0x2000/* value is in seconds */
212-
#defineGUC_UNIT_MIN0x4000/* value is in minutes */
213-
#defineGUC_UNIT_TIME0x7000/* mask for MS, S, MIN */
212+
#defineGUC_UNIT_MS 0x10000/* value is in milliseconds */
213+
#defineGUC_UNIT_S 0x20000/* value is in seconds */
214+
#defineGUC_UNIT_MIN 0x30000/* value is in minutes */
215+
#defineGUC_UNIT_TIME 0xF0000/* mask for MS, S, MIN */
214216

215217
#defineGUC_UNIT(GUC_UNIT_MEMORY | GUC_UNIT_TIME)
216218

217-
#defineGUC_NOT_WHILE_SEC_REST0x8000/* can't set if security restricted */
218-
#defineGUC_DISALLOW_IN_AUTO_FILE0x00010000/* can't set in
219-
* PG_AUTOCONF_FILENAME */
220219

221220
/* GUC vars that are actually declared in guc.c, rather than elsewhere */
222221
externboollog_duration;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp