pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthew Pounsett <matt@conundrum.com>
Cc: Andreas Kretschmer <andreas@a-kretschmer.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: [External] LIMIT not showing all results
Date: Tue, 05 Mar 2019 18:09:34 -0500
Message-ID: <23834.1551827374@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAiTEH9c9syRAWdPAEAERYSYiHdUdDRDO6YSxQBBhGK-BqkA+A@mail.gmail.com>
References: <85CFAA9E-E10B-4B1E-8C79-7793CC92BA82@deccio.net>
	<CAE7uO5jf+EytMXTv2Qg=Bg=NfLkbaJqO6PRtEr28R8sAh695mw@mail.gmail.com>
	<2AA9443B-57B7-4088-8B8F-957703E206F0@deccio.net>
	<2871.1551804378@sss.pgh.pa.us>
	<CAE7uO5hSGUcufkPvbZ5K4mBQbBtM4hXGZjsB1vFvy81-Q8UcRQ@mail.gmail.com>
	<e3f08869-3601-f009-94f7-bfd97b0f4164@a-kretschmer.de>
	<22014.1551808473@sss.pgh.pa.us>
	<CAAiTEH9E9+q8YO8WMVMtqP5MwxFaJ+spUhYCVSBXcS4E-XacPQ@mail.gmail.com>
	<16683.1551812118@sss.pgh.pa.us>
	<CAAiTEH9c9syRAWdPAEAERYSYiHdUdDRDO6YSxQBBhGK-BqkA+A@mail.gmail.com>

Matthew Pounsett <matt@conundrum.com> writes:
> On Tue, 5 Mar 2019 at 13:55, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Yeah, that would fit the theory :-(.  Debian would be using glibc
>> and FreeBSD would not be.

> The rsync migration was because we needed to do a cross-country copy before
> putting the original DB server on a truck, but we couldn't get
> pg_basebackup to complete the 22TB sync without dying.  rsync was
> restartable, so we went that route instead.  Now that the two copies are
> physically next to each other again, after we do a rebuild of the original
> server I'll be syncing the data back (this time using pg_basebackup and
> replication).  I *assume* we shouldn't expect similar collation problems
> replicating data that way, but it seems prudent to check.
> Should we?

Uh, yeah you should.  The point here is that Debian and FreeBSD
have different ideas of what en_US.UTF-8 sort order means, so that
an index that's correctly ordered by the lights of one system
is incorrect (corrupt) according to the other.

If you're planninng to install (the same version of) FreeBSD on
the original server hardware, then rsync'ing back from the new
system should be fine.  But Debian<->FreeBSD is gonna be trouble
in either direction.

We generally don't recommend physical database transfers across
OS boundaries, and this is the main reason why.

			regards, tom lane




view thread (20+ messages)  latest in thread

Message-ID: <23834.1551827374@sss.pgh.pa.us>
Permalink:  ../23834.1551827374@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23834.1551827374@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, matt@conundrum.com, andreas@a-kretschmer.de
  Subject: Re: [External] LIMIT not showing all results
  In-Reply-To: <23834.1551827374@sss.pgh.pa.us>
  References: <85CFAA9E-E10B-4B1E-8C79-7793CC92BA82@deccio.net> <CAE7uO5jf+EytMXTv2Qg=Bg=NfLkbaJqO6PRtEr28R8sAh695mw@mail.gmail.com> <2AA9443B-57B7-4088-8B8F-957703E206F0@deccio.net> <2871.1551804378@sss.pgh.pa.us> <CAE7uO5hSGUcufkPvbZ5K4mBQbBtM4hXGZjsB1vFvy81-Q8UcRQ@mail.gmail.com> <e3f08869-3601-f009-94f7-bfd97b0f4164@a-kretschmer.de> <22014.1551808473@sss.pgh.pa.us> <CAAiTEH9E9+q8YO8WMVMtqP5MwxFaJ+spUhYCVSBXcS4E-XacPQ@mail.gmail.com> <16683.1551812118@sss.pgh.pa.us> <CAAiTEH9c9syRAWdPAEAERYSYiHdUdDRDO6YSxQBBhGK-BqkA+A@mail.gmail.com> <23834.1551827374@sss.pgh.pa.us>

* 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