Re: Transactional DDL, but not Serializable

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transactional DDL, but not Serializable
Дата
Msg-id 14868.1301078648@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Transactional DDL, but not Serializable  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Transactional DDL, but not Serializable  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> Sorry, that obviously didn't come across clearly (I think I've just been
> talking to Kevin far too much).

> I'm not interested in making them serializable.  I'd like to not have
> tables randomly appear during a serializable transaction.

Well, basically, you can't have that.  Example: you have an existing
table with primary key, and while you're in the middle of doing some
long transaction, somebody else creates a table with a foreign-key
reference to the one you're about to do a delete from.  Being
serializable does not excuse you from the obligation to check for
FK violations in that "invisible" table.  It might be acceptable to
fail entirely, but not to act as though the table isn't there.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: When and how many times does ExecSetParamPlan executes?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Pre-set Hint bits/VACUUM FREEZE on data load..?