Re: Getting fancy errors when accessing information_schema on 10.5

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Getting fancy errors when accessing information_schema on 10.5
Дата
Msg-id 4880e067723cefc1dc2e08a117f96de26ae0f797.camel@cybertec.at
обсуждение исходный текст
Ответ на Getting fancy errors when accessing information_schema on 10.5  (Axel Rau <Axel.Rau@chaos1.de>)
Ответы Re: Getting fancy errors when accessing information_schema on 10.5  (Axel Rau <Axel.Rau@Chaos1.DE>)
Список 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 по дате отправления:

Предыдущее
От: Axel Rau
Дата:
Сообщение: Getting fancy errors when accessing information_schema on 10.5
Следующее
От: Axel Rau
Дата:
Сообщение: Re: Getting fancy errors when accessing information_schema on 10.5