From: Kris Deugau <kdeugau@vianet.ca>
To: pgsql-admin@postgresql.org
Subject: Re: reg:Query
Date: Tue, 16 May 2006 10:32:42 -0400
Message-ID: <4469E28A.90207@vianet.ca> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAD/QYCgegltIpPug7EE8rRQBAAAAAA==@mailnetwork.co.uk>
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAD/QYCgegltIpPug7EE8rRQBAAAAAA==@mailnetwork.co.uk>
Andy Shellam wrote:
> Depends on which version of Postgres you’re using (pre-8.0 or post-8.0)
>
> I think the format changed from v8.0 onwards. So, for example, post-8.0:
>
> SELECT email_address FROM account_details ORDER BY address_id LIMIT 1
> OFFSET 0;
>
> Will bring back the first row. The following will bring back the next and
> so on:
>
> SELECT email_address FROM account_details ORDER BY address_id LIMIT
> 1 OFFSET 1;
>
> Pre-8.0 the queries would be:
>
> SELECT email_address FROM account_details ORDER BY address_id LIMIT
> 1, 0;
> SELECT email_address FROM account_details ORDER BY address_id LIMIT
> 1, 1;
Curious; I've never seen this format. I've been using the first for
some time now with 7.2.something (Debian Woody), and more recently
7.4.something (Debian Sarge). No problems. Most access is via Perl
DBI, but the exact same SQL works just fine from a psql shell.
-kgd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kdeugau@vianet.ca
Subject: Re: reg:Query
In-Reply-To: <4469E28A.90207@vianet.ca>
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAD/QYCgegltIpPug7EE8rRQBAAAAAA==@mailnetwork.co.uk> <4469E28A.90207@vianet.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox