Re: Determing Postgres version

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Determing Postgres version
Дата
Msg-id GNELIHDDFBOCMGBFGEFOKENGCAAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Determing Postgres version  ("Gary Hoffman" <ghoffman@ucsd.edu>)
Список pgsql-php

> -----Original Message-----
> From: Gary Hoffman [mailto:ghoffman@ucsd.edu]
> Sent: Tuesday, 18 December 2001 12:16 AM
> To: chriskl@familyhealth.com.au
> Cc: pgsql-php@postgresql.org
> Subject: Re: RE: [PHP] Determing Postgres version
>
>
> 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?

Not really - bit before my time!

Another thought - if the old version of postgres doesn't support LIMIT, does
it support CURSORs?  If it does, you can simulate LIMIT by going:

BEGIN;
DECLARE mycursor CURSOR
    FOR SELECT * FROM table;
FETCH FORWARD limit_no IN mycursor;
CLOSE mycursor;
COMMIT;

Chris


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

Предыдущее
От: Vince Vielhaber
Дата:
Сообщение: Re: Determing Postgres version
Следующее
От: Marco Colombo
Дата:
Сообщение: Re: Function pg_pconnect do not work in FreeBSD