Re: Suggestion: Explain how to move objects to the default tablespace in sql-altertable.html

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Holger Jakobs <holger(at)jakobs(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Suggestion: Explain how to move objects to the default tablespace in sql-altertable.html
Date: 2021-12-01 16:16:45
Message-ID: 1734712.1638375405@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Holger Jakobs <holger(at)jakobs(dot)com> writes:
> Since the default tablespace doesn't have to be mentioned in CREATing an
> object, the information wouldn't be helpful there.
> But when ALTERing an object in order to move it to the default
> tablespace, its name has to be mentioned explicitly. That's where it's
> lacking.

It seems like the core misunderstanding here is closely associated
with the notion that the default tablespace is "unnamed". Every
tablespace has a name. I'm not sure where we might need to clarify
that, but I suspect it's somewhere around the default_tablespace
setting, not ALTER TABLE.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sbob 2021-12-01 22:37:56 sort output per alpha-numeric?
Previous Message Holger Jakobs 2021-12-01 15:49:44 Re: Suggestion: Explain how to move objects to the default tablespace in sql-altertable.html