Re: Race condition in create table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Race condition in create table
Date: 2018-10-09 14:05:09
Message-ID: 22700.1539093909@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru> writes:
> I wonder if it is considered to be expected behavior that concurrent
> execution of "create table if not exists" may return errors:

No, there's not a guarantee that IF NOT EXISTS will work in such
scenarios. As with everything else about that feature, it's a
quick-and-dirty, not very well designed effort.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-10-09 14:07:41 Re: executor relation handling
Previous Message Peter Eisentraut 2018-10-09 14:04:35 Re: Proposal for Signal Detection Refactoring