pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Re-allow INSERT .. ON CONFLICT DO NOTHING on partitioned tables.
Date: Fri, 01 Dec 2017 17:57:55 +0000
Message-ID: <E1eKpZT-0000je-4D@gemulon.postgresql.org> (raw)

Re-allow INSERT .. ON CONFLICT DO NOTHING on partitioned tables.

Commit 8355a011a0124bdf7ccbada206a967d427039553 was reverted in
f05230752d53c4aa74cffa9b699983bbb6bcb118, but this attempt is
hopefully better-considered: we now pass the correct value to
ExecOpenIndices, which should avoid the crash that we hit before.

Amit Langote, reviewed by Simon Riggs and by me.  Some final
editing by me.

Discussion: http://postgr.es/m/7ff1e8ec-dc39-96b1-7f47-ff5965dceeac@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/87c37e3291cb75273ccdf4645b9472dd805c4493

Modified Files
--------------
doc/src/sgml/ddl.sgml                         | 13 +++++++++----
src/backend/commands/copy.c                   |  3 ++-
src/backend/executor/execPartition.c          | 15 ++++++++++-----
src/backend/executor/nodeModifyTable.c        |  3 ++-
src/backend/parser/analyze.c                  |  8 --------
src/include/executor/execPartition.h          |  3 ++-
src/test/regress/expected/insert_conflict.out | 13 +++++++++++++
src/test/regress/sql/insert_conflict.sql      | 13 +++++++++++++
8 files changed, 51 insertions(+), 20 deletions(-)



Message-ID: <E1eKpZT-0000je-4D@gemulon.postgresql.org>
Permalink:  ../E1eKpZT-0000je-4D@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eKpZT-0000je-4D@gemulon.postgresql.org

 · 

reply

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: rhaas@postgresql.org
  Subject: Re: pgsql: Re-allow INSERT .. ON CONFLICT DO NOTHING on partitioned tables.
  In-Reply-To: <E1eKpZT-0000je-4D@gemulon.postgresql.org>
  References: <E1eKpZT-0000je-4D@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