Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHpAj-0007E4-Kg for pgsql-docs@arkaria.postgresql.org; Wed, 31 Oct 2018 12:00:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHpAh-00053H-Pd for pgsql-docs@arkaria.postgresql.org; Wed, 31 Oct 2018 12:00:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHp7p-0007Zn-M2 for pgsql-docs@lists.postgresql.org; Wed, 31 Oct 2018 11:57:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHp7j-0005XX-8E for pgsql-docs@lists.postgresql.org; Wed, 31 Oct 2018 11:57:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9VBvI2D019425; Wed, 31 Oct 2018 07:57:18 -0400 From: Tom Lane To: bwest1@cox.net cc: pgsql-docs@lists.postgresql.org Subject: Re: ALTER SERVER SYNTAX ISSUE In-reply-to: <154094352647.30901.17947219830909553410@wrigleys.postgresql.org> References: <154094352647.30901.17947219830909553410@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Doc_comments_form?= message dated "Tue, 30 Oct 2018 23:52:06 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19423.1540987038.1@sss.pgh.pa.us> Date: Wed, 31 Oct 2018 07:57:18 -0400 Message-ID: <19424.1540987038@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Doc_comments_form?= writes: > I found that the alter server statement below does not work: > ALTER SERVER foo OPTIONS (host 'foo', dbname 'foodb'); > but this does: > ALTER SERVER foo OPTIONS (set host 'foo', set dbname 'foodb'); Hm, define "does not work". Those aren't equivalent: the first form adds options that weren't already set, while the second one changes the values of already-set options. (The SQL committee were being unreasonably nitpicky in not providing an add-or-replace choice, IMO, but that's how the spec is written.) Is your complaint just that this is inadequately documented? I see that it's not spelled out in so many words on that page. regards, tom lane