Re: Parser extensions (maybe for 10?)

From: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
To: Arcadiy Ivanov <arcadiy(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Parser extensions (maybe for 10?)
Date: 2016-04-19 15:46:05
Message-ID: C8959C5A-C958-4D57-A89D-5A2BB6E2531C@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 12 Apr 2016, at 07:36, Arcadiy Ivanov <arcadiy(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-04-19 16:02:20 Re: snapshot too old, configured by time
Previous Message Dean Rasheed 2016-04-19 15:33:04 Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees.