Checking database version

Поиск
Список
Период
Сортировка
От George Wilk
Тема Checking database version
Дата
Msg-id 02b201c7d05d$56cf9890$1f7ca8c0@ellacoya.com
обсуждение исходный текст
Ответы Re: Checking database version  (Richard Broersma Jr <rabroersma@yahoo.com>)
Re: Checking database version  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-admin

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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Anderson Alves de Albuquerque "
Дата:
Сообщение: Re: No create table
Следующее
От: "Anderson Alves de Albuquerque "
Дата:
Сообщение: Re: No create table