Re: tablespace and sequences?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: tablespace and sequences?
Date: 2004-08-20 02:37:57
Message-ID: 200408200237.i7K2bvM11370@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-hackers pgsql-hackers-win32

Philip Warner wrote:
> At 02:33 AM 20/08/2004, Bruce Momjian wrote:
> > > Could we 'set default tablespace xxx', then have pg_dump/restore use a
> > > 'create table' that does not refer to the tablespace?
> >
> >That is what I was assuming. You can't retroactively change the dump
> >file during restore so we would have some SET varaiable you would set
> >before doing the restore that said to handle create tablespace errors.
>
> Actually I was thinking of a little more than a setting to ignore errors;
> we would need to:
>
> - modify pg_dump to store the tablespace name as a separate
> part of the TOC entry, NOT as part of the CREATE TABLE.
> - modify pg_restore to issue 'set default tablespace xxxx'
> before restoring a table OR, per Fabiens suggestion, issue
> an ALTER TABLE after the create.
>
> Then table-space related errors will not stop a table being created.

But that doesn't fix ascii dumps loaded via psql.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Philip Warner 2004-08-20 02:47:44 Re: tablespace and sequences?
Previous Message Philip Warner 2004-08-20 01:42:57 Re: tablespace and sequences?

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2004-08-20 02:46:15 Re: All three packages ...
Previous Message Christopher Kings-Lynne 2004-08-20 01:43:13 Re: postgres uptime

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Philip Warner 2004-08-20 02:47:44 Re: tablespace and sequences?
Previous Message Philip Warner 2004-08-20 01:42:57 Re: tablespace and sequences?