Re: Automating Partitions in PostgreSQL - Query on syntax - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Automating Partitions in PostgreSQL - Query on syntax
Date
Msg-id 603c8f070904210839v53081901m18162716f66ff353@mail.gmail.com
Whole thread Raw
In response to Re: Automating Partitions in PostgreSQL - Query on syntax  (vacuum@quantentunnel.de)
Responses Re: Automating Partitions in PostgreSQL - Query on syntax  ("steven king" <vacuum@quantentunnel.de>)
List pgsql-hackers
On Tue, Apr 21, 2009 at 11:13 AM,  <vacuum@quantentunnel.de> wrote:
> oh sorry ..
>
> but what I miss in this discussion - where we can define tablespace?
>
> CREATE PARTITIONS ON <table> (
>
> CASE WHEN <condition> THEN emp_xxx [IN <tablespace>],
> CASE WHEN <condition> THEN emp_yyy [IN <tablespace>],
> CASE WHEN <condition> emp_zzz [IN <tablespace>],
> ELSE emp_default [IN <tablespace>]
> )

Oh blech.  That IN <tablespace> syntax is awful.  What about the other
relevant parameters to CREATE TABLE - where are you going to put
those?

WITH (<storage parameter>)
WITH OIDS
WITHOUT OIDS

And what happens when I need to alter a partition after the fact, say
to move it to a new tablespace, or change the fillfactor?  Since your
syntax doesn't give names to the partitions, how will I refer to them
later?

...Robert


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: [ADMIN] License Issue
Next
From: Heikki Linnakangas
Date:
Subject: Re: New trigger option of pg_standby