Re: Automating Partitions in PostgreSQL - Query on syntax

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Automating Partitions in PostgreSQL - Query on syntax
Дата
Msg-id 4136ffa0904210837o17057034jf1abea1785b2e887@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Automating Partitions in PostgreSQL - Query on syntax  (vacuum@quantentunnel.de)
Ответы Re: Automating Partitions in PostgreSQL - Query on syntax  ("steven king" <vacuum@quantentunnel.de>)
Список pgsql-hackers
On Tue, Apr 21, 2009 at 4:13 PM,  <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>],

One thing you should realize is that the actual details of the syntax
will be knocked around and redefined later when there's actual code
anyways. People love to add their contribution at that point, there's
a nickname for it "bike shedding". You should worry more about the
functionality rather than the precise presentation of it. What are you
aiming to achieve here that the existing system lacks?

The point that you want to be able to set tablespaces is a good one
though. The general point is that you're going to want to be able to
set arbitrary table storage options though. That might mean you need a
separate DDL command for each partition.

The main thing the existing system lacks is an idea of what the
partition key is and how to determine which partition a given key
belongs in without checking every single partition. Figure out how to
accomplish this in the backend and people will be happy to offer their
suggestions for syntax.

-- 
greg


В списке pgsql-hackers по дате отправления:

Предыдущее
От: vacuum@quantentunnel.de
Дата:
Сообщение: Re: Automating Partitions in PostgreSQL - Query on syntax
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [ADMIN] License Issue