Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Alternative database locations are broken - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: Alternative database locations are broken
Date
Msg-id [email protected]
Whole thread Raw
In response to RE: Alternative database locations are broken  (Peter Eisentraut <[email protected]>)
Responses Re: Alternative database locations are broken
List pgsql-hackers
> >> I think that to handle locations we could symlink catalogs - ln -s
> >> path_to_database_in_some_location .../base/DatabaseOid
> 
> > But that's a kludge.  We ought to discourage people from messing with the
> > storage internals.
> 
> It's not a kluge, it's a perfectly fine implementation.  The only kluge
> here is if people have to reach in and establish such symlinks by hand.
> We want to set up a user interface that hides the implementation.

Agreed. And I don't see problems with handling this at CREATE DATABASE
time. Create database dir in specified location, create symlink from
base dir and remember location name in pg_database.datpath.

Vadim




pgsql-hackers by date:

Previous
From: "Vadim Mikheev"
Date:
Subject: Re: Transaction ID wraparound: problem and proposed solution
Next
From: Peter Mount
Date:
Subject: Re: Current CVS broken?