From: | "Dr(dot) Michael Meskes" <meskes(at)online-club(dot)de> |
---|---|
To: | "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org> |
Subject: | Re: Dropping tables... |
Date: | 1998-08-02 11:39:13 |
Message-ID: | 19980802133913.A273@feivel.online-club.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Aug 01, 1998 at 12:05:52AM +0800, Vadim Mikheev wrote:
> 1. In session T1 run
>
> LOCK TABLE test IN EXCLUSIVE MODE;
>
> 2. In session T2 run
>
> UPDATE test SET y = 0 WHERE x = 0;
>
> -- shouldn't be blocked by T1 if ROW EXCLUSIVE
> -- lock is acquired by T2 only when row found
But it indeed is blocked.
> 3. Now again in session T1
>
> DROP TABLE test;
>
> -- will be this blocked ?
DROP TABLE test
*
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified
However, after this, the update call is executed. After a commit in T2, test
can be dropped.
Michael
--
Dr. Michael Meskes meskes(at)online-club(dot)de, meskes(at)debian(dot)org
Go SF49ers! Go Rhein Fire! Use Debian GNU/Linux!
From | Date | Subject | |
---|---|---|---|
Next Message | Maarten Boekhold | 1998-08-02 11:42:29 | Re: [HACKERS] User authentication bug? |
Previous Message | ernst.molitor | 1998-08-02 09:58:24 | Re: [HACKERS] Problem with CVS access to current sources |