Make pg_tablespace_location(0) return the database's default tablespace.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3769fa5fc64298143cf535c8a06921793598e458
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-04-11T01:43:14Z
Releases: 9.2.0
Make pg_tablespace_location(0) return the database's default tablespace.

This definition is convenient when applying the function to the
reltablespace column of pg_class, since that's what zero means there;
and it doesn't interfere with any other plausible use of the function.
Per gripe from Bruce Momjian.

Files

PathChange+/−
src/backend/utils/adt/misc.c modified +9 −1