From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor code building relation options
Date: Tue, 05 Nov 2019 00:18:14 +0000
Message-ID: <E1iRmY2-0004gU-61@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3534fa2233285c1fab1e668871aabf05e5541213
Modified Files
--------------
contrib/bloom/blutils.c | 14 +--
src/backend/access/brin/brin.c | 22 +----
src/backend/access/common/reloptions.c | 115 +++++++++++------------
src/backend/access/gin/ginutil.c | 22 +----
src/backend/access/gist/gistutil.c | 22 +----
src/include/access/reloptions.h | 5 +
src/test/modules/dummy_index_am/dummy_index_am.c | 15 +--
7 files changed, 82 insertions(+), 133 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Refactor code building relation options
In-Reply-To: <E1iRmY2-0004gU-61@gemulon.postgresql.org>
References: <E1iRmY2-0004gU-61@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox