Skip site navigation (1) Skip section navigation (2)

pgindent and line length

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pgindent and line length
Date: 2011-01-25 00:01:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Somehow, pgindent appears to have this approach to push lines that are
longer than the defined line length limit back to the left to make it
fit.  That results in something like this:

                      "SELECT n.nspname as \"%s\",\n"
                      "  p.proname AS \"%s\",\n"
                 "  pg_catalog.format_type(p.prorettype, NULL) AS \"%s\",\n",
                      gettext_noop("Result data type"));

where the third line of the string was moved to the left.

I don't think this behavior is useful.  If the line is too long and
cannot be split, then it is still more useful to be able locate the
start of the line in an expected position than to have the end of the
line on the hypothetical screen.  You'll have to scroll right anyway
because there are usually lines that are going to be too long anyway.

Can we get rid of this behavior?


pgsql-hackers by date

Next:From: Tom LaneDate: 2011-01-25 00:01:13
Subject: Re: Patch to add a primary key using an existing index
Previous:From: Kevin GrittnerDate: 2011-01-24 23:36:39
Subject: SSI future enhancement: de facto read only optimization

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group