Skip to content

Commit daa3a9e

Browse files
authored
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 ```
1 parent a2cd63d commit daa3a9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/option.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ InitChFdwOptions(void)
137137
{"driver", ForeignServerRelationId, false},
138138
{"aggregatefunction", AttributeRelationId, false},
139139
{"simpleaggregatefunction", AttributeRelationId, false},
140+
{"column_name", AttributeRelationId, false},
141+
{"arrays", AttributeRelationId, false},
140142
{NULL, InvalidOid, false}
141143
};
142144

0 commit comments

Comments
 (0)