Re: pgsql: Make pg_tablespace_location(0) return the database's default tab

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Make pg_tablespace_location(0) return the database's default tab
Date: 2012-04-11 02:09:37
Message-ID: 20120411020937.GM3379@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Wed, Apr 11, 2012 at 01:43:28AM +0000, Tom Lane wrote:
> 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.

It would be nice to remove the special-case handling of 0 in pg_upgrade,
but because it has to deal with pre-9.2 cluster, it has to remain anyway.

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

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

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2012-04-11 07:36:12 pgsql: Accept postgres:// URIs in libpq connection functions
Previous Message Tom Lane 2012-04-11 01:43:28 pgsql: Make pg_tablespace_location(0) return the database's default tab