Questions tagged [deferrable-constraint]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
2answers
521 views

How to swap primary key between records in postgres

I can't seem to find a way to achieve this transactionally (or not) What I need to achieve is non-standard, hence my difficulty finding a solution. I need to code a data migration tool to "swap" old ...