pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tiago Babo <tiago.babo@gmail.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14526: no unique or exclusion constraint matching the ON CONFLICT
Date: Tue, 07 Feb 2017 19:04:08 -0500
Message-ID: <31551.1486512248@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPsQ5r8AYF0uyUxqRuV9XRDFEDMfSHZAy8xQf2Tj1rvz7uVoVQ@mail.gmail.com>
References: <20170202140701.1401.31196@wrigleys.postgresql.org>
<CAH2-Wz=h4uZuFwAPmU3eNZ-mh=PorhSw75Nt0HYgsWV9GtUMOg@mail.gmail.com>
<166D0A9D-162D-4216-9490-3163533166C1@gmail.com>
<14575.1486493671@sss.pgh.pa.us>
<499844AD-291B-40F5-9892-E5591736FD2E@gmail.com>
<22106.1486500247@sss.pgh.pa.us>
<CAH2-Wz=J+AtQg5xEm3y6GUO=KfzqsfKy89Vzn0-NayjkF_baVw@mail.gmail.com>
<CAPsQ5r-2W=cJmJsQfd1qAY=kFuXDnR668iQvL8kTQSCkmoU76w@mail.gmail.com>
<CAH2-WznXVG2DYXADcr7wXGO+E+YWUrofm4qYat2a-2kbwoD5Xg@mail.gmail.com>
<D7999A4B-2BF0-4BDD-8C42-09F635897C13@gmail.com>
<CAH2-WznTcRCcKPNTEduQXz4KLfoWCzAFg3dUBgKQ91LpwxekAQ@mail.gmail.com>
<CAPsQ5r8AYF0uyUxqRuV9XRDFEDMfSHZAy8xQf2Tj1rvz7uVoVQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Tiago Babo <tiago.babo@gmail.com> writes:
> I don't really understand how PostgreSQL handles indexes, but would it be
> possible that the INDEX is being used/updated at that moment and so the
> INSERT doesn't know it exists? Can concurrency also be a problem?
Data activity shouldn't matter. If you're dropping and recreating the
whole index, that could matter.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
view thread (32+ messages) latest in thread
Message-ID: <31551.1486512248@sss.pgh.pa.us> Permalink: ../31551.1486512248@sss.pgh.pa.us/ Also on: postgresql.org/message-id/31551.1486512248@sss.pgh.pa.us ·
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-bugs@postgresql.org Cc: tgl@sss.pgh.pa.us, tiago.babo@gmail.com, pg@bowt.ie Subject: Re: BUG #14526: no unique or exclusion constraint matching the ON CONFLICT In-Reply-To: <31551.1486512248@sss.pgh.pa.us> References: <20170202140701.1401.31196@wrigleys.postgresql.org> <CAH2-Wz=h4uZuFwAPmU3eNZ-mh=PorhSw75Nt0HYgsWV9GtUMOg@mail.gmail.com> <166D0A9D-162D-4216-9490-3163533166C1@gmail.com> <14575.1486493671@sss.pgh.pa.us> <499844AD-291B-40F5-9892-E5591736FD2E@gmail.com> <22106.1486500247@sss.pgh.pa.us> <CAH2-Wz=J+AtQg5xEm3y6GUO=KfzqsfKy89Vzn0-NayjkF_baVw@mail.gmail.com> <CAPsQ5r-2W=cJmJsQfd1qAY=kFuXDnR668iQvL8kTQSCkmoU76w@mail.gmail.com> <CAH2-WznXVG2DYXADcr7wXGO+E+YWUrofm4qYat2a-2kbwoD5Xg@mail.gmail.com> <D7999A4B-2BF0-4BDD-8C42-09F635897C13@gmail.com> <CAH2-WznTcRCcKPNTEduQXz4KLfoWCzAFg3dUBgKQ91LpwxekAQ@mail.gmail.com> <CAPsQ5r8AYF0uyUxqRuV9XRDFEDMfSHZAy8xQf2Tj1rvz7uVoVQ@mail.gmail.com> <31551.1486512248@sss.pgh.pa.us> * 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