Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGG14-0006RD-4J for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jul 2015 00:30:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZGG13-00054o-HI for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jul 2015 00:30:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZGG12-00052M-45 for pgsql-hackers@postgresql.org; Sat, 18 Jul 2015 00:30:08 +0000 Received: from mout.gmx.net ([212.227.17.20]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZGG0y-0005FT-Om for pgsql-hackers@postgresql.org; Sat, 18 Jul 2015 00:30:07 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M7UUd-1Z4LJ02aYR-00xHri for ; Sat, 18 Jul 2015 02:30:01 +0200 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 0F2122077A for ; Fri, 17 Jul 2015 20:30:00 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Fri, 17 Jul 2015 20:30:00 -0400 X-Sasl-enc: WmoqAMpfqcxn39Yyxt8yBLImD92R1epYuN5ghpz0nMul 1437179399 Received: from [10.0.0.9] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id BD9EA680081; Fri, 17 Jul 2015 20:29:59 -0400 (EDT) Message-ID: <55A99E07.3050905@gmx.net> Date: Fri, 17 Jul 2015 20:29:59 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Petr Jelinek , PostgreSQL-development Subject: Re: pg_resetsysid References: <557D9DED.2080204@2ndquadrant.com> In-Reply-To: <557D9DED.2080204@2ndquadrant.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Fj2iddhE3y8xE+/XHzj6LQnVHIGHH5bmW+ZmrJZTdB7w/mBb5eN lA6u6oR1iuVBcSvpxwAOI9t4oU6z3MASERlYQTexKtWgin05crW/1EEyiU2R3EHWe9xK6Kf +MGn4wmDpiVUQOyjq5dt3BDq9QOhPE/pKHVlj6aOGTmza61Q25mkmFRqBxgu4draFomoCGU Y0ILU+chjKQNAwfkuLKhA== X-UI-Out-Filterresults: notjunk:1;V01:K0:GnrIdrUhZwY=:PNsjXESUuwcCEB8oWi2tjC 3a1ARa0djPvuVQijQh+uXURnGKUmO9oFTABmLQjxDNmzU+wG5GNMoeT6aHCLLo2BIAmEukp9E 0+KEJL/9CsP6ElU5o/8GTjLvHaGh6l2g3BvBOsSrNBG3VZ54hi65NhzZ10ENe6rKh6grgtr3O Hl28RgrlMiM2GwZJa/BFIzwDKmKf072c0q7BDTI/3ZPzDRR3aHwDE+zm3nEp39KJA9CwGWb9I eZB53ndtciEKE7dDQdmb+JH0uHcRsOgxW+sWIkOEQa66G7pWN+IqSOe/o1fQuQc7ysJZSdAS1 W33OP7sYl3MMEtnPgL4BGtVw89s2iMHGf1l5jCgPQvaJJYQlGrMHjeYvQA2swkjmRI1IpDgm5 OFED1rSt3SkHCUmTEBPTDbFCbgd2TRGvg9wIoXy00ockFjlxhJ2OMMDc2Httl4UsCPzoZKaXW pDiJkhk8gJd5Jf0Cw/KCZweBO5e0wwVs69NnQ84ccGTN9sNpqA55qPftohXwo0jTQqYy0eF2y /cJQmLMHjn1h0Q/WADt26lbSie0u6rzXmTpwOpDrpUCACKNZsrY/ZNBIWCoRiVK7sYuhAVcjg RT36YGgM82IeUU0jgbYUvhEUOfYhVj0QMTfwYT8Vz6q7EGBLG96ksiDi1kpDC4w/zQY/xGmZl 2JiHf1cTnEbLSjHB/eChaYaFbiF81zzE6beiauSCaAs7x+KG++cT3muA+ie654Y2lWTs= X-Pg-Spam-Score: -3.8 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 6/14/15 11:29 AM, Petr Jelinek wrote: > 0002 - Adds pg_resetsysid utility which changes the system id to newly > generated one. > > 0003 - Adds -s option to pg_resetxlog to change the system id to the one > specified - this is separate from the other one as it can be potentially > more dangerous. Adding a new top-level binary creates a lot of maintenance overhead (e.g., documentation, man page, translations, packaging), and it seems silly to create a new tool whose only purpose is to change one number in one file. If we're going to have this in pg_resetxlog anyway, why not create another option letter to assigns a generated ID? As the documentation says, resetting the system ID clears the WAL, so it's not like this is a completely danger-free situation. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers