Re: Tablespace patch review - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Tablespace patch review
Date
Msg-id 200406200015.i5K0FkV13728@candle.pha.pa.us
Whole thread Raw
In response to Re: Tablespace patch review  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Well, I didn't use tablespaces here so the pg_tablespaces directory is
> > empty, so I can't think of what the tablespace is.
>
> You look in the pg_tablespace catalog for the row with that OID.
>
> > Also, are we calling it pg_tablespaces (plural) rather than
> > pg_tablespace?
>
> I didn't have any particular opinion about that till just now ...
> but now I see that it's a good idea for the pg_tablespaces directory
> (the one that holds all the symlinks) to have a different name from the
> pg_tablespace catalog, especially since the latter has a couple of rows
> that do not correspond to any entries in the former.

If you want something distinct, which I understand, perhaps pg_tblspc.

> I'm not wedded to "pg_tablespaces" as the name in particular, but
> it should not be "pg_tablespace", or we'll suffer the same confusion
> over and over that you just did.

OK.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: "Dave Page"
Date:
Subject: Re: [HACKERS] Cannot initdb in cvs tip
Next
From: Bruce Momjian
Date:
Subject: Re: Tablespace patch review