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 1gHOfq-0003Hl-RQ for pgsql-admin@arkaria.postgresql.org; Tue, 30 Oct 2018 07:42:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHOfo-0007rM-H5 for pgsql-admin@arkaria.postgresql.org; Tue, 30 Oct 2018 07:42:48 +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 1gHOfo-0007rF-9P for pgsql-admin@lists.postgresql.org; Tue, 30 Oct 2018 07:42:48 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gHOfm-00065j-MZ for pgsql-admin@postgresql.org; Tue, 30 Oct 2018 07:42:47 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id E59BEA1171; Tue, 30 Oct 2018 08:42:44 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 1DWT4EDCcRch; Tue, 30 Oct 2018 08:42:42 +0100 (CET) Message-ID: <4880e067723cefc1dc2e08a117f96de26ae0f797.camel@cybertec.at> Subject: Re: Getting fancy errors when accessing information_schema on 10.5 From: Laurenz Albe To: Axel Rau , pgsql-admin@postgresql.org Date: Tue, 30 Oct 2018 08:42:41 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Axel Rau wrote: > here is an example: > > SELECT sequence_name AS relname, sequence_schema AS schemaname > FROM information_schema.sequences > WHERE sequence_schema NOT LIKE 'pg\_%' AND sequence_schema != ‚information_schema'': SQLSTATE[42809]: Wrong object type: 7 ERROR: "pg_statistic" is not a sequence > > This does not happen as SUPERUSER. > Is this a known bug? The statement as you wrote it is syntactically incorrect. Did some program mutilate your quotes in transfer? Anyway, the error message does not make much sense. Could you run EXPLAIN on the query and tell us the execution plan? Perhaps this is some fancy kind of catalog corruption... Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com