Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0PeX-00BI0p-4g for pgsql-admin@arkaria.postgresql.org; Mon, 14 Oct 2024 18:18:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t0PeV-00FnKW-GM for pgsql-admin@arkaria.postgresql.org; Mon, 14 Oct 2024 18:18:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0PeV-00FnKN-0S for pgsql-admin@lists.postgresql.org; Mon, 14 Oct 2024 18:18:43 +0000 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t0PeS-00133a-3Y for pgsql-admin@lists.postgresql.org; Mon, 14 Oct 2024 18:18:42 +0000 Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-e28fea0f5b8so4033044276.1 for ; Mon, 14 Oct 2024 11:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lelarge-info.20230601.gappssmtp.com; s=20230601; t=1728929919; x=1729534719; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wirXKLmwUdm1u9RJAlHBM6iwjkWA+Pw8AfJ74d6QrkY=; b=tYRJo/62HBxmoedf+8oOsKo44t/QsifahVQWovbbzE3qv1T6MKqUs6DKBnlwloPOnk vTvFZ6K3JPZCMV5+3HfCturVe1fNWO5EUC6mo8CBHkVwuZOzKCb2jDZaouPFXUuxS+ky 8PTUXAIj06rw6kLgFjBZn8lrheJJNfHaq5lhF3qUmTSOzCh80Dty6Y7328Qg7g1WTOxM 7J4zgKFZqHzPCL67wO8EDvN+LE7RCtvfK5E5iCtlL2PzFnPmXN5JjsB3AR+d+oaruAMW ESnsUgbXkFCFsffFyGRkZVge8dwA1c6BaaQ2PypLapB7UVJL/hVaBmIXlRa/jCubCM+h GzqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728929919; x=1729534719; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wirXKLmwUdm1u9RJAlHBM6iwjkWA+Pw8AfJ74d6QrkY=; b=NaGQiMhfELZTUADOMKSg2XTHem0exT4zBqpN/h/nfDhQs+JKkO/cLEoPlSx0/KgnQK TAMTO0Y/b5lEUylz0vCDymwL9w0mMPxxuGg73FrFZYBmATC8GDBKKgxglESXVROKVavU w/g/5TsHBHSeHBNP/mJlE3Jl5L3TFVHpfASO/b/3gQhzHJrQXesW3aa4HyiB1zMcnWCY Lz9yq+xNNmDor2ZYPbFEcHbfD9zzIi3V3VBO4SOMehrtNbBRV/pwsnkg4Sc2aGgMie0O eEQyz+NvevAwzr5szK7Mg3sbce+H2JOs57pJ7qNC5nDdnpT7KE08tr5WDphfZChMeU1i eejw== X-Gm-Message-State: AOJu0Yx00W2hlTOBhnSDgviJwPK5SdEHaIp0q/QF54rs6nMkGDU0EvtM hjNpWVNrm16DM1ztshJLkEV3qkV0EcwiYnO6hGBE1jwWALTtS2RSmdYZMOeCyf08knLySKtEH+Y mUsvUw1w7V9ohsfmzhjs88x7Ii8dgkv24bm9aow== X-Google-Smtp-Source: AGHT+IFz2RLAsfrbwBDOwnWQKqYaeLVmlorO3ZMObwWZ2mdy0IQlT1kJwDYQwjUqSqzd7BynfMOvU72qP2S2o1nBw8o= X-Received: by 2002:a05:6902:2b13:b0:e28:f2ae:80c6 with SMTP id 3f1490d57ef6-e2919d6125amr8277201276.2.1728929918724; Mon, 14 Oct 2024 11:18:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Guillaume Lelarge Date: Mon, 14 Oct 2024 20:18:26 +0200 Message-ID: Subject: Re: create foreign table To: Sam Stearns Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="000000000000a5ce03062473dd18" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a5ce03062473dd18 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Le lun. 14 oct. 2024 =C3=A0 20:14, Sam Stearns a =C3= =A9crit : > 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. > --=20 Guillaume. --000000000000a5ce03062473dd18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Le=C2=A0lun. 14 oct. 2024 =C3=A0= =C2=A020:14, Sam Stearns <sam.ste= arns@dat.com> a =C3=A9crit=C2=A0:
Howdy,

Receivi= ng an error without much detail when creating a foreign table:
2024-10-14 11:08:30.928 PDT [1177724] ERROR: =C2=A0conflicting= or redundant options
2024-10-14 11:08:30.928 PDT [1177724] STATEMENT: = =C2=A0CREATE FOREIGN =C2=A0TABLE ext_invalids (
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 validcargo char(8),
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 validauto char(8),
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cllocid char(8),
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 insdid char(6),
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 memberid char(14),
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 attachdate char(12),
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 commonauthority char(1= ),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 contractautho= rity char(1),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 co= mpname char(60),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= docket_num char(9)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ) SERVER external_dat_di= r OPTIONS(filename 'DISABLED', format 'csv', delimiter '= ;,', program '');

I'm not seeing m= uch out there on the error.=C2=A0 I'm also not seeing what are valid va= lues for the=C2=A0OPTIONS keyword in the Postgres documentation.
=
Would=C2=A0someone 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.
=
--000000000000a5ce03062473dd18--