Re: Race condition in create table - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Race condition in create table
Date
Msg-id 22700.1539093909@sss.pgh.pa.us
Whole thread Raw
In response to Race condition in create table  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
Konstantin Knizhnik <k.knizhnik@postgrespro.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


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Proposal for Signal Detection Refactoring
Next
From: Tom Lane
Date:
Subject: Re: executor relation handling