Skip site navigation (1) Skip section navigation (2)

pgsql: Make pg_tablespace_location(0) return the database's defaulttab

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make pg_tablespace_location(0) return the database's defaulttab
Date: 2012-04-11 01:43:28
Message-ID: E1SHmam-0002ZN-Tn@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3769fa5fc64298143cf535c8a06921793598e458

Modified Files
--------------
src/backend/utils/adt/misc.c |   10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)

Responses

pgsql-committers by date

Next:From: Bruce MomjianDate: 2012-04-11 02:09:37
Subject: Re: pgsql: Make pg_tablespace_location(0) return the database's default tab
Previous:From: Bruce MomjianDate: 2012-04-10 23:58:19
Subject: pgsql: Fix pg_upgrade to properly upgrade a table that is stored inthe

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group