Re: DB on mSATA SSD

From: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: DB on mSATA SSD
Date: 2015-04-23 13:13:24
Message-ID: 5538EFF4.7010108@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On 04/23/15 14:33, John McKown wrote:
>
> ​That's a really old release. But I finally found some doc on it. And
> 8.4 does appear to have TABLESPACEs in it.
>
> http://www.postgresql.org/docs/8.4/static/manage-ag-tablespaces.html
>
> <quote>
>
> To define a tablespace, use the CREATE TABLESPACE
> <http://www.postgresql.org/docs/8.4/static/sql-createtablespace.html> command,
> for example::
>
> CREATE TABLESPACE fastspace LOCATION '/mnt/sda1/postgresql/data';
>
> The location must be an existing, empty directory that is owned by the
> PostgreSQL system user. All objects subsequently created within the
> tablespace will be stored in files underneath this directory.

I think you should read this:

http://thebuild.com/blog/2013/03/10/you-cannot-recover-from-the-loss-of-a-tablespace/

in other words, using tablespaces for placing some of the data into a
RAM filesystem (which may disappear) is a rather terrible idea. In case
of crash you won't be able to even start the database, because it will
try to recover the tablespace.

--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2015-04-23 13:21:53 Re: DB on mSATA SSD
Previous Message Chris Mair 2015-04-23 12:50:02 Re: DB on mSATA SSD