From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify null-element handling in extension_config_remove().
Date: Mon, 12 Nov 2018 16:50:31 +0000
Message-ID: <E1gMFPz-0001rj-Mk@gemulon.postgresql.org> (raw)
Simplify null-element handling in extension_config_remove().
There's no point in asking deconstruct_array() for a null-flags
array when we already checked the array has no nulls, and aren't
going to examine the output anyhow. Not asking for this output
should make the code marginally faster, and it's also more
robust since if there somehow were nulls, deconstruct_array()
would throw an error.
Daniel Gustafsson
Discussion: https://postgr.es/m/289FFB8B-7AAB-48B5-A497-6E0D41D7BA47@yesql.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3de491482b6c815a2e735dbbb8972e0907d75188
Modified Files
--------------
src/backend/commands/extension.c | 10 ++++------
1 file changed, 4 insertions(+), 6 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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Simplify null-element handling in extension_config_remove().
In-Reply-To: <E1gMFPz-0001rj-Mk@gemulon.postgresql.org>
References: <E1gMFPz-0001rj-Mk@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