Missing Tablespace link error message misleading - Mailing list pgsql-bugs

From Simon Riggs
Subject Missing Tablespace link error message misleading
Date
Msg-id 1100122456.4442.613.camel@localhost.localdomain
Whole thread Raw
List pgsql-bugs
If, by some quirk of fate, you manage to delete the logical link to a
tablespace in pg_tblspc, then you try to access a table in that
tablespace, you get an error message that says:

ERROR:  could not open relation 15254222/17230/15254223: No such file or
directory

This is somewhat misleading. The message implies you do not have the
relation, when in fact you do not have the tablespace.

Anyway, I'm not expecting anyone to sweat to fix this, since the obvious
solution is not to delete the tablespace link in the first place!

You can recover the error by replacing the logical link.

Anyway...enjoy the speculation as to how this was even discovered :-)

--
Best Regards, Simon Riggs

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: ALTER USER SET log_* not allowed...
Next
From: Bruce Momjian
Date:
Subject: Re: ALTER USER SET log_* not allowed...