Re: Advantage of more than 1 tablespace on 1 disk? - Mailing list pgsql-general

From Rainer Pruy
Subject Re: Advantage of more than 1 tablespace on 1 disk?
Date
Msg-id 490EEA48.4000708@acrys.com
Whole thread Raw
In response to Advantage of more than 1 tablespace on 1 disk?  ("Thom Brown" <thombrown@gmail.com>)
List pgsql-general
Hi Thom,

table spaces are not in the first place related with addressing usage pattern of individual tables.
They are a mechanism for putting up a *logical* layout of persistent storage.
As such they are describing segments of persistence storage that will (or "might from the point of view of the schema
designer")
benefit from being mapped to physical disks independently. (e.g. separating table data and index data, or arrange for
indexesused 
with hot queries to be accessible via different IO channels)

For a given machine and disk configuration you may then decide what table space to be mapped to what physical disk.
(Hopefully being aware that this will decrease throughput)

For addressing your actual question you might have a look at indexing, clustering and/or clustering. Those deal with
efficiencyof 
accessing individual tables.

Rainer

Thom Brown schrieb:
> Hi,
>
> I've got a database with massive tables which fall into 2 categories:
> Tables which don't change often but get read a LOT, and tables which
> are heavily added to continuously and sometimes read.
>
> Would there be any advantage in moving the latter logging tables to a
> separate tablespace, bearing in mind it would still be on the same
> disk?  Or have I kinda missed how tablespaces work?
>
> Thanks
>
> Thom
>


pgsql-general by date:

Previous
From: "Grzegorz Jaśkiewicz"
Date:
Subject: Re: Advantage of more than 1 tablespace on 1 disk?
Next
From: Harald Fuchs
Date:
Subject: Re: Redefining an existing Table Schema for Foreign Key Constraint - Question