From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Philip Warner <pjw(at)rhyme(dot)com(dot)au>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Using ALTER TABLESPACE in pg_dump |
Date: | 2004-11-06 05:42:55 |
Message-ID: | 200411060542.iA65gtu28989@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
FYI, we need tablespace_default to control this pg_dump output for a
primary key:
ALTER TABLE ONLY test2
ADD CONSTRAINT test2_pkey PRIMARY KEY (x);
---------------------------------------------------------------------------
Tom Lane wrote:
> Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> > Time is at a serious premium for me at the moment (I have several projects
> > all due about now); but I wrote a patch for this a few weeks back, so it
> > should not be a lot of work (unless pg_dump has changed in the last couple
> > of months).
>
> If you have a preliminary patch, you could pass it along and I'll finish
> it up.
>
> > Excellent. I assume that anything that can have a tablespace (database,
> > schema(?), table and index -- anything else?) should emit a 'set
> > default_tablespace="ts"' before creation (and that this will affect
> > auto-created indexes as appropriate, whatever that means).
>
> default_tablespace will affect both tables and auto-created indexes.
> But I was under the impression that pg_dump deliberately avoids
> auto-creation of indexes... isn't each one split out as an ADD
> CONSTRAINT operation?
>
> Schemas don't have tablespaces anymore.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2004-11-06 05:50:19 | Re: [PATCHES] CVS should die |
Previous Message | Bruce Momjian | 2004-11-06 05:39:26 | Re: Using ALTER TABLESPACE in pg_dump |