Re: Using symbolic links with tablespaces

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: miller_2555 <nabble(dot)30(dot)miller_2555(at)spamgourmet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Using symbolic links with tablespaces
Date: 2009-09-09 03:13:59
Message-ID: 15182.1252466039@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

miller_2555 <nabble(dot)30(dot)miller_2555(at)spamgourmet(dot)com> writes:
> So this does not work well apparently.

The only obvious thing wrong with your example is failing to preserve
ownership/permissions of the moved files. I think the upper directories
are probably not readable by Postgres so it's choking.

BTW, Postgres *already* refers to tablespaces via symlinks, so you could
do this with a tad less runtime overhead by re-pointing the appropriate
symlink inside $PGDATA/pg_tblspc/.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message 纪晓曦 2009-09-09 03:36:03 Re: Can I Save images in postgres?
Previous Message John R Pierce 2009-09-09 01:50:49 Re: where clauses and multiple tables