Re: Status of tablespaces

From: "Jim Buttafuoco" <jim(at)contactbda(dot)com>
To: Mariusz Czuada <manieq(at)idea(dot)net(dot)pl>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Status of tablespaces
Date: 2003-01-28 16:34:19
Message-ID: 200301281634.h0SGYJD08980@contactbda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

All,

This is exactly what my patch added. The ability to do the following

CREATE DATABASE foo TABLESPACE X INDEX_TABLESPACE Y TEMP_TABLESPACE Z;
CREATE SCHEMA foo TABLESPACE X INDEX_TABLESPACE Y TEMP_TABLESPACE Z; -- override the database setting
CREATE TABLE T (...) TABLESPACE X; -- override the SCHEMA setting
CREATE INDEX I (...) TABLESPACE X; -- override the SCHEMA setting

CREATE TABLESPACE A location '/XXX/YYY/ZZZ'; -- define a tablespace

If any of the TABLESPACE options are missing take from DATABASE/SCHEMA setting.

I don't remember exactly why it was rejected at the time.

Jim

> hi
>
> Dnia wto 28. stycznia 2003 16:19, Tom Lane napisa³:
> >
> > Well, what I envision is only a cleaner reimplementation of the
> > existing LOCATION facility: the DBA will be able to designate certain
> > directories as tablespaces and then assign individual tables, indexes,
> > etc to particular tablespaces. Presumably, the DBA places each
> > tablespace directory on a different disk (otherwise there's not much
> > point in the exercise), and then the arrangement lets him control what
> > lives where.
> >
>
> Does this mean (in long term) ability to:
>
> CREATE SCHEMA xyz
> DEFAULT TABLESPACE ts_data
> INDEX TABLESPACE ts_index;
> (to define place for created objects)
>
> or
>
> ALTER TABLE tab1 TABLESPACE ts_data1;
> (to change location of datafile for 'tab1')
>
> ?
>
> --
>
> Mariusz Czulada
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Uros Gruber 2003-01-28 16:35:08 Re: tsearch comments
Previous Message Tomaz Borstnar 2003-01-28 16:33:49 Re: list server problems?