Re: Questions On Tablespace - Mailing list pgsql-general

From Tom Lane
Subject Re: Questions On Tablespace
Date
Msg-id 6972.1254078864@sss.pgh.pa.us
Whole thread Raw
In response to Questions On Tablespace  (Carlo Camerino <carlo.camerino@gmail.com>)
List pgsql-general
Carlo Camerino <carlo.camerino@gmail.com> writes:
> I have questions regarding tablespaces, What happens when the disk on
> which my tablespace is in fills up?

You start getting errors.

> How do I expand my tablespace, in oracle there is a concept of
> datafiles? In postgresql I specify a directory instead of a single
> file...

If you expect to need to expand the filesystem, you should be using
LVM or local equivalent so that you can add or remove disks from
the filesystem as needed.

Oracle's design dates from a time when filesystems tended to suck and so
Oracle felt it should reimplement all the filesystem-level functionality
for itself.  Postgres is not interested in reinventing the wheel, so we
don't do that.  You won't find any "raw disk access" functions in
Postgres either.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: CREATE LANGUAGE workaround
Next
From: David Fetter
Date:
Subject: Re: generic modelling of data models; enforcing constraints dynamically...