Re: BUG #6685: Concurrency fault in create table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6685: Concurrency fault in create table
Дата
Msg-id 20228.1339362536@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #6685: Concurrency fault in create table  (mthornton@optrak.com)
Ответы Re: BUG #6685: Concurrency fault in create table  (Mark Thornton <mthornton@optrak.com>)
Список pgsql-bugs
mthornton@optrak.com writes:
> The following bug has been logged on the website:
> Bug reference:      6685
> Logged by:          Mark Thornton
> Email address:      mthornton@optrak.com
> PostgreSQL version: 9.1.4
> Operating system:   Ubuntu 12.04
> Description:

> Executing
> create table child_a () inherits (parent)
> create table child_b () inherits (parent)

> concurrently (two separate connections) results in an error "concurrent
> tuple update".

You sure that's a 9.1 server?  I can reproduce such an error in older
releases, but not 9.1.

I believe the relevant fix is
http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=fbcf4b92aa64d4577bcf25925b055316b978744a
As noted there, the change wasn't back-patched for fear that the
stronger lock on the parent table might be an undesirable behavioral
change for some applications.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6683: dropping a table with a serial column from an extension needs to explicitely drop the associated seq
Следующее
От: Mark Thornton
Дата:
Сообщение: Re: BUG #6685: Concurrency fault in create table