ildus / clickhouse_fdw

ClickHouse FDW for PostgreSQL
Apache License 2.0
260 stars 55 forks source link

Allow column_name and arrays in column options #93

Closed gh56123 closed 1 year ago

gh56123 commented 1 year ago

Both column_name and arrays are already supported as options in https://github.com/gh56123/clickhouse_fdw/blob/master/src/custom_types.c#L522-L539

Before this patch:

ALTER FOREIGN TABLE foreign_table ALTER COLUMN pg_column_name OPTIONS (
        column_name 'column_name_as_in_clickhouse'
    );
ERROR:  invalid option "column_name"
HINT:  Valid options in this context are: aggregatefunction, simpleaggregatefunction