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 1jDxzg-0000SG-Pk for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 22:13:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDxzf-0001Zn-J7 for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 22:13:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDxze-0001Zg-55 for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 22:13:55 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDxzV-0004Vi-Qz for pgsql-general@postgresql.org; Mon, 16 Mar 2020 22:13:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0C3D35BC; Mon, 16 Mar 2020 18:13:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 16 Mar 2020 18:13:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Z zBtYlrYxhgsuhUvSR+iISkqLkd6T2nSFg/oSgvZxkc=; b=A7uO1kBfu0b8+qXCl 5OTSQyIc/JQs4H22faVzyv4GcjBYfK3Xi8xsiynetWW2Onllc64MI6wJGL0EiJVq Cr0O66AUopJHwMQmfgaHQCQeIKy0ZOiIV51GyBi5PAKZp1dR1aaL2bls1nlDCBA8 HM5yUREN0J97ZVHbni/2SijIwmVdQSS/6Ciew5ZrYZhpX2m8V655Jfa56yEb+jbN wyaEY7/apXQsho457WsskLsKT2Wj1S5e9bUhJHPAoWuLzX/0JL8bBf+OD87uYJVB QTfHitKRbasKVHDAFsfiqq8Y5/0/I5TXn2beBDBtxiDX1mEJ3u7eKfkNrTdUNJJy jCu+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=ZzBtYlrYxhgsuhUvSR+iISkqLkd6T2nSFg/oSgvZx kc=; b=WjvFwS0G5NAJhK76d+WJS7qU07EDdjz+XR7rkSjjfQmET6AGQKISOSY4S df1KsgLb7y5eCJn8+FrtzABbZEsbJmqbRo7IVmTWWhI9avxVPq1qG+LPMVy06u4u 2zbB4AykUeHt8h4O6LiZyhKnsRKdAuErFbDc9AIGd07genPs7IddaCN7HUM1EC4I iwHI32hdFLq+iWYKB+q9wctFIyvxSnGEpFxdK2p8comLsT3Wmkfpm23tKKKS/Z9g 22UHbJP/vCofCBBK+ckVz5gP2T0tbLU2z/dCxqbW5k1ZmtU6Frm5TIR9mFF/PSdu mrwSgwg2RLhXBQtPRKJZOR5zhIkOA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeffedgudehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuffhomhgrihhnpehprghsthgvsghinhdrtghomhenucfkphepjedurddvuddv rdduvdelrdduleefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id D8F0F30614FA; Mon, 16 Mar 2020 18:13:42 -0400 (EDT) Subject: Re: Order by and timestamp To: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Cc: Tom Lane , pgsql-general@postgresql.org 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> From: Adrian Klaver Message-ID: <1776fcbe-d55a-2059-7abf-0a615896a871@aklaver.com> Date: Mon, 16 Mar 2020 15:13:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/16/20 2:50 PM, Björn Lundin wrote: > > >> 16 mars 2020 kl. 20:26 skrev Adrian Klaver > >: >> >> Per Tom's comment, what are the encodings? > Just sent reply to his mail with the encodings > > > >> Also I would point out that the problem occurs on the machine you are >> dumping/restoring backwards 9.6 --> 9.4. Not sure if that is relevant >> or not, but worth looking at. >> >> How is the dump/restore done(plain text, custom format, etc) and what >> are the command strings? > > I pasted 2 days at pastebin > > (with date marking added) > https://pastebin.com/4E24JLEF > > > >> Also what versions of pg_dump/pg_restore are you using on the dump and >> restore sides for the various Postgres versions? > > Hmm, now that is tricky, > The prod has - as I briefly mentioned - been on the AWS > So I used its pg_dump. But I don’t recall version > In my notes I can see that we started with an ubuntu 12.04 image > > But - I always use the pg_dump that belongs to the source database > And psql that belongs to the target database > So insert is > bnl@ibm2:~/db$ psql > Tidtagning är på. > AUTOCOMMIT off > psql (9.6.15, server 9.4.15) > Skriv "help" för hjälp. Except you are using psql 9.6.15 against a 9.4.15 server. What happens if you use psql(9.4.15) to do sort query against 9.4.15 server? > > While pg_dump may have varied through the years > The dump at pastebin gave me no clue of version that created it > > Lately (the lsat 2 years or so) it has ben the pg_dump on the pi > *bnl@pibetbot*:*~ $*pg_dump --version > pg_dump (PostgreSQL) 9.6.10 > > But not for that data sep/oct 2016 > > >> Yes really, otherwise you would not be seeing a difference. Sorry, pet >> peeve of mine, when people say these two things are not doing the same >> thing but then say they are the same thing. >> >>> I mean, the pg_dump does copy-commands. >> >> It also does a certain amount of setup at the beginning of the file. > > I stand corrected > > -- > Björn Lundin > b.f.lundin@gmail.com > > > > -- Adrian Klaver adrian.klaver@aklaver.com