Re: Information Schema DBMS VERSION wrong

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Information Schema DBMS VERSION wrong
Дата
Msg-id 12922.1122611304@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Information Schema DBMS VERSION wrong  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: Information Schema DBMS VERSION wrong  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Michael Fuhr <mike@fuhr.org> writes:
> The following query doesn't return the version of PostgreSQL currently
> running, but rather the version of initdb that initialized the cluster:

> SELECT character_value
> FROM information_schema.sql_implementation_info
> WHERE implementation_info_name = 'DBMS VERSION';

> Is that the intended or desired behavior?

Not sure if it was really thought about, but seeing that (a) you can get
the current version from "select version()" and (b) there isn't any
other way to get the initdb version, it seems like this behavior is
fine.
        regards, tom lane


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

Предыдущее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: Race conditions, race conditions!
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCHES] Patch to fix plpython on OS X