Re: Using symbolic links with tablespaces

Поиск
Список
Период
Сортировка
От miller_2555
Тема Re: Using symbolic links with tablespaces
Дата
Msg-id 25358474.post@talk.nabble.com
обсуждение исходный текст
Ответ на Re: Using symbolic links with tablespaces  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general


Tom Lane-2 wrote:
>
> miller_2555 <nabble.30.miller_2555@spamgourmet.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
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>

Thanks for the tip on the overhead, I'll have to look into it. However, I
hadn't yet copied any files when running into issues with Postgres. I merely
removed the old symlink and created another (though it appears that I would
also have had to re-link the $PGDATA/pg_tblspc/ files as well since that
symlink would have probably broken upon deletion of the target symlink) . I
am still uncertain as to how the system tables are inconsistent, though (I
did not directly modify any of the system tables).

Thanks.

--
View this message in context: http://www.nabble.com/Using-symbolic-links-with-tablespaces-tp25353894p25358474.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


В списке pgsql-general по дате отправления:

Предыдущее
От: 纪晓曦
Дата:
Сообщение: Re: Can I Save images in postgres?
Следующее
От: Scott Frankel
Дата:
Сообщение: Re: where clauses and multiple tables