Content-Length: 258208 | pFad | http://github.com/postgrespro/postgres/commit/fc7c281f87467c1ff24fd72e0cc313dd6a71873f

23 Make VACUUM accept 1 and 0 as a boolean value. · postgrespro/postgres@fc7c281 · GitHub
Skip to content

Commit fc7c281

Browse files
committed
Make VACUUM accept 1 and 0 as a boolean value.
Commit 41b54ba allowed existing VACUUM options to take a boolean argument. It's documented that valid boolean values that VACUUM can accept are true, false, on, off, 1, and 0. But previously the parser failed to accept 1 and 0 as a boolean value in VACUUM syntax because of a lack of NumericOnly clause for vac_analyze_option_arg in gram.y. This commit adds such NumericOnly clause so that VACUUM options can take also 1 and 0 as a boolean value. Discussion: https://postgr.es/m/CAHGQGwGYg82A8UCQxZe7Zn9MnyUBGdyB=1CNpKF3jBny+RbyfA@mail.gmail.com
1 parent 3c439a5 commit fc7c281

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/parser/gram.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10583,6 +10583,7 @@ vac_analyze_option_name:
1058310583

1058410584
vac_analyze_option_arg:
1058510585
opt_boolean_or_string { $$ = (Node *) makeString($1); }
10586+
| NumericOnly { $$ = (Node *) $1; }
1058610587
| /* EMPTY */ { $$ = NULL; }
1058710588
;
1058810589

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/fc7c281f87467c1ff24fd72e0cc313dd6a71873f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy