]> granicus.if.org Git - postgresql/commit
Simplify null-element handling in extension_config_remove().
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Nov 2018 16:50:28 +0000 (11:50 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Nov 2018 16:50:28 +0000 (11:50 -0500)
commit3de491482b6c815a2e735dbbb8972e0907d75188
tree376e0de776cd4f86522e3ee60374da44d1d0f21b
parente3f005d974ce32ca9f74328067efafcb1217c87f
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
src/backend/commands/extension.c