Re: Foreign key locks

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Ulrich Wisser <ulrich(dot)wisser(at)relevanttraffic(dot)se>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Foreign key locks
Date: 2004-09-02 14:51:28
Message-ID: 20040902075103.X9941@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 2 Sep 2004, Ulrich Wisser wrote:

> yes, I have been hit by the, now also known to me, foreign key locking
> "feature". And yes I did read that I should use "defer" to solve the
> problem. Question is:
>
> Do I have to recreate my schema with all foreign keys set to "initially
> defered deferable"?

You really should just need to drop the constraints and recreate them, not
the entire schema.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ying Lu 2004-09-02 14:52:54 "\d tablename" to get column name, and column type by using JDBC
Previous Message Daniel Martini 2004-09-02 14:33:41 Re: The future of built-in geometric data types