pg_tablespace_location() error message - Mailing list pgsql-hackers

From Bruce Momjian
Subject pg_tablespace_location() error message
Date
Msg-id 20120410203217.GU15085@momjian.us
Whole thread Raw
Responses Re: pg_tablespace_location() error message  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
The new pg_tablespace_location() function added in PG 9.2 to remove the
director location from pg_tablespace returns an odd error for '0', which
is InvalidOID:
test=> select pg_tablespace_location(0);ERROR:  could not read symbolic link "pg_tblspc/0": No such file ordirectory

Is this OK?  It handles NULL just fine:test=> select pg_tablespace_location(null);
pg_tablespace_location------------------------(1row)
 

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Last gasp
Next
From: Merlin Moncure
Date:
Subject: Re: [JDBC] Regarding GSoc Application