Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dB1zY-0004oZ-7Z for pgsql-hackers@arkaria.postgresql.org; Wed, 17 May 2017 16:40:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dB1zX-00082Y-QM for pgsql-hackers@arkaria.postgresql.org; Wed, 17 May 2017 16:40:03 +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_2) (envelope-from ) id 1dB1y1-0004ZS-1Z for pgsql-hackers@postgresql.org; Wed, 17 May 2017 16:38:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dB1xx-000675-Qb for pgsql-hackers@postgresql.org; Wed, 17 May 2017 16:38:28 +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 v4HGcN8w027596; Wed, 17 May 2017 12:38:23 -0400 From: Tom Lane To: Peter Eisentraut cc: Alvaro Herrera , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run. In-reply-to: <3445db65-94ac-73ab-760a-7ad84d9ef54a@2ndquadrant.com> References: <20170517140847.lasiafwmsxgzppm6@alvherre.pgsql> <30659.1495030469@sss.pgh.pa.us> <31076.1495031000@sss.pgh.pa.us> <9404.1495035429@sss.pgh.pa.us> <3445db65-94ac-73ab-760a-7ad84d9ef54a@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 17 May 2017 11:52:10 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27594.1495039103.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 17 May 2017 12:38:23 -0400 Message-ID: <27595.1495039103@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Peter Eisentraut writes: > On 5/17/17 11:37, Tom Lane wrote: >> Concretely, how about the attached? I don't think this looks any >> worse than the current layout. > The previous setup has been in place for years and has never been a > problem. The alternatives are all quite a bit worse. No, the previous setup hasn't been "in place for years". These programs were only NLS-ified last fall. Before that the code looked like, eg, printf(" -z, --stats[=3Drecord] show statistics instead of records\n"); printf(" (optionally, show per-record statistics)\= n"); so that there weren't string continuations for pgindent to fool with. I'm not really convinced that having usage() print two- or three-line switch descriptions is "quite a bit better" than what I suggested. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers