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 1rFXx7-00AUaX-JI for pgsql-docs@arkaria.postgresql.org; Tue, 19 Dec 2023 11:07:57 +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 1rFXx6-00HXKQ-4Y for pgsql-docs@arkaria.postgresql.org; Tue, 19 Dec 2023 11:07:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rFXx5-00HXKH-T8 for pgsql-docs@lists.postgresql.org; Tue, 19 Dec 2023 11:07:55 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rFXx2-00B9mq-8S for pgsql-docs@lists.postgresql.org; Tue, 19 Dec 2023 11:07:54 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id BF8962FCEB05 for ; Tue, 19 Dec 2023 12:07:48 +0100 (CET) Received: from s979.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id B108B2E2789B; Tue, 19 Dec 2023 12:07:48 +0100 (CET) Received: from s898.loopia.se (unknown [172.22.191.6]) by s979.loopia.se (Postfix) with ESMTP id AF06D10BC50F; Tue, 19 Dec 2023 12:07:48 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s979.loopia.se ([172.22.191.5]) by s898.loopia.se (s898.loopia.se [172.22.190.17]) (amavisd-new, port 10024) with UTF8LMTP id 1HbIagw02oNg; Tue, 19 Dec 2023 12:07:48 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s979.loopia.se (Postfix) with ESMTPSA id 1C2AB10BC4C9; Tue, 19 Dec 2023 12:07:48 +0100 (CET) From: Daniel Gustafsson Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: 'bar' shouldn't be a string in example Date: Tue, 19 Dec 2023 12:07:47 +0100 References: <170292280173.1876505.5204623074024041738@wrigleys.postgresql.org> To: tim.needham2@gmail.com, pgsql-docs@lists.postgresql.org In-Reply-To: <170292280173.1876505.5204623074024041738@wrigleys.postgresql.org> Message-Id: <8DF4199B-549C-433E-A35F-D1995933F11F@yesql.se> X-Mailer: Apple Mail (2.3696.120.41.1.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 18 Dec 2023, at 19:06, PG Doc comments form = wrote: > ALTER FOREIGN DATA WRAPPER dbi OPTIONS (ADD foo '1', DROP 'bar'); >=20 > I think "bar" is akin to "foo" and therefore should be similarly an = option? > (i.e. not a string value)? Nice catch, "DROP 'bar'" is considered to be unqualified and thus ADD is assumed, generating the below options: postgres=3D# alter foreign data wrapper dummy options (add foo '1', drop = 'bar'); ALTER FOREIGN DATA WRAPPER postgres=3D# select fdwoptions from pg_foreign_data_wrapper where = fdwname=3D'dummy'; fdwoptions ------------------ {foo=3D1,drop=3Dbar} (1 row) This has been incorrect since forever so I will backpatch this into all supported versions. -- Daniel Gustafsson