Re: pgsql-server/ /configure /configure.in rc/Make ... - Mailing list pgsql-committers

From Bruce Momjian
Subject Re: pgsql-server/ /configure /configure.in rc/Make ...
Date
Msg-id 200405112212.i4BMC0S10069@candle.pha.pa.us
Whole thread Raw
In response to Re: pgsql-server/ /configure /configure.in rc/Make ...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
Tom Lane wrote:
> momjian@svr1.postgresql.org (Bruce Momjian) writes:
> >     As part of the work for making relocatable installs, I have re-factored
> >     all the code that looks for other binaries.  I move FindExec into
> >     port/exec.c (and renamed it to find_my_binary()).  I also added
> >     find_other_binary that looks for another binary in the same directory as
> >     the calling program, and checks the version string.
>
> Version string?  What version string?  Binaries don't have any checkable
> version info that I know of ...

binary -V echos a version string, and our code already was checking
that:

    $ pg_dump -V
    pg_dump (PostgreSQL) 7.5devel
    $ postgres -V
    postgres (PostgreSQL) 7.5devel

Actually, initdb was checking, but pg_dumpall was not.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql-server/ /configure /configure.in rc/Make ...
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql-server/src/backend/optimizer/prep prepun ...