pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13917: "upsert" construct doesn't work with partial index
2+ messages / 2 participants
[nested] [flat]
* BUG #13917: "upsert" construct doesn't work with partial index
@ 2016-02-04 16:31 dv@unlimitedsoftware.it
2016-02-09 01:32 ` Re: BUG #13917: "upsert" construct doesn't work with partial index Peter Geoghegan <pg@heroku.com>
0 siblings, 1 reply; 2+ messages in thread
From: dv@unlimitedsoftware.it @ 2016-02-04 16:31 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13917
Logged by: dante vitale
Email address: dv@unlimitedsoftware.it
PostgreSQL version: 9.5.0
Operating system: centos 6
Description:
an INSERT ... ON CONFLICT DO NOTHING statement doesn't twork if unique index
on duplicated field is created without "where" clause. In case of co called
"partial index" the duplicate key exception rises.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #13917: "upsert" construct doesn't work with partial index
2016-02-04 16:31 BUG #13917: "upsert" construct doesn't work with partial index dv@unlimitedsoftware.it
@ 2016-02-09 01:32 ` Peter Geoghegan <pg@heroku.com>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Geoghegan @ 2016-02-09 01:32 UTC (permalink / raw)
To: dv@unlimitedsoftware.it; +Cc: pgsql-bugs
On Thu, Feb 4, 2016 at 8:31 AM, <dv@unlimitedsoftware.it> wrote:
> an INSERT ... ON CONFLICT DO NOTHING statement doesn't twork if unique index
> on duplicated field is created without "where" clause. In case of co called
> "partial index" the duplicate key exception rises.
Please provide a concrete test case. I think you just need to spell
out the WHERE clause in the inference specification. That will use
both indexes (the partial unique index, as well as the non-partial
unique index on the same fields).
--
Peter Geoghegan
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-02-09 01:32 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-02-04 16:31 BUG #13917: "upsert" construct doesn't work with partial index dv@unlimitedsoftware.it
2016-02-09 01:32 ` Peter Geoghegan <pg@heroku.com>
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