From daa3a9e2bf2ab024d0f9f9b284d41fecd4808132 Mon Sep 17 00:00:00 2001 From: gh56123 <108673731+gh56123@users.noreply.github.com> Date: Fri, 22 Sep 2023 00:45:50 -0700 Subject: [PATCH] Allow column_name and arrays in column options (#93) 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 ``` --- src/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/option.c b/src/option.c index dabd1c7..fe628b2 100644 --- a/src/option.c +++ b/src/option.c @@ -137,6 +137,8 @@ InitChFdwOptions(void) {"driver", ForeignServerRelationId, false}, {"aggregatefunction", AttributeRelationId, false}, {"simpleaggregatefunction", AttributeRelationId, false}, + {"column_name", AttributeRelationId, false}, + {"arrays", AttributeRelationId, false}, {NULL, InvalidOid, false} };