From: hubert depesz lubaczewski <depesz@depesz.com>
To: prgopikrishnan85@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17766: Issue in asc, limit and offset for pagination.
Date: Wed, 1 Feb 2023 12:10:57 +0100
Message-ID: <Y9pIwXnYSEcZg9uG@depesz.com> (raw)
In-Reply-To: <17766-9dd240f7c46fb58b@postgresql.org>
References: <17766-9dd240f7c46fb58b@postgresql.org>
On Wed, Feb 01, 2023 at 06:38:47AM +0000, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 17766
> Logged by: PR Gopi krishnan
> Email address: prgopikrishnan85@gmail.com
> PostgreSQL version: 15.1
> Operating system: windows and linux
> Description:
>
> While getting the rows with the columns called name which has duplicate
> names, now ascending the rows by name with limit 25 and offset 0,25,50 like
> this on each query. But the rows are duplicating with the names
This is not a bug. Simply make sure that your order by clause is over
unique combination.
So, if your name has duplicates, then add primary key to order by
clause:
order by name, id
depesz
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: depesz@depesz.com, prgopikrishnan85@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17766: Issue in asc, limit and offset for pagination.
In-Reply-To: <Y9pIwXnYSEcZg9uG@depesz.com>
* 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