Make pg_tablespace_location(0) return the database's default tablespace.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Apr 2012 01:42:46 +0000 (21:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Apr 2012 01:43:14 +0000 (21:43 -0400)
commit3769fa5fc64298143cf535c8a06921793598e458
tree64a553eb9f2a760275e1a54a96c17663ecb7cc4b
parent38458e45736efeb0d82739305c77c529c9cf0e1e
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.
src/backend/utils/adt/misc.c