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

From Stephen Frost
Subject Re: could not create directory "...": File exists
Date
Msg-id 20130118132056.GY16126@tamriel.snowman.net
Whole thread Raw
In response to Re: could not create directory "...": File exists  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: could not create directory "...": File exists
Re: could not create directory "...": File exists
List pgsql-hackers
Tom,

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> 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.

  Patch attached.  Passes the regression tests and our internal testing
  shows that it eliminates the error we were seeing (and doesn't cause
  blocking, which is even better).

  We have a workaround in place for our build system (more-or-less
  "don't do that" approach), but it'd really be great if this was
  back-patched and in the next round of point releases.  Glancing
  through the branches, looks like it should apply pretty cleanly.

      Thanks,

        Stephen

Attachment

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Teaching pg_receivexlog to follow timeline switches
Next
From: Amit kapila
Date:
Subject: Re: Review: Patch to compute Max LSN of Data Pages