pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix multi-column range partitioning constraints.
2+ messages / 2 participants
[nested] [flat]

* pgsql: Fix multi-column range partitioning constraints.
@ 2017-05-13 15:37  Robert Haas <rhaas@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Robert Haas @ 2017-05-13 15:37 UTC (permalink / raw)
  To: pgsql-committers

Fix multi-column range partitioning constraints.

The old logic was just plain wrong.

Report by Olaf Gawenda.  Patch by Amit Langote, reviewed by
Beena Emerson and by me.  Minor adjustments by me also.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f8bffe9e6d700fd34759a92e47930ce9ba7dcbd5

Modified Files
--------------
src/backend/catalog/partition.c       | 663 ++++++++++++++++++++++------------
src/include/nodes/pg_list.h           |  14 +
src/test/regress/expected/inherit.out |  90 +++++
src/test/regress/expected/insert.out  |  59 +++
src/test/regress/sql/inherit.sql      |  18 +
src/test/regress/sql/insert.sql       |  43 +++
6 files changed, 666 insertions(+), 221 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pgsql: Fix multi-column range partitioning constraints.
@ 2017-05-13 19:46  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-05-13 19:46 UTC (permalink / raw)
  To: Robert Haas <rhaas@postgresql.org>; +Cc: pgsql-committers

Robert Haas <rhaas@postgresql.org> writes:
> Fix multi-column range partitioning constraints.

Newer gcc versions are not very happy with this:

partition.c: In function 'get_qual_from_partbound':
partition.c:1642:18: warning: 'partexprs_item_saved' may be used uninitialized in this function [-Wmaybe-uninitialized]
   partexprs_item = partexprs_item_saved;
   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
partition.c:1500:8: note: 'partexprs_item_saved' was declared here
       *partexprs_item_saved;
        ^~~~~~~~~~~~~~~~~~~~

$ gcc -v
gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) 

Please fix.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-05-13 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-05-13 15:37 pgsql: Fix multi-column range partitioning constraints. Robert Haas <rhaas@postgresql.org>
2017-05-13 19:46 ` Tom Lane <tgl@sss.pgh.pa.us>

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