Re: FOREIGN KEY ... CONCURRENTLY

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: FOREIGN KEY ... CONCURRENTLY
Date: 2014-01-30 02:04:08
Message-ID: 20140130020408.GB10723@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Fetter wrote:

> 2) Is there another way to solve the problem of adding a foreign
> key constraint that points at a busy table?

Add it as NOT VALID and do a later VALIDATE CONSTRAINT step, after the
patch to reduce lock levels for ALTER TABLE goes in, perhaps?

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2014-01-30 04:21:06 Re: updated emacs configuration
Previous Message Tom Lane 2014-01-30 01:06:16 Re: Suspicion of a compiler bug in clang: using ternary operator in ereport()