pg_tablespace_location() error message

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: pg_tablespace_location() error message
Date: 2012-04-10 20:32:17
Message-ID: 20120410203217.GU15085@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 or
directory

Is this OK? It handles NULL just fine:

test=> select pg_tablespace_location(null);
pg_tablespace_location
------------------------

(1 row)

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2012-04-10 21:04:09 Re: [JDBC] Regarding GSoc Application
Previous Message Jeff Davis 2012-04-10 20:12:36 Re: Last gasp