Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Date: 2004-08-23 03:57:38
Message-ID: 6.1.1.1.0.20040823135335.04fd6338@203.8.195.10
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

At 01:48 PM 23/08/2004, Marc G. Fournier wrote:
>Won't the dump/restore "store" a "CREATE SCHEMA" onto the new
>tablespace? Why would a dump/restore issue an ALTER SCHEMA part way through?

My *belief* is that if the tablespace does not exist, then the restore
(which creates the schema and refers to the non-existent tablespace) will
fail to create the schema.

We've had the same problem with CREATE TABLE statements. Tom is (I think)
working on a SET DEFAULT_TABLESPACE command so that CREATE TABLE no longer
refers to the tablespace. Not sure if it will apply to databases or schemas
though.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 03 5330 3172 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp.mit.edu:11371 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-08-23 04:28:48 Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Previous Message Marc G. Fournier 2004-08-23 03:48:14 Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-08-23 04:28:48 Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Previous Message Marc G. Fournier 2004-08-23 03:48:14 Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE