Re: Automating Partitions in PostgreSQL - Query on syntax

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Automating Partitions in PostgreSQL - Query on syntax
Дата
Msg-id 603c8f070904211036h148c4d35i59b1025268a7865e@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Automating Partitions in PostgreSQL - Query on syntax  ("steven king" <vacuum@quantentunnel.de>)
Ответы Re: Automating Partitions in PostgreSQL - Query on syntax  ("steven king" <vacuum@quantentunnel.de>)
Список pgsql-hackers
On Tue, Apr 21, 2009 at 12:35 PM, steven king <vacuum@quantentunnel.de> wrote:
> why a partition-key cannot be a complex expression?
>
> like this:
>
> SWITCH <expression>
> CASE <key_value> TABLE <table> [IN <table_space>]
> CASE <key_value> TABLE <table> [IN <table_space>]
> CASE <key_value> TABLE <table> [IN <table_space>]
> DEFAULT <table> [IN <table_space>]
>
> that is generic

Rather than SWITCH <expression> CASE <value> ... you probably would
want to reuse the existing PostgreSQL syntax of CASE <expression> WHEN
<value>...

But see my previous email for concerns about the performance of this
approach when the number of partitions is large.

...Robert


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: psql with "Function Type" in \df
Следующее
От: Jaime Casanova
Дата:
Сообщение: per db collate syntax