Re: tablespace and sequences?

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


Dear Philip,

> 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.

This prior SET option looks much better and cleaner. Maybe the TOC entry
update is not really necessary if the SET is separate?

If the SET fails, what tablespace is expected to be chose? pg_global? I
guess the SET would be mandatory, that is it would supercede other
defaults such as chose the tablespace of the SCHEMA? Also, should there be
provision for unsetting?

I can give a hand about the implementation over the week-end, esp. as I'm
the one taking a stand on this issue. However I do not know much about
pg_dump format and issues, so I'm not sure I'm the best person for a quick
and clean implementation.

Have a nice day,

--
Fabien Coelho - coelho(at)cri(dot)ensmp(dot)fr

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Philip Warner 2004-08-20 08:34:53 Re: tablespace and sequences?
Previous Message Tom Lane 2004-08-20 06:08:43 Re: tablespace and sequences?

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2004-08-20 08:15:40 Re: postgres uptime
Previous Message Tom Lane 2004-08-20 06:08:43 Re: tablespace and sequences?

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Philip Warner 2004-08-20 08:34:53 Re: tablespace and sequences?
Previous Message Dave Page 2004-08-20 07:45:53 Re: InitDB Failure on install