git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8a45050) | patch
Simplify the writing of amoptions routines by introducing a convenience
2009年1月12日 21:02:15 +0000 (21:02 +0000)
2009年1月12日 21:02:15 +0000 (21:02 +0000)
commit 8ebe1e356c8c3bd1f65ff76cc5967478e969d1c2
Simplify the writing of amoptions routines by introducing a convenience
fillRelOptions routine that stores the parsed values in the struct using a
table-based approach. Per Tom suggestion. Also remove the "continue"
in HANDLE_*_RELOPTION macros, which were useless and in spirit they were
assuming too much of how the macros were going to be used. (Note that these
macros are now unused, but the intention is to introduce some usage in a
future autovacuum patch, which is why they weren't completely removed.)

Also, do not call the string validation routine when not validating. It seems
less error-prone this way, per commentary on the amoptions SGML docs.
src/backend/access/common/reloptions.c diff | blob | blame | history
src/include/access/reloptions.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /