pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Björn Lundin <b.f.lundin@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: Order by and timestamp
Date: Mon, 16 Mar 2020 22:50:44 +0100
Message-ID: <33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.com> (raw)
In-Reply-To: <5e1a2f75-2d9c-889b-7504-63edb615caf6@aklaver.com>
References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com>
	<c171c26b-fd5e-b4bf-ec86-97b6f8dbcbe0@aklaver.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>
	<B8742026-DBCA-475E-9036-65C61DA2639B@gmail.com>
	<5e1a2f75-2d9c-889b-7504-63edb615caf6@aklaver.com>



> 16 mars 2020 kl. 20:26 skrev Adrian Klaver <adrian.klaver@aklaver.com>:
> 
> 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 <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.

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

view thread (24+ messages)  latest in thread

Message-ID: <33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.com>
Permalink:  ../33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.com/
Also on:    postgresql.org/message-id/33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.com

 · 

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-general@postgresql.org
  Cc: b.f.lundin@gmail.com, adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us
  Subject: Re: Order by and timestamp
  In-Reply-To: <33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.com>
  References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com> <c171c26b-fd5e-b4bf-ec86-97b6f8dbcbe0@aklaver.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> <B8742026-DBCA-475E-9036-65C61DA2639B@gmail.com> <5e1a2f75-2d9c-889b-7504-63edb615caf6@aklaver.com> <33EA1F8F-5B37-41DD-B045-88FC8D207AC6@gmail.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