From: Michael Fuhr <mike@fuhr.org>
To: Jim C. Nasby <decibel@decibel.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dario <dario_d_s@unitech.com.ar>
Cc: Hannes Dorbath <light@theendofthetunnel.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Determine PG version used for initdb
Date: Wed, 20 Jul 2005 11:50:47 -0600
Message-ID: <20050720175047.GA44720@winnie.fuhr.org> (raw)
In-Reply-To: <20050720155934.GS10127@decibel.org>
References: <MHEDJHCKDNOEHJKHIOCJGENLCEAA.dario_d_s@unitech.com.ar>
<15725.1121868322@sss.pgh.pa.us>
<20050720155934.GS10127@decibel.org>
On Wed, Jul 20, 2005 at 10:59:34AM -0500, Jim C. Nasby wrote:
>
> Hrm. Is there no definative way to determine what version of initdb was
> used on a cluster? ISTM that would be a useful feature to have.
The query I posted in another message appears to work in 7.4 and
later (i.e., versions that have the Information Schema):
SELECT character_value
FROM information_schema.sql_implementation_info
WHERE implementation_info_name = 'DBMS VERSION';
Unless I'm misreading what set_info_version() and setup_schema()
do in initdb.c, the above query will return a value based on the
value of PG_VERSION that was current when the initdb that initialized
the cluster was built. Although that raises a question: is that
the desired behavior, or should 'DBMS VERSION' return the version
currently running?
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mike@fuhr.org, decibel@decibel.org, tgl@sss.pgh.pa.us, dario_d_s@unitech.com.ar, light@theendofthetunnel.de
Subject: Re: Determine PG version used for initdb
In-Reply-To: <20050720175047.GA44720@winnie.fuhr.org>
References: <MHEDJHCKDNOEHJKHIOCJGENLCEAA.dario_d_s@unitech.com.ar> <15725.1121868322@sss.pgh.pa.us> <20050720155934.GS10127@decibel.org> <20050720175047.GA44720@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox