Re: Tablespace patch review

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Tablespace patch review
Date: 2004-06-18 22:14:15
Message-ID: 3909.1087596855@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> writes:
> On Fri, 18 Jun 2004, Bruce Momjian wrote:
>> * Allow reporting of which objects are in which tablespaces

> Do we need an information_schema.tablespaces view as well as an update to
> information_schema.{tables|indexes|...} ?

That would depend on your theology about whether implementation-specific
additions to information_schema are a good idea or not. I'd lean
against doing this myself. ISTM the entire point of information_schema
is to be standard, and additions are, well, not. Worse, they might
conflict with future extensions to the standard.

I don't actually see a way *inside the database* to implement Bruce's
TODO item; there's no way for a backend to look at the catalogs of other
databases. We could look to see which databases had nonempty
subdirectories of a tablespace, and report those databases by name, but
explaining exactly what's inside those subdirectories is a lot harder.

It might be better to think about supporting this need with oid2name
or some similar client-level tool. It's easy to see how oid2name
might be extended to produce an output like

Tablespace t1
Database d1
Table x
Table y
Database d2
etc etc

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2004-06-18 22:21:37 Cannot initdb in cvs tip
Previous Message Abhijit Menon-Sen 2004-06-18 22:13:23 Re: specifying multiple result format codes with libpq

Browse pgsql-patches by date

  From Date Subject
Next Message Andreas Pflug 2004-06-18 22:27:06 Re: Tablespace patch review
Previous Message Gavin Sherry 2004-06-18 22:12:51 Re: Tablespace patch review