Refactor code building relation options
authorMichael Paquier <michael@paquier.xyz>
Tue, 5 Nov 2019 00:17:05 +0000 (09:17 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 5 Nov 2019 00:17:05 +0000 (09:17 +0900)
commit3534fa2233285c1fab1e668871aabf05e5541213
tree4b6b708590540bee0b2d66b7a485f35df8680809
parent5102f39440f758ea53c2e1cdea7d8411df1805d2
Refactor code building relation options

Historically, the code to build relation options has been shaped the
same way in multiple code paths by using a set of datums in input with
the options parsed with a static table which is then filled with the
option values.  This introduces a new common routine in reloptions.c to
do most of the legwork for the in-core code paths.

Author: Amit Langote
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/CA+HiwqGsoSn_uTPPYT19WrtR7oYpYtv4CdS0xuedTKiHHWuk_g@mail.gmail.com
contrib/bloom/blutils.c
src/backend/access/brin/brin.c
src/backend/access/common/reloptions.c
src/backend/access/gin/ginutil.c
src/backend/access/gist/gistutil.c
src/include/access/reloptions.h
src/test/modules/dummy_index_am/dummy_index_am.c