Re: Parser extensions (maybe for 10?) - Mailing list pgsql-hackers

From Stas Kelvich
Subject Re: Parser extensions (maybe for 10?)
Date
Msg-id C8959C5A-C958-4D57-A89D-5A2BB6E2531C@postgrespro.ru
Whole thread Raw
In response to Parser extensions (maybe for 10?)  (Arcadiy Ivanov <arcadiy@gmail.com>)
List pgsql-hackers
> On 12 Apr 2016, at 07:36, Arcadiy Ivanov <arcadiy@gmail.com> wrote:
>
> [
>   DISTRIBUTE BY { REPLICATION | ROUNDROBIN | { [HASH | MODULO ] ( column_name ) } } |
>   DISTRIBUTED { { BY ( column_name ) } | { RANDOMLY } |
>   DISTSTYLE { EVEN | KEY | ALL } DISTKEY ( column_name )
> ]
> [ TO { GROUP groupname | NODE ( nodename [, ... ] ) } ]

Less invasive way to achieve same is to use WITH parameter
that already exists in CREATE TABLE, CREATE INDEX, etc.

Like that:

create table foo(id int) with(distributed_by=‘id’, nodes=’node1, node2’);

That’s easier to allow extensions to define custom parameters for WITH, than
to extend parser.

--
Stas Kelvich
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company




pgsql-hackers by date:

Previous
From: Yury Zhuravlev
Date:
Subject: Proposal: Remove regress-python3-mangle.mk
Next
From: Alvaro Herrera
Date:
Subject: Re: snapshot too old, configured by time