Re: could not create directory "...": File exists - Mailing list pgsql-hackers

From Tom Lane
Subject Re: could not create directory "...": File exists
Date
Msg-id 20947.1358468778@sss.pgh.pa.us
Whole thread Raw
In response to Re: could not create directory "...": File exists  (Stephen Frost <sfrost@snowman.net>)
Responses Re: could not create directory "...": File exists
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> This seems to provide a reasonably principled
>> argument why we might want to fix this case with a localized use of an
>> MVCC scan before we have such a fix globally.

> I had discussed that idea a bit with Andres on IRC and my only concern
> was if there's some reason that acquiring a snapshot during createdb()
> would be problematic.  It doesn't appear to currently and I wasn't sure
> if there'd be any issues.

Don't see what.  The main reason we've not yet attempted a global fix is
that the most straightforward way (take a new snapshot each time we
start a new SnapshotNow scan) seems too expensive.  But CREATE DATABASE
is so expensive that the cost of an extra snapshot there ain't gonna
matter.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: PATCH: optimized DROP of multiple tables within a transaction
Next
From: Michael Paquier
Date:
Subject: Re: Slave enters in recovery and promotes when WAL stream with master is cut + delay master/slave