Re: using DROP in a transaction

Поиск
Список
Период
Сортировка
От Chris
Тема Re: using DROP in a transaction
Дата
Msg-id 47B8BBCC.8000707@gmail.com
обсуждение исходный текст
Ответ на Re: using DROP in a transaction  ("Willy-Bas Loos" <willybas@gmail.com>)
Список pgsql-general
Willy-Bas Loos wrote:
> ah, of course.
> the exclusive lock was preventing tty1 to read "test", and when the lock
> was gone, so was the table.
> I get it. Thanks a lot.
>
> But, what about the "ERROR: tuple concurrently updated" ? (in TTY3)

Same thing - tty1 was locking that entry and when it was released, tty3
tried to update it. The error message isn't great but both tty1 (which
did drop the table) and tty3 which tried to drop the table are doing the
same thing.

> What should have happened, i guess, is "ERROR:  table "test" does not
> exist, upon " drop table test; --4. ..."
> Which tuple was concurrently updated? A pg_catalog entry that
> administers the table?

No idea - I guess something like that :)

--
Postgresql & php tutorials
http://www.designmagick.com/

В списке pgsql-general по дате отправления:

Предыдущее
От: "Maxim Khitrov"
Дата:
Сообщение: DB design: How to store object properties?
Следующее
От: "Douglas McNaught"
Дата:
Сообщение: Re: DB design: How to store object properties?