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 1jDuuf-0001ar-H0 for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 18:56:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDuuc-0001GI-H4 for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 18:56:30 +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 1jDuuc-0001GA-46 for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 18:56:30 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jDuuZ-0006Gu-PQ for pgsql-general@postgresql.org; Mon, 16 Mar 2020 18:56:29 +0000 Received: by mail-lj1-x233.google.com with SMTP id q19so19877424ljp.9 for ; Mon, 16 Mar 2020 11:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=l22uCV9tiuFeNrJ9AldJYSvbmpLKVLbSOeIjmToLdXM=; b=o5URd/2LvCXbLehX0GNCsfXBOS/OMUkeNNg35lysW724PyIedWgGu1Uq8Df+G5gRrG fECa0AYVjnSg8HgsMTb6gPN0sENewYx+COx5FyM6KQGxa3v03x4DygGdzA7yjE91WdlE xN89QASj56KrcASuv5JlB0tJ8APurcEHxSbWY7FuxEE6aYbxl7NMUq/OcPmcGLxRlrJ+ rlCugvhEp5dJWwIXXSKfw0WOddWgHTVndZ3hHhoSmsnr7TUgVgcgaIefntTssIAJdImT QlHMzn2wLWqz4bu0ewrcrQqh/EY2BrGy8oeffkjDMMhmH+tHzJmvE7cJ6Q6ib7+a+qsN F/OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=l22uCV9tiuFeNrJ9AldJYSvbmpLKVLbSOeIjmToLdXM=; b=ti3KlsHx7cBmu+pAc6/qNdcCsJb2CbINihaj6/Zkr6CGoj43PW817T7XzcP+y3Kq8X /QGZKvM0vzL7rF/1k9cMgIZC9IPrwOXmbHQWZI8HKtYhDAiK5k+RbL0I8/nyncRhxONs GTiWjjQUQNawzYeiMdIhRvuMHk4u2bUMdlVMpmt6iPHajbcoZjaaNdOznsCc/1ZGs911 85Nz73+fhno9DlOUuvbBk1ZhauAMqFItr1mNIGA7ANR2oAGRjQVVNVu/5rEzypgfaoG5 q8yvGGAjrjwwDguqIPtz0XpkUVUfWrHPIfj+Hl8yFBA/8CWHpNOT3uemEF4Z6wQAOHCE e3sw== X-Gm-Message-State: ANhLgQ3M2/H3rYpjWoASYq1WjpEc/I2JLph1IMBjmiqu+pczVyv2ki7U qJ5OwaMETD24cGfluvUA+Eg= X-Google-Smtp-Source: ADFU+vsfIG2NACDbxMCOhcyJdyJj1jsmQXnSlyVzXOcWUwnatbfjt2n0A6vY157OKCj5Y6B1s99N8w== X-Received: by 2002:a2e:96cc:: with SMTP id d12mr426968ljj.87.1584384986891; Mon, 16 Mar 2020 11:56:26 -0700 (PDT) Received: from imac.lan (81-227-64-79-no276.tbcn.telia.com. [81.227.64.79]) by smtp.gmail.com with ESMTPSA id q4sm623819lfp.18.2020.03.16.11.56.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 11:56:26 -0700 (PDT) From: =?utf-8?Q?Bj=C3=B6rn_Lundin?= Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_77204657-9FCA-4431-B352-7AEE420BE3C3" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Order by and timestamp Date: Mon, 16 Mar 2020 19:56:24 +0100 In-Reply-To: <9004c731-b2eb-faaa-6dc9-6ebd231c5879@aklaver.com> Cc: Tom Lane , pgsql-general@postgresql.org To: Adrian Klaver 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> X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_77204657-9FCA-4431-B352-7AEE420BE3C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >> Ooh - terrible sorry. >> The output from first post describing the database schema >> Was actually from my production machine - a raspberry pi. >> The pi hold a db on an usb-disk, which is pg_dump()ed every night and = imported to ibm2 history db (the bad one) >> The schema is identical to the one with trouble - which is a history = database >> Intended for testing >=20 > To be clear the RPI version of the database sorts correctly? Yes, but as I replied to Tom, it only contains a days worth of data, = then pg_dump()ed and truncated. Tas data is imported to * the faulty one (ibm2/debian/9.4) * the correct one (tp/ubuntu/pg 10.6) >=20 >> I did not realize that would matter when posting - did the post away = from home, >=20 >=20 > Yes, it would be have been nice to know at the outset there where = multiple instances involved. Hmm did not realize that. It=E2=80=99s hard to know when to leave out = =E2=80=99insignificant details=E2=80=99 and when not to. (Ie when the details turn out to be significant) I saw a machine - with its current data - sort in a for me strange way. Then it struck me that I have another (semi-retired) machine with = basically the same data, Enetered the same way, with the same import files, that works So in a sense many instances, but not really. I mean, the pg_dump does copy-commands. I could have inserted that by hand. -- Bj=C3=B6rn Lundin b.f.lundin@gmail.com --Apple-Mail=_77204657-9FCA-4431-B352-7AEE420BE3C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


Ooh - terrible sorry.
The output = from first post describing the database schema
Was = actually from my production machine - a raspberry pi.
The = pi hold a db on an usb-disk, which is pg_dump()ed every night and = imported to ibm2 history db (the bad one)
The schema is = identical to the one with trouble - which is a history database
Intended for testing

To be clear the RPI version of the database sorts = correctly?


Yes, but as I replied to = Tom, it only contains a days worth of data, then pg_dump()ed and = truncated.
Tas data is imported to
* the faulty one = (ibm2/debian/9.4)
* the correct one (tp/ubuntu/pg = 10.6)



I did not realize that = would matter when posting - did the post away from home,


Yes, it would be = have been nice to know at the outset there where multiple instances = involved.
Hmm did not realize that. It=E2=80=99s = hard to know when to leave out =E2=80=99insignificant details=E2=80=99 = and when not to.
(Ie when the details turn out to = be significant)
I saw a machine - with its current = data - sort in a for me strange way.
Then it struck = me that I have another (semi-retired) machine with basically the same = data,
Enetered the same way, with the same import = files, that works

So in a sense many instances, but not really.
I mean, the pg_dump does copy-commands.
I could have = inserted that by hand.

--
Bj=C3=B6rn Lundin




= --Apple-Mail=_77204657-9FCA-4431-B352-7AEE420BE3C3--