The pg_indent on on ftp is outdated

Started by Craig Ringerabout 8 years ago8 messages
#1Craig Ringer
craig@2ndquadrant.com

Hi all

The pg_indent on www is outdated, and doesn't understand --version .

https://www.postgresql.org/ftp/dev/

It might make sense to add a README there that mentions it's obsolete and
now lives at https://git.postgresql.org/git/pg_bsd_indent.git (or just "see
src/tools/pgindent/README).

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

#2Magnus Hagander
magnus@hagander.net
In reply to: Craig Ringer (#1)
Re: The pg_indent on on ftp is outdated

On Thu, Dec 21, 2017 at 8:20 AM, Craig Ringer <craig@2ndquadrant.com> wrote:

Hi all

The pg_indent on www is outdated, and doesn't understand --version .

https://www.postgresql.org/ftp/dev/

It might make sense to add a README there that mentions it's obsolete and
now lives at https://git.postgresql.org/git/pg_bsd_indent.git (or just
"see src/tools/pgindent/README).

Is there a reason to keep it at all if its obsolete, or should we just
delete it?

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/&gt;
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/&gt;

#3Craig Ringer
craig@2ndquadrant.com
In reply to: Magnus Hagander (#2)
Re: The pg_indent on on ftp is outdated

On 21 December 2017 at 18:22, Magnus Hagander <magnus@hagander.net> wrote:

On Thu, Dec 21, 2017 at 8:20 AM, Craig Ringer <craig@2ndquadrant.com>
wrote:

Hi all

The pg_indent on www is outdated, and doesn't understand --version .

https://www.postgresql.org/ftp/dev/

It might make sense to add a README there that mentions it's obsolete and
now lives at https://git.postgresql.org/git/pg_bsd_indent.git (or just
"see src/tools/pgindent/README).

Is there a reason to keep it at all if its obsolete, or should we just
delete it?

I don't know of any, but it might be worth checking on -hackers or cc'ing
Tom etc.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

#4Magnus Hagander
magnus@hagander.net
In reply to: Craig Ringer (#3)
Re: The pg_indent on on ftp is outdated

On Thu, Dec 21, 2017 at 12:42 PM, Craig Ringer <craig@2ndquadrant.com>
wrote:

On 21 December 2017 at 18:22, Magnus Hagander <magnus@hagander.net> wrote:

On Thu, Dec 21, 2017 at 8:20 AM, Craig Ringer <craig@2ndquadrant.com>
wrote:

Hi all

The pg_indent on www is outdated, and doesn't understand --version .

https://www.postgresql.org/ftp/dev/

It might make sense to add a README there that mentions it's obsolete
and now lives at https://git.postgresql.org/git/pg_bsd_indent.git (or
just "see src/tools/pgindent/README).

Is there a reason to keep it at all if its obsolete, or should we just
delete it?

I don't know of any, but it might be worth checking on -hackers or cc'ing
Tom etc.

Yeah, makes sense. Moving this thread over to -hackers to get some more
comments from there.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/&gt;
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/&gt;

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#4)
Re: The pg_indent on on ftp is outdated

Magnus Hagander <magnus@hagander.net> writes:

On Thu, Dec 21, 2017 at 12:42 PM, Craig Ringer <craig@2ndquadrant.com>
wrote:

The pg_indent on www is outdated, and doesn't understand --version .
https://www.postgresql.org/ftp/dev/

Is there a reason to keep it at all if its obsolete, or should we just
delete it?

The only reason I can think of why someone might still want that version
is if they're doing hacking on a pre-v10 branch and would like to indent
accordingly. If we have someplace for historical versions, I'd suggest
moving this tarball to there, and replacing it with a README that says
"go here for pre-v10 pgindent, or there for modern versions".

regards, tom lane

#6Craig Ringer
craig@2ndquadrant.com
In reply to: Tom Lane (#5)
Re: The pg_indent on on ftp is outdated

On 21 Dec. 2017 22:42, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:

Magnus Hagander <magnus@hagander.net> writes:

On Thu, Dec 21, 2017 at 12:42 PM, Craig Ringer <craig@2ndquadrant.com>
wrote:

The pg_indent on www is outdated, and doesn't understand --version .
https://www.postgresql.org/ftp/dev/

Is there a reason to keep it at all if its obsolete, or should we just
delete it?

The only reason I can think of why someone might still want that version
is if they're doing hacking on a pre-v10 branch and would like to indent
accordingly. If we have someplace for historical versions, I'd suggest
moving this tarball to there, and replacing it with a README that says
"go here for pre-v10 pgindent, or there for modern versions".

Add it as a branch in the git repo and backpatch the pgindent README?

Hardly seems worth the hassle. It's not like back patches need tons of
worry about pgindent etc anyway.

#7Magnus Hagander
magnus@hagander.net
In reply to: Craig Ringer (#6)
Re: The pg_indent on on ftp is outdated

On Fri, Dec 22, 2017 at 1:33 AM, Craig Ringer <craig@2ndquadrant.com> wrote:

On 21 Dec. 2017 22:42, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:

Magnus Hagander <magnus@hagander.net> writes:

On Thu, Dec 21, 2017 at 12:42 PM, Craig Ringer <craig@2ndquadrant.com>
wrote:

The pg_indent on www is outdated, and doesn't understand --version .
https://www.postgresql.org/ftp/dev/

Is there a reason to keep it at all if its obsolete, or should we just
delete it?

The only reason I can think of why someone might still want that version
is if they're doing hacking on a pre-v10 branch and would like to indent
accordingly. If we have someplace for historical versions, I'd suggest
moving this tarball to there, and replacing it with a README that says
"go here for pre-v10 pgindent, or there for modern versions".

Add it as a branch in the git repo and backpatch the pgindent README?

Hardly seems worth the hassle. It's not like back patches need tons of
worry about pgindent etc anyway.

That seems way overkill, yeah.

We don't have a place for historic versions of this stuff. We have the
archive directory but that's specifically a tarball of the last cvs stuff.

I think a simple README is the way to go.

I've cooked together something simple and pushed it. Please review and
suggest changes.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/&gt;
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/&gt;

#8Craig Ringer
craig@2ndquadrant.com
In reply to: Magnus Hagander (#7)
Re: The pg_indent on on ftp is outdated

On 28 December 2017 at 23:59, Magnus Hagander <magnus@hagander.net> wrote:

On Fri, Dec 22, 2017 at 1:33 AM, Craig Ringer <craig@2ndquadrant.com>
wrote:

On 21 Dec. 2017 22:42, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:

Magnus Hagander <magnus@hagander.net> writes:

On Thu, Dec 21, 2017 at 12:42 PM, Craig Ringer <craig@2ndquadrant.com>
wrote:

The pg_indent on www is outdated, and doesn't understand --version .
https://www.postgresql.org/ftp/dev/

Is there a reason to keep it at all if its obsolete, or should we just
delete it?

The only reason I can think of why someone might still want that version
is if they're doing hacking on a pre-v10 branch and would like to indent
accordingly. If we have someplace for historical versions, I'd suggest
moving this tarball to there, and replacing it with a README that says
"go here for pre-v10 pgindent, or there for modern versions".

Add it as a branch in the git repo and backpatch the pgindent README?

Hardly seems worth the hassle. It's not like back patches need tons of
worry about pgindent etc anyway.

That seems way overkill, yeah.

We don't have a place for historic versions of this stuff. We have the
archive directory but that's specifically a tarball of the last cvs stuff.

I think a simple README is the way to go.

I've cooked together something simple and pushed it. Please review and
suggest changes.

Perfect. Thanks!

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services