Re: Determing Postgres version

From: "Gary Hoffman" <ghoffman(at)ucsd(dot)edu>
To: chriskl(at)familyhealth(dot)com(dot)au
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Determing Postgres version
Date: 2001-12-17 16:16:07
Message-ID: fc.00249f0e00301bb400249f0e00301349.301bbc@irpsmail.ucsd.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Well, I thought of that.

Here's what I get:
ERROR: function version() does not exist

Any other ideas, short of actually asking the ISP help desk?

Gary

chriskl(at)familyhealth(dot)com(dot)au writes:
>Try:
>
>select version();
>
>Chirs
>
>> -----Original Message-----
>> From: pgsql-php-owner(at)postgresql(dot)org
>> [mailto:pgsql-php-owner(at)postgresql(dot)org]On Behalf Of Gary Hoffman
>> Sent: Monday, 17 December 2001 2:24 PM
>> To: pgsql-php(at)postgresql(dot)org
>> Subject: [PHP] Determing Postgres version
>>
>>
>> For an off-campus project, my web hosting ISP has the PostgreSQL
>> postmaster running on a host separate from where my web pages are
>hosted.
>> My queries work OK, but I can't get LIMIT to work. I suspect he hasn't
>> upgraded to version 7 yet. How can I query for a version? I can't use
>> pg_config --version because it's not on my local host and anyway it
>> wouldn't find the postmaster on this host.
>>
>> Can I use a SQL query to determine the version of the postmaster?
>>
>> Thanks in advance.
>> Gary

**************************************************************************
* Gary B. Hoffman, Computing Services Manager e-mail: ghoffman(at)ucsd(dot)edu *
* Graduate School of International Relations and Pacific Studies (IR/PS) *
* University of California, San Diego (UCSD) voice: (858) 534-1989 *
* 9500 Gilman Dr. MC 0519 fax: (858) 534-3939 *
* La Jolla, CA 92093-0519 USA web: http://www-irps.ucsd.edu/ *
**************************************************************************

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Vince Vielhaber 2001-12-17 18:03:27 Re: Determing Postgres version
Previous Message Christopher Kings-Lynne 2001-12-17 07:01:50 Re: Determing Postgres version