Re: CREATE TABLESPACE SET

From: David Fetter <david(at)fetter(dot)org>
To: Vik Fearing <vik(dot)fearing(at)dalibo(dot)com>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CREATE TABLESPACE SET
Date: 2013-12-26 17:10:57
Message-ID: 20131226171057.GA5501@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 24, 2013 at 07:25:01PM +0100, Vik Fearing wrote:
> I was recently annoyed that I had to do
>
> CREATE TABLESPACE x LOCATION y;
> ALTER TABLESPACE x SET (random_page_cost = z);
>
> The attached patch is a quick n' dirty extension to allow the SET
> directly on the CREATE statement.
>
> CREATE TABLESPACE x LOCATION y SET (random_page_cost = z);

That should probably be WITH instead of SET for consistency with other
similar DDL.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vik Fearing 2013-12-26 17:33:20 Re: CREATE TABLESPACE SET
Previous Message Joseph Kregloh 2013-12-26 16:31:39 Re: pg_upgrade & tablespaces