Re: tablespace and sequences? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tablespace and sequences?
Date
Msg-id 16586.1092978850@sss.pgh.pa.us
Whole thread Raw
In response to Re: tablespace and sequences?  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: tablespace and sequences?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Re: tablespace and sequences?  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> Just to confirm; it's only tables and indexes that have tablespaces, and I 
> can issue some kind of SET command. Any idea of the syntax?

> As an aside: should a database be allowed to have a default tablespace?

Well, tables and indexes definitely have tablespaces.  Schemas have
default tablespaces that their child objects inherit, though there is
no storage associated with the schema itself.  Databases have default
tablespaces that (a) their child objects inherit, and (b) the system
catalogs of that database live in.

We already have some TODO items about sorting out exactly how the
defaulting behavior works here.  In particular, what if anything is the
difference between a child object inheriting a default tablespace TS,
and explicitly saying "TABLESPACE TS" in its definition?  If we attempt
to reload this mess with a different default tablespace for the parent
object, what happens to the child in each case?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgres uptime
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: tablespace and sequences?