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