pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: 1726002692@qq.com
Subject: BUG #15380: Sorting paging data loss
Date: Wed, 12 Sep 2018 03:09:29 +0000
Message-ID: <153672176900.23141.14337441776284994710@wrigleys.postgresql.org> (raw )
The following bug has been logged on the website:
Bug reference: 15380
Logged by: 强 魏
Email address: 1726002692@qq.com
PostgreSQL version: 10.5
Operating system: CentOS 7 X86_64
Description:
postgres@pg12[127.0.0.1:5432]#\d+ tt
Table
"public.tt"
+--------+-----------------------------+-----------+----------+--------------------------------+---------+--------------+-------------+
| Column | Type | Collation | Nullable |
Default | Storage | Stats target | Description |
+--------+-----------------------------+-----------+----------+--------------------------------+---------+--------------+-------------+
| id | integer | | not null |
nextval('tt_id_seq'::regclass) | plain | | |
| time | timestamp without time zone | | |
| plain | | |
+--------+-----------------------------+-----------+----------+--------------------------------+---------+--------------+-------------+
postgres@pg12[127.0.0.1:5432]#select ctid,* from tt order by id;
+--------+----+----------------------------+
| ctid | id | time |
+--------+----+----------------------------+
| (0,1) | 1 | 2018-09-12 10:54:35.997079 |
| (0,2) | 2 | 2018-09-12 10:54:37.61052 |
| (0,3) | 3 | 2018-09-12 10:54:38.481238 |
| (0,4) | 4 | 2018-09-12 10:54:39.443595 |
| (0,5) | 5 | 2018-09-12 10:54:40.256502 |
| (0,19) | 6 | 2018-09-12 10:54:43.650884 |
| (0,6) | 6 | 2018-09-12 10:54:41.035477 |
| (0,17) | 6 | 2018-09-12 10:54:41.992702 |
| (0,18) | 6 | 2018-09-12 10:54:42.845176 |
| (0,10) | 10 | 2018-09-12 10:54:44.511766 |
| (0,11) | 11 | 2018-09-12 10:54:45.358093 |
| (0,12) | 12 | 2018-09-12 10:54:46.14805 |
| (0,13) | 13 | 2018-09-12 10:54:46.914753 |
| (0,14) | 14 | 2018-09-12 10:54:47.718782 |
| (0,15) | 15 | 2018-09-12 10:54:48.528458 |
| (0,16) | 16 | 2018-09-12 10:54:49.263626 |
+--------+----+----------------------------+
(16 rows)
Time: 8.453 ms
postgres@pg12[127.0.0.1:5432]#select ctid,* from tt order by id limit 7
offset 0;
+--------+----+----------------------------+
| ctid | id | time |
+--------+----+----------------------------+
| (0,1) | 1 | 2018-09-12 10:54:35.997079 |
| (0,2) | 2 | 2018-09-12 10:54:37.61052 |
| (0,3) | 3 | 2018-09-12 10:54:38.481238 |
| (0,4) | 4 | 2018-09-12 10:54:39.443595 |
| (0,5) | 5 | 2018-09-12 10:54:40.256502 |
| (0,6) | 6 | 2018-09-12 10:54:41.035477 |
| (0,17) | 6 | 2018-09-12 10:54:41.992702 |
+--------+----+----------------------------+
(7 rows)
Time: 7.970 ms
postgres@pg12[127.0.0.1:5432]#select ctid,* from tt order by id limit 7
offset 7;
+--------+----+----------------------------+
| ctid | id | time |
+--------+----+----------------------------+
| (0,17) | 6 | 2018-09-12 10:54:41.992702 |
| (0,18) | 6 | 2018-09-12 10:54:42.845176 |
| (0,10) | 10 | 2018-09-12 10:54:44.511766 |
| (0,11) | 11 | 2018-09-12 10:54:45.358093 |
| (0,12) | 12 | 2018-09-12 10:54:46.14805 |
| (0,13) | 13 | 2018-09-12 10:54:46.914753 |
| (0,14) | 14 | 2018-09-12 10:54:47.718782 |
+--------+----+----------------------------+
but this tuple is lost ((0,19) , 6 , 2018-09-12 10:54:43.650884 )
view thread (2+ messages) latest in thread
Message-ID: <153672176900.23141.14337441776284994710@wrigleys.postgresql.org>
Permalink: ../153672176900.23141.14337441776284994710@wrigleys.postgresql.org/
Also on: postgresql.org/message-id/153672176900.23141.14337441776284994710@wrigleys.postgresql.org
copy link · copy postgr.es
reply 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-bugs@postgresql.org
Cc: noreply@postgresql.org, 1726002692@qq.com
Subject: Re: BUG #15380: Sorting paging data loss
In-Reply-To: <153672176900.23141.14337441776284994710@wrigleys.postgresql.org>
References: <153672176900.23141.14337441776284994710@wrigleys.postgresql.org>
* 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