Re: tablespace and sequences?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Philip Warner <pjw(at)rhyme(dot)com(dot)au>, Bruce Momjian <pgman(at)candle(dot)pha(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 03:47:17
Message-ID: 15829.1092973637@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-hackers pgsql-hackers-win32

Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> writes:
> The problem with ALTER TABLE is that it can be hugely expensive, I think.

As long as you did it before loading any data, it wouldn't be too bad.
But certainly a preceding SET would be cheaper than pushing even
zero-size files around.

I don't have any problem with adding a SET variable at this stage of the
game, if everyone agrees it's an appropriate solution.

One point here is the handling of index tablespaces. I added TABLESPACE
as part of "pg_get_indexdef" output, but we'd need a different solution
if we want to go down this path. Maybe it's not a problem given this
idea about where pg_dump is going to specify tablespace. But someone
needs to take a close look at pg_dump's logic to see if this can work.

regards, tom lane

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Philip Warner 2004-08-20 04:04:34 Re: tablespace and sequences?
Previous Message Bruce Momjian 2004-08-20 03:46:09 Re: tablespace and sequences?

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2004-08-20 03:56:51 Re: postgres uptime
Previous Message Bruce Momjian 2004-08-20 03:47:11 Re: postgres uptime

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Andrew Francis 2004-08-20 03:47:25 Re: postgresql build on MS Visual studio 20
Previous Message Bruce Momjian 2004-08-20 03:46:09 Re: tablespace and sequences?