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 1h1I0Y-0006KZ-QI for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 21:53:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1I0X-0004VX-21 for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 21:53:53 +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 1h1I0W-0004VP-Px for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 21:53:52 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1I0U-00082q-6h for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 21:53:52 +0000 Received: by mail-pf1-x444.google.com with SMTP id s22so6723303pfh.4 for ; Tue, 05 Mar 2019 13:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deccio.net; s=google; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=UfVTkqlK/gK3nQVsAH3N8V2Hf6XFt8y0iNSJw2iVOvM=; b=FyTlDpbOiQmsVfc9wG2fdmBuxNKyGBV5f22NVDXosE+IHXmX1czeXrBBoNy8OLhQll fsbFAIh2Vs0vgPRIGeY3TkWTY+IpQEwxQq9X2YtL3aUaQk0XQXpJKGT1JzayntZ4kYbi B4EH/uYKDlAM+/8+E6XBNUSO6U6xo8K4xBqvg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=UfVTkqlK/gK3nQVsAH3N8V2Hf6XFt8y0iNSJw2iVOvM=; b=pcVXwXC/w0Gx/DYFaleJ1QoXkVd4inO6A0ZXTWuoXjz17kB4cLQpaMwProL9Ki70Fi GSdmzmhJvVgABy0My0FwIiBcea1bKNP+BwzezdmWP9J7+ocnwj0VofqAb1jk7fIAyrpb KHC+c3DxZgqfPgZ1soCu1hfgExEgyPIp0L5IfG2YoNTgW3/7uMNXFNAIFcwsgY9v0Pq3 Zz11q9Bjb0OLS8gKI48efSKnnullXDHkoGfSCnCkeqYMOmi/jl2QwVX0BUz/scI3HVfl RfpAZmbtykxVyj559HdmbL+2/l2IKbSVHmxxbaIwp/zDsnwRakNCNltoXNMElwazKrfS q1Ww== X-Gm-Message-State: APjAAAUpVK6H3uVPFXZt1vOrcERcOtVESld/Kz4OeCXJLriDVBHw0XYL 3xp7rju5utgZgygD4PGQjemcwVG92J0o+g== X-Google-Smtp-Source: APXvYqxFpE5E4dcTqpoHcMXT37zrLW8SfLnNrNAECvdIqkpWRKLA5BmhvJLQAxO0t6FO3EvnC0fakg== X-Received: by 2002:a63:c04b:: with SMTP id z11mr3203808pgi.135.1551822826979; Tue, 05 Mar 2019 13:53:46 -0800 (PST) Received: from tenor.cs.byu.edu (outgoing-9.cs.byu.edu. [128.187.83.9]) by smtp.gmail.com with ESMTPSA id s1sm11933977pgv.30.2019.03.05.13.53.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 13:53:46 -0800 (PST) From: Casey Deccio Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [External] LIMIT not showing all results Date: Tue, 5 Mar 2019 14:53:44 -0700 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> To: pgsql-general@lists.postgresql.org In-Reply-To: <16683.1551812118@sss.pgh.pa.us> Message-Id: <7FD1893B-DFB0-4DBC-87F7-C56AB031B42D@deccio.net> X-Mailer: Apple Mail (2.3445.102.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mar 5, 2019, at 11:55 AM, Tom Lane wrote: >=20 > Matthew Pounsett writes: >> On Tue, 5 Mar 2019 at 12:54, Tom Lane wrote: >>> Given that (a) this was triggered by a server migration and (b) >>> the leading column of the index looks like it's probably varchar, >>> I'm suspicious that the new server has different collation behavior. >=20 >> The migration in question was an rsync from a Debian 9 box >> running 9.4.19-0+deb8u1 to a FreeBSD 11 box running 9.4.20. >=20 > Yeah, that would fit the theory :-(. Debian would be using glibc > and FreeBSD would not be. If you were using C collation in the > database, you'd be all right because that's standardized, but I'll > bet you were using something else. What does psql \l show for the > "collate" setting of this database? (Or, if by chance you had an > explicit COLLATE setting on the column in question, what's that?) >=20 > In any case, you should be reindexing any indexes on textual columns > that were not using "C" collation; none of them can be trusted. > The system catalogs should be OK. Many thanks to you and everyone who helped with this issue, with = informative and actionable advice. Reindexing worked like a champ, and = we seem to be back in business. Casey=