create database name with location = 'path'; - Mailing list pgsql-hackers

From mlw
Subject create database name with location = 'path';
Date
Msg-id 3AF73340.66DE9136@mohawksoft.com
Whole thread Raw
Responses Re: create database name with location = 'path';  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I have ALLOW_ABSOLUTE_DBPATHS enabled. but it does not do what one would
assume.

template1=# create database fubar with location = '/tmp'  ;
ERROR:  CREATE DATABASE: could not link '/postgres/data/base/12523613' to
'/tmp/base/12523613': Operation not permitted

Is this telling me it is creating the database as it always does, but is
linking it to the specified location ?

If so, what's the point of this?


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: CVS branch management (was Re: A problem with new pg_dump)
Next
From: Tom Lane
Date:
Subject: Re: Isn't pg_statistic a security hole?