Re: [HACKERS] [COMMITTERS] pgsql: Preventive maintenance in advanceof pgindent run. - Mailing list pgsql-hackers

From Piotr Stefaniak
Subject Re: [HACKERS] [COMMITTERS] pgsql: Preventive maintenance in advanceof pgindent run.
Date
Msg-id VI1PR03MB11996853FB1EC6319A48BA76F2E70@VI1PR03MB1199.eurprd03.prod.outlook.com
Whole thread Raw
In response to Re: [HACKERS] [COMMITTERS] pgsql: Preventive maintenance in advanceof pgindent run.  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [HACKERS] [COMMITTERS] pgsql: Preventive maintenance in advanceof pgindent run.
List pgsql-hackers
On 2017-05-17 17:55, Peter Eisentraut wrote:
> On 5/17/17 10:14, Tom Lane wrote:
>> What I was concerned about was that pgindent will reindent the second
>> line so that it's impossible to tell whether the spacing is correct.
>
> pgindent moving string continuations to the left is a completely
> terrible behavior anyway and we should look into changing that.  Just
> look at the mess it makes out of SELECT queries in pg_dump.c.

If I remember correctly, it tries to right-align string literals to
whatever -l ("Maximum length of an output line") was set to.



pgsql-hackers by date:

Previous
From: Piotr Stefaniak
Date:
Subject: Re: pgindent (was Re: [HACKERS] [COMMITTERS] pgsql: Preventivemaintenance in advance of pgindent run.)
Next
From: David Rowley
Date:
Subject: Re: [HACKERS] Pulling up more complicated subqueries