LINE 1: CREATE FOREIGN TABLE ft1 () SERVER sc WITH OIDS;
^
CREATE FOREIGN TABLE ft1 (
- c1 integer NOT NULL,
- c2 text,
+ c1 integer OPTIONS (param1 'val1') NOT NULL,
+ c2 text OPTIONS (param2 'val2', param3 'val3'),
c3 date
) SERVER sc OPTIONS (delimiter ',', quote '"');
COMMENT ON FOREIGN TABLE ft1 IS 'ft1';
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 OPTIONS (SET p2 'V2', DROP p1);
\dec+
List of foreign table columns
- Schema | Table | Column | Options
---------+-------+--------+---------------
- public | ft1 | c1 |
- public | ft1 | c2 |
+ Schema | Table | Column | Options
+--------+-------+--------+---------------------------
+ public | ft1 | c1 | {param1=val1}
+ public | ft1 | c2 | {param2=val2,param3=val3}
public | ft1 | c3 |
public | ft1 | c4 |
public | ft1 | c6 |
CREATE FOREIGN TABLE ft1 (c1 serial) SERVER sc; -- ERROR
CREATE FOREIGN TABLE ft1 () SERVER sc WITH OIDS; -- ERROR
CREATE FOREIGN TABLE ft1 (
- c1 integer NOT NULL,
- c2 text,
+ c1 integer OPTIONS (param1 'val1') NOT NULL,
+ c2 text OPTIONS (param2 'val2', param3 'val3'),
c3 date
) SERVER sc OPTIONS (delimiter ',', quote '"');
COMMENT ON FOREIGN TABLE ft1 IS 'ft1';