Search Postgresql Archives

Re: How to determine server version inside select statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/10/31 Andrus <kobruleht2@xxxxxx>:
> I tried
>
> SELECT (SHOW server_version) AS Contents
>
> but got
>
> ERROR:  syntax error at or near "server_version" at character 14
>
>
> how to get server version inside select statement ?
>


SELECT current_setting('server_version') AS Contents;

Osvaldo

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux