Re: Getting fancy errors when accessing information_schema on 10.5 - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Getting fancy errors when accessing information_schema on 10.5
Date
Msg-id 4880e067723cefc1dc2e08a117f96de26ae0f797.camel@cybertec.at
Whole thread Raw
In response to Getting fancy errors when accessing information_schema on 10.5  (Axel Rau <Axel.Rau@chaos1.de>)
Responses Re: Getting fancy errors when accessing information_schema on 10.5
List pgsql-admin
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
objecttype: 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



pgsql-admin by date:

Previous
From: Axel Rau
Date:
Subject: Getting fancy errors when accessing information_schema on 10.5
Next
From: Axel Rau
Date:
Subject: Re: Getting fancy errors when accessing information_schema on 10.5