pgsql: Fix uninitialized-variable bug.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix uninitialized-variable bug.
Date: 2017-09-08 23:04:39
Message-ID: E1dqSKF-0004sd-20@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix uninitialized-variable bug.

map_partition_varattnos() failed to set its found_whole_row output
parameter if the given expression list was NIL. This seems to be
a pre-existing bug that chanced to be exposed by commit 6f6b99d13.
It might be unreachable in v10, but I have little faith in that
proposition, so back-patch.

Per buildfarm.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1377b40965b257e228ae8faf45c6ce145ce357e5

Modified Files
--------------
src/backend/catalog/partition.c | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-09-09 00:08:25 Re: pgsql: Allow a partitioned table to have a default partition.
Previous Message Tom Lane 2017-09-08 22:50:26 Re: pgsql: Allow a partitioned table to have a default partition.