Re: Error: could not read symbolic link "pg_tblspc/940585". No such file or directory

Поиск
Список
Период
Сортировка
От Igor Neyman
Тема Re: Error: could not read symbolic link "pg_tblspc/940585". No such file or directory
Дата
Msg-id A76B25F2823E954C9E45E32FA49D70ECC229DBD6@mail.corp.perceptron.com
обсуждение исходный текст
Ответ на Error: could not read symbolic link "pg_tblspc/940585". No such file or directory  (Guillaume Drolet <droletguillaume@gmail.com>)
Список pgsql-general

 

 

From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Guillaume Drolet
Sent: Thursday, February 05, 2015 8:29 AM
To: pgsql-general@postgresql.org
Subject: [GENERAL] Error: could not read symbolic link "pg_tblspc/940585". No such file or directory

 

Dear list users,

I moved a database from a tablespace I had created to pg_default using:

ALTER DATABASE mydatabase SET TABLESPACE pg_default;

After the database was fully copied to a new directory under PGDATA/base, I deleted the symbolic link to the old tablespace using (in Windows) rmdir PGDATA/pg_tblspc/940585. I chose to delete this now useless symlink because of an error when running pg_basebackup (something about a non-empty directory under the symlink).

Now, when I start pgAdmin and connect to my cluster, I get the following pop-up message (free translation from French):

An error has occurred:

ERROR: could not read symbolic link "pg_tblspc/940585": No such file or directory.

If I click OK on the pop-up, the connection is made and everything looks good (i.e. I can access my databases, tables, etc.). My question is: where do I have to look to delete a reference to this obsolete symbolic link/tablespace in pgAdmin or PGSQL?

Thanks a lot for your help,

Guillaume

You probably, still have your tablespace that you created, which now using non-existing symbolic link.

Before deleting windows symbolic link, you should have dropped tablespace you created.  Try dropping it now.

Regards,

Igor Neyman

 

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

Предыдущее
От: Guillaume Drolet
Дата:
Сообщение: Error: could not read symbolic link "pg_tblspc/940585". No such file or directory
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DB encoding, locale and indexes