BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
The following bug has been logged on the website:
Bug reference: 14203
Logged by: Steve Thomas
Email address: sthomas@datawareventures.com
PostgreSQL version: 9.3.3
Operating system: Ubuntu
Description:
I'm following the README in src/tools/pgindent. The instructions say to
download and install pg_bsd_indent from ftp://ftp.postgresql.org/pub/dev. At
that site, I see a file pg_bsd_indent-1.3.tar.gz, and I download and install
it. Then, I try to run pgindent, and it says:
You do not appear to have pg_bsd_indent version 1.2 installed on your
system.
I hacked pgindent to accept 1.3. This time it ran, but changed lots and lots
of files. (I assume because pg_bsd_indent 1.3 makes different choices than
pg_bsd_indent 1.2.)
Does anyone know where I can find pg_bsd_indent 1.2?
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
sthomas@datawareventures.com writes:
I hacked pgindent to accept 1.3. This time it ran, but changed lots and lots
of files. (I assume because pg_bsd_indent 1.3 makes different choices than
pg_bsd_indent 1.2.)
Does anyone know where I can find pg_bsd_indent 1.2?
I'm not sure why we're not keeping the older tarballs online, but there's
not that much difference between 1.2 and 1.3 --- see attached diff.
I think your problem may be in expecting that 9.3.x is pgindent-clean.
We don't normally re-pgindent stable branches, so unless committers are
careful to manually indent whatever they back-patch, branches will drift
away from a clean state. If you're trying to validate that you have a
non-broken build of pgindent, I'd suggest checking out the immediately
post-pgindent state from our git repo. The 9.3 run was at commit
9af4159fc.
regards, tom lane
Attachments:
pg_bsd_indent-1.2-1.3.difftext/x-diff; charset=us-ascii; name=pg_bsd_indent-1.2-1.3.diffDownload+12-2
Thanks, Tom. You're right, my mistake was assuming that 9.3.3 was
pgindent-clean. Now I understand that that's not necessarily the case!
And thanks for the pg_bsd_indent patch. There's not much of a difference
between the two so I won't worry.
On Mon, Jun 20, 2016 at 3:50 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
sthomas@datawareventures.com writes:
I hacked pgindent to accept 1.3. This time it ran, but changed lots and
lots
of files. (I assume because pg_bsd_indent 1.3 makes different choices
than
pg_bsd_indent 1.2.)
Does anyone know where I can find pg_bsd_indent 1.2?I'm not sure why we're not keeping the older tarballs online, but there's
not that much difference between 1.2 and 1.3 --- see attached diff.I think your problem may be in expecting that 9.3.x is pgindent-clean.
We don't normally re-pgindent stable branches, so unless committers are
careful to manually indent whatever they back-patch, branches will drift
away from a clean state. If you're trying to validate that you have a
non-broken build of pgindent, I'd suggest checking out the immediately
post-pgindent state from our git repo. The 9.3 run was at commit
9af4159fc.regards, tom lane
--
Stephen Thomas
COO, Dataware Ventures
http://www.datawareventures.com
On Mon, Jun 20, 2016 at 03:50:27PM -0400, Tom Lane wrote:
sthomas@datawareventures.com writes:
I hacked pgindent to accept 1.3. This time it ran, but changed lots and lots
of files. (I assume because pg_bsd_indent 1.3 makes different choices than
pg_bsd_indent 1.2.)
Does anyone know where I can find pg_bsd_indent 1.2?I'm not sure why we're not keeping the older tarballs online, but there's
not that much difference between 1.2 and 1.3 --- see attached diff.
I can put the 1.2 version online, but I figured only HEAD would use
pgindent, and I wasn't sure how to specify which major versions require
which pg_bsd_indent version.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs