pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George Wilk <gwilk@ellacoya.com>
To: pgsql-admin@postgresql.org
Cc: 'Gez Saunders' <gez.saunders@virgin.net>
Subject: Checking database version
Date: Fri, 27 Jul 2007 10:49:30 -0400
Message-ID: <02b201c7d05d$56cf9890$1f7ca8c0@ellacoya.com> (raw)

Is there a reliable way of verifying version of the database by looking at
the PGDATA directory?

 

Let me explain why this is important in our case.  Originally, our product
utilized version 8.1 of Postgres.  We have since moved on to version 8.2.
Our existing customer base will need to be upgraded to version 8.2 as well.
There might be legitimate cases where our customers might be running other
software products on their systems, which utilize earlier versions of
Postgres, therefore we cannot uninstall earlier packages and install ours
indiscriminately.  Our install scripts must reliably determine if the
database files related to our product need to be upgraded or not, before
installing Postgres 8.2 package, performing dump, etc.

 

What I'm looking for is a sure way of determining version of Postgres based
on the files contained in a specific PGDATA location.  Is it possible, and
if so how can it be done?

 

Thanks in advance,

~george

view thread (4+ messages)  latest in thread

Message-ID: <02b201c7d05d$56cf9890$1f7ca8c0@ellacoya.com>
Permalink:  ../02b201c7d05d$56cf9890$1f7ca8c0@ellacoya.com/
Also on:    postgresql.org/message-id/02b201c7d05d$56cf9890$1f7ca8c0@ellacoya.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gwilk@ellacoya.com, gez.saunders@virgin.net
  Subject: Re: Checking database version
  In-Reply-To: <02b201c7d05d$56cf9890$1f7ca8c0@ellacoya.com>

* 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