From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
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 01:42:57 |
Message-ID: | 6.1.1.1.0.20040820113945.0494adf8@203.8.195.10 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin pgsql-hackers pgsql-hackers-win32 |
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.
----------------------------------------------------------------
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 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-08-20 02:37:57 | Re: tablespace and sequences? |
Previous Message | Fabien COELHO | 2004-08-19 16:46:38 | tablespace and pg_dump/restore |
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2004-08-20 01:43:13 | Re: postgres uptime |
Previous Message | Christopher Kings-Lynne | 2004-08-20 01:38:34 | Re: All three packages ... |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-08-20 02:37:57 | Re: tablespace and sequences? |
Previous Message | Mark Kirkwood | 2004-08-20 01:10:52 | Re: InitDB Failure on install |