public inbox for [email protected]  
help / color / mirror / Atom feed
create foreign table
7+ messages / 3 participants
[nested] [flat]

* create foreign table
@ 2024-10-14 18:14  Sam Stearns <[email protected]>
  0 siblings, 1 reply; 7+ messages in thread

From: Sam Stearns @ 2024-10-14 18:14 UTC (permalink / raw)
  To: Pgsql-admin <[email protected]>

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?

Thanks,

Sam

-- 

*Samuel Stearns*
Lead Database Administrator
*c:* 971 762 6879 | *o:* 503 672 5115 | DAT.com
[image: DAT]
<https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link;


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: create foreign table
@ 2024-10-14 18:18  Guillaume Lelarge <[email protected]>
  parent: Sam Stearns <[email protected]>
  0 siblings, 2 replies; 7+ messages in thread

From: Guillaume Lelarge @ 2024-10-14 18:18 UTC (permalink / raw)
  To: Sam Stearns <[email protected]>; +Cc: Pgsql-admin <[email protected]>

Hi,

Le lun. 14 oct. 2024 à 20:14, Sam Stearns <[email protected]> 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.


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: create foreign table
@ 2024-10-14 18:57  Sam Stearns <[email protected]>
  parent: Guillaume Lelarge <[email protected]>
  1 sibling, 0 replies; 7+ messages in thread

From: Sam Stearns @ 2024-10-14 18:57 UTC (permalink / raw)
  To: Guillaume Lelarge <[email protected]>; +Cc: Pgsql-admin <[email protected]>

That did the trick.  Thank you!

Sam


On Mon, Oct 14, 2024 at 11:18 AM Guillaume Lelarge <[email protected]>
wrote:

> Hi,
>
> Le lun. 14 oct. 2024 à 20:14, Sam Stearns <[email protected]> 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.
>


-- 

*Samuel Stearns*
Lead Database Administrator
*c:* 971 762 6879 | *o:* 503 672 5115 | DAT.com
[image: DAT]
<https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link;


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: create foreign table
@ 2024-10-15 16:00  vignesh kumar <[email protected]>
  parent: Guillaume Lelarge <[email protected]>
  1 sibling, 1 reply; 7+ messages in thread

From: vignesh kumar @ 2024-10-15 16:00 UTC (permalink / raw)
  To: Guillaume Lelarge <[email protected]>; Sam Stearns <[email protected]>; +Cc: Pgsql-admin <[email protected]>

First you need to create foreign server, foreign data wrapper then followed by granting access to use the postgres_fdw.. then try accessing it.. that's the optimal way.. I'm not getting what is being tried here

Sent from Outlook for Android<https://aka.ms/AAb9ysg;
________________________________
From: Guillaume Lelarge <[email protected]>
Sent: Monday, October 14, 2024 11:48:26 PM
To: Sam Stearns <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: create foreign table

Hi,

Le lun. 14 oct. 2024 à 20:14, Sam Stearns <[email protected]<mailto:[email protected]>> 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.


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: create foreign table
@ 2024-10-15 16:39  Sam Stearns <[email protected]>
  parent: vignesh kumar <[email protected]>
  0 siblings, 1 reply; 7+ messages in thread

From: Sam Stearns @ 2024-10-15 16:39 UTC (permalink / raw)
  To: vignesh kumar <[email protected]>; +Cc: Guillaume Lelarge <[email protected]>; Pgsql-admin <[email protected]>

I removed 'program' from the OPTIONS keyword which resolved it, as
suggested by Guillaume.

On Tue, Oct 15, 2024 at 9:00 AM vignesh kumar <
[email protected]> wrote:

> First you need to create foreign server, foreign data wrapper then
> followed by granting access to use the postgres_fdw.. then try accessing
> it.. that's the optimal way.. I'm not getting what is being tried here
>
> Sent from Outlook for Android <https://aka.ms/AAb9ysg;
> ------------------------------
> *From:* Guillaume Lelarge <[email protected]>
> *Sent:* Monday, October 14, 2024 11:48:26 PM
> *To:* Sam Stearns <[email protected]>
> *Cc:* Pgsql-admin <[email protected]>
> *Subject:* Re: create foreign table
>
> Hi,
>
> Le lun. 14 oct. 2024 à 20:14, Sam Stearns <[email protected]> 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.
>


-- 

*Samuel Stearns*
Lead Database Administrator
*c:* 971 762 6879 | *o:* 503 672 5115 | DAT.com
[image: DAT]
<https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link;


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: create foreign table
@ 2024-10-15 16:54  vignesh kumar <[email protected]>
  parent: Sam Stearns <[email protected]>
  0 siblings, 1 reply; 7+ messages in thread

