Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHVZl-0006o1-E1 for pgsql-admin@arkaria.postgresql.org; Tue, 30 Oct 2018 15:05:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHVZi-0001CW-Ko for pgsql-admin@arkaria.postgresql.org; Tue, 30 Oct 2018 15:04:58 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHVZi-0001CP-DJ for pgsql-admin@lists.postgresql.org; Tue, 30 Oct 2018 15:04:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHVZg-0001Hv-Ap for pgsql-admin@postgresql.org; Tue, 30 Oct 2018 15:04:58 +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 w9UF4lMs029082; Tue, 30 Oct 2018 11:04:47 -0400 From: Tom Lane To: Axel Rau cc: Laurenz Albe , pgsql-admin@postgresql.org Subject: Re: Getting fancy errors when accessing information_schema on 10.5 In-reply-to: References: <4880e067723cefc1dc2e08a117f96de26ae0f797.camel@cybertec.at> <44D4C7B1-0DCF-4166-9DB8-B5D75EB2985E@Chaos1.DE> <20191.1540901834@sss.pgh.pa.us> <31055688b81895792fa7d8c61e07dca7add3dbb9.camel@cybertec.at> <15908.1540907134@sss.pgh.pa.us> Comments: In-reply-to Axel Rau message dated "Tue, 30 Oct 2018 15:35:39 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29080.1540911887.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 30 Oct 2018 11:04:47 -0400 Message-ID: <29081.1540911887@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Axel Rau writes: > Am 30.10.2018 um 14:45 schrieb Tom Lane : >> Axel, would you try two more things on that DB? > nextcloud=3D> explain select ((pg_has_role(relowner, 'USAGE'::text) OR h= as_sequence_privilege(oid, 'SELECT, UPDATE, USAGE'::text))) from pg_class; > QUERY PLAN = > ----------------------------------------------------------- > Seq Scan on pg_class (cost=3D0.00..28.56 rows=3D656 width=3D1) > (1 row) > nextcloud=3D> explain select (relkind =3D 'S'::"char") from pg_class; > QUERY PLAN = > ----------------------------------------------------------- > Seq Scan on pg_class (cost=3D0.00..28.56 rows=3D656 width=3D1) > (1 row) That is ... odd. Is it possible that you have cpu_operator_cost set to zero, or some very tiny number? regards, tom lane