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.89) (envelope-from ) id 1h1JBy-0003Zr-T0 for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 23:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1JBx-0000ay-FJ for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 23:09:45 +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 1h1JBx-0000ar-6l for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 23:09:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1JBq-0001JT-CG for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 23:09:44 +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 x25N9Y7Q023835; Tue, 5 Mar 2019 18:09:34 -0500 From: Tom Lane To: Matthew Pounsett cc: Andreas Kretschmer , pgsql-general@lists.postgresql.org Subject: Re: [External] LIMIT not showing all results In-reply-to: References: <85CFAA9E-E10B-4B1E-8C79-7793CC92BA82@deccio.net> <2AA9443B-57B7-4088-8B8F-957703E206F0@deccio.net> <2871.1551804378@sss.pgh.pa.us> <22014.1551808473@sss.pgh.pa.us> <16683.1551812118@sss.pgh.pa.us> Comments: In-reply-to Matthew Pounsett message dated "Tue, 05 Mar 2019 18:03:08 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23833.1551827374.1@sss.pgh.pa.us> Date: Tue, 05 Mar 2019 18:09:34 -0500 Message-ID: <23834.1551827374@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthew Pounsett writes: > On Tue, 5 Mar 2019 at 13:55, Tom Lane 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