Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jECqF-0000VH-Ni for pgsql-general@arkaria.postgresql.org; Tue, 17 Mar 2020 14:05:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jECqC-0007RE-W9 for pgsql-general@arkaria.postgresql.org; Tue, 17 Mar 2020 14:05:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jECqC-0007R7-MB for pgsql-general@lists.postgresql.org; Tue, 17 Mar 2020 14:05:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jECqA-000746-Ck for pgsql-general@postgresql.org; Tue, 17 Mar 2020 14:05:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02HE5189031987; Tue, 17 Mar 2020 10:05:01 -0400 From: Tom Lane To: =?utf-8?Q?Bj=C3=B6rn_Lundin?= cc: Adrian Klaver , pgsql-general@postgresql.org Subject: Re: Order by and timestamp SOLVED In-reply-to: <5E2FF59B-3E85-42C8-9C83-FED22A337695@gmail.com> References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com> <24142.1584319263@sss.pgh.pa.us> <7D74B8B5-DFBD-4B5B-85C6-A516343E49C1@gmail.com> <346C3B58-D29E-4CC2-8200-691ECA91F494@gmail.com> <10f84f23-6011-28ab-79a1-a1c259424d2e@aklaver.com> <72890A04-294E-4753-8839-69F0BAD9AA17@gmail.com> <9004c731-b2eb-faaa-6dc9-6ebd231c5879@aklaver.com> <5e1a2f75-2d9c-889b-7504-63edb615caf6@aklaver.com> <33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.com> <1776fcbe-d55a-2059-7abf-0a615896a871@aklaver.com> <5E2FF59B-3E85-42C8-9C83-FED22A337695@gmail.com> Comments: In-reply-to =?utf-8?Q?Bj=C3=B6rn_Lundin?= message dated "Tue, 17 Mar 2020 08:28:52 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31985.1584453901.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Mar 2020 10:05:01 -0400 Message-ID: <31986.1584453901@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?utf-8?Q?Bj=3DC3=3DB6rn_Lundin?=3D writes: >> What happens if you use psql(9.4.15) to do sort query against 9.4.15 se= rver? > However AFTER I checked the bad sorting - sep/oct 2016 and early apr 201= 7 = > With psql 9.4 I connected with psql 9.6 again. > And now the sorting error is gone her too! Boy ... I don't have any confidence in that answer. psql does not re-sort data, nor does it have any way to affect what the server does. It seems to me that if this actually is a version inconsistency problem, that's a bug in itself. I am starting to wonder though if you had psql's FETCH_COUNT option active in one configuration and not the other, and if so whether that could explain anything. regards, tom lane