Re: create foreign table - Mailing list pgsql-admin

From Guillaume Lelarge
Subject Re: create foreign table
Date
Msg-id CAECtzeX1cYxwfi0toeEMhPxjRqVS_2+5_ks8CmJyciaA_bweKg@mail.gmail.com
Whole thread Raw
In response to create foreign table  (Sam Stearns <sam.stearns@dat.com>)
Responses Re: create foreign table
Re: create foreign table
List pgsql-admin
Hi,

Le lun. 14 oct. 2024 à 20:14, Sam Stearns <sam.stearns@dat.com> a écrit :
Howdy,

Receiving an error without much detail when creating a foreign table:

2024-10-14 11:08:30.928 PDT [1177724] ERROR:  conflicting or redundant options
2024-10-14 11:08:30.928 PDT [1177724] STATEMENT:  CREATE FOREIGN  TABLE ext_invalids (
                validcargo char(8),
                validauto char(8),
                cllocid char(8),
                insdid char(6),
                memberid char(14),
                attachdate char(12),
                commonauthority char(1),
                contractauthority char(1),
                compname char(60),
                docket_num char(9)
        ) SERVER external_dat_dir OPTIONS(filename 'DISABLED', format 'csv', delimiter ',', program '');

I'm not seeing much out there on the error.  I'm also not seeing what are valid values for the OPTIONS keyword in the Postgres documentation.

Would someone be able to give advice here, please?


Saying which FDW you're using would help, but I guess it's file_fdw.

You can't specify both filename and program. You have to choose one of them.

Regards.


--
Guillaume.

pgsql-admin by date:

Previous
From: Sam Stearns
Date:
Subject: create foreign table
Next
From: Sam Stearns
Date:
Subject: Re: create foreign table