Re: Do we force dependency? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Do we force dependency?
Date
Msg-id 6156.1118026717@sss.pgh.pa.us
Whole thread Raw
In response to Re: Do we force dependency?  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
List pgsql-hackers
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> The reason I raise this question is because I corrupted pg_trigger by
> concurrently perform drop/create table (with foreign keys).

That should be impossible because drop/create take out locks at the
table level.  Can you provide a reproducible test case?

If you can't make it happen easily by hand, one possible way to proceed
is to run one or both sessions under gdb and set breakpoints at key
places like recursiveDeletion().  If there is a timing issue it should
be possible to expose it by delaying a process at the right places in
this way.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: Do we force dependency?
Next
From: "Qingqing Zhou"
Date:
Subject: Re: Do we force dependency?