Re: tablespaces and DB administration - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: tablespaces and DB administration
Date
Msg-id 40B5470D.6000804@familyhealth.com.au
Whole thread Raw
In response to Re: tablespaces and DB administration  (pgsql@mohawksoft.com)
List pgsql-hackers
> BTW: Is there a public spec on what will be tablespace compatible and how?
> For instance: will is be possible to create a table on a separate
> tablespace than the DB? Will it be possible to create an index on a
> separate tablespace than the table?

(Since Gavin hasn't replied yet)

1. There are two default tablespaces, global and default.  Global is for 
shared catalogs, default is for all other catalog data.

2. By default databases are created in the default tablespace, you can 
override this.

3. By default schemas are created in the database's tablepsace, but this 
can be overridden.

5. Tables and sequences are created in the schema's tablespace by 
default, but this can be overridden

6. Indexes and SERIAL sequences are created in the table's tablespace by 
default, but this can be overridden.

When pg_dumping, care is taken so that the tablespace qualification is 
only dumped if the object is in its 'non-default' tablespace.

Chris




pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: SELECT * FROM LIMIT 1; is really slow
Next
From: Tom Lane
Date:
Subject: Re: SELECT * FROM
LIMIT 1; is really slow