Re: Tablespaces in the data directory - Mailing list pgsql-hackers

From Noah Misch
Subject Re: Tablespaces in the data directory
Date
Msg-id 20121205010442.GA16472@tornado.leadboat.com
Whole thread Raw
In response to Re: Tablespaces in the data directory  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Mon, Dec 03, 2012 at 01:14:30PM -0500, Andrew Dunstan wrote:
> I think it would be reasonable for it to complain if it came across a  
> PG_VERSION file in an unexpected location.

That sounds like a reliable approach to detecting the hazard.  Pseudocode:
chdir(proposed_tablespace_path)do {    if (stat("PG_VERSION"))        ereport(WARNING, ...)} while (chdir(".."))



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] PITR potentially broken in 9.2
Next
From: Andres Freund
Date:
Subject: Re: [BUGS] PITR potentially broken in 9.2