From: vignesh kumar @ 2024-10-15 16:54 UTC (permalink / raw)
  To: Sam Stearns <[email protected]>; +Cc: Guillaume Lelarge <[email protected]>; Pgsql-admin <[email protected]>

Great and glad it worked for you.. it's always better to cache the foreign server details onto postgres wrappers.. so that your calls to foreign objects would be simpler and more secure..

Sent from Outlook for Android<https://aka.ms/AAb9ysg;
________________________________
From: Sam Stearns <[email protected]>
Sent: Tuesday, October 15, 2024 10:09:39 PM
To: vignesh kumar <[email protected]>
Cc: Guillaume Lelarge <[email protected]>; Pgsql-admin <[email protected]>
Subject: Re: create foreign table

I removed 'program' from the OPTIONS keyword which resolved it, as suggested by Guillaume.

On Tue, Oct 15, 2024 at 9:00 AM vignesh kumar <[email protected]<mailto:[email protected]>> wrote:
First you need to create foreign server, foreign data wrapper then followed by granting access to use the postgres_fdw.. then try accessing it.. that's the optimal way.. I'm not getting what is being tried here

Sent from Outlook for Android<https://aka.ms/AAb9ysg;
________________________________
From: Guillaume Lelarge <[email protected]<mailto:[email protected]>>
Sent: Monday, October 14, 2024 11:48:26 PM
To: Sam Stearns <[email protected]<mailto:[email protected]>>
Cc: Pgsql-admin <[email protected]<mailto:[email protected]>>
Subject: Re: create foreign table

Hi,

Le lun. 14 oct. 2024 à 20:14, Sam Stearns <[email protected]<mailto:[email protected]>> 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.


--

Samuel Stearns
Lead Database Administrator
c: 971 762 6879 | o: 503 672 5115 | DAT.com

[DAT]<https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link;


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: create foreign table
@ 2024-10-15 17:12  Sam Stearns <[email protected]>
  parent: vignesh kumar <[email protected]>
  0 siblings, 0 replies; 7+ messages in thread

From: Sam Stearns @ 2024-10-15 17:12 UTC (permalink / raw)
  To: vignesh kumar <[email protected]>; +Cc: Guillaume Lelarge <[email protected]>; Pgsql-admin <[email protected]>

Thanks,Vignesh!

On Tue, Oct 15, 2024 at 9:54 AM vignesh kumar <
[email protected]> wrote:

> Great and glad it worked for you.. it's always better to cache the foreign
> server details onto postgres wrappers.. so that your calls to foreign
> objects would be simpler and more secure..
>
> Sent from Outlook for Android <https://aka.ms/AAb9ysg;
> ------------------------------
> *From:* Sam Stearns <[email protected]>
> *Sent:* Tuesday, October 15, 2024 10:09:39 PM
> *To:* vignesh kumar <[email protected]>
> *Cc:* Guillaume Lelarge <[email protected]>; Pgsql-admin <
> [email protected]>
> *Subject:* Re: create foreign table
>
> I removed 'program' from the OPTIONS keyword which resolved it, as
> suggested by Guillaume.
>
> On Tue, Oct 15, 2024 at 9:00 AM vignesh kumar <
> [email protected]> wrote:
>
> First you need to create foreign server, foreign data wrapper then
> followed by granting access to use the postgres_fdw.. then try accessing
> it.. that's the optimal way.. I'm not getting what is being tried here
>
> Sent from Outlook for Android <https://aka.ms/AAb9ysg;
> ------------------------------
> *From:* Guillaume Lelarge <[email protected]>
> *Sent:* Monday, October 14, 2024 11:48:26 PM
> *To:* Sam Stearns <[email protected]>
> *Cc:* Pgsql-admin <[email protected]>
> *Subject:* Re: create foreign table
>
> Hi,
>
> Le lun. 14 oct. 2024 à 20:14, Sam Stearns <[email protected]> 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.
>
>
>
> --
>
> *Samuel Stearns*
> Lead Database Administrator
> *c:* 971 762 6879 | *o:* 503 672 5115 | DAT.com
> [image: DAT]
> <https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link;
>


-- 

*Samuel Stearns*
Lead Database Administrator
*c:* 971 762 6879 | *o:* 503 672 5115 | DAT.com
[image: DAT]
<https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link;


^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2024-10-15 17:12 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14 18:14 create foreign table Sam Stearns <[email protected]>
2024-10-14 18:18 ` Guillaume Lelarge <[email protected]>
2024-10-14 18:57   ` Sam Stearns <[email protected]>
2024-10-15 16:00   ` vignesh kumar <[email protected]>
2024-10-15 16:39     ` Sam Stearns <[email protected]>
2024-10-15 16:54       ` vignesh kumar <[email protected]>
2024-10-15 17:12         ` Sam Stearns <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox