Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcYqi-0006nk-DH for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Jun 2019 17:21:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hcYqg-0004N4-0U for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Jun 2019 17:21:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcYqf-0004Mt-Ke for pgsql-hackers@lists.postgresql.org; Sun, 16 Jun 2019 17:21:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcYqc-00083Q-Gg for pgsql-hackers@postgresql.org; Sun, 16 Jun 2019 17:21:43 +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 x5GHLdCx005219; Sun, 16 Jun 2019 13:21:40 -0400 From: Tom Lane To: Stephen Frost cc: Amit Kapila , Ian Barwick , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions In-reply-to: <20190616171610.GO2480@tamriel.snowman.net> References: <20190614160835.GF2480@tamriel.snowman.net> <20190616171610.GO2480@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Sun, 16 Jun 2019 13:16:11 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5217.1560705699.1@sss.pgh.pa.us> Date: Sun, 16 Jun 2019 13:21:39 -0400 Message-ID: <5218.1560705699@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > Unless there's actually a use-case for duplicate entries in > postgresql.auto.conf, There isn't --- guc.c will just discard the earlier duplicates. > what we should do is clean them up (and possibly > throw a WARNING or similar at the user saying "something modified your > postgresql.auto.conf in an unexpected way"). I'd suggest we do that on > every ALTER SYSTEM call. +1 for having ALTER SYSTEM clean out duplicates. Not sure whether a WARNING would seem too in-your-face. regards, tom lane