| От | Tom Lane |
|---|---|
| Тема | Re: Can't query system tables during transaction |
| Дата | |
| Msg-id | 1567426.1601843435@sss.pgh.pa.us обсуждение |
| Ответ на | Can't query system tables during transaction (Igor Korot <ikorot01@gmail.com>) |
| Ответы |
Re: Can't query system tables during transaction
|
| Список | pgsql-general |
Igor Korot <ikorot01@gmail.com> writes:
> I'm trying to execute following:
> SELECT 1 FROM pg_class c, pg_namespace n WHERE n.oid = c.relnamespace
> AND c.relname = 'foo' AND n.nspname = public;
I suppose you meant to put quotes around 'public'?
> I'm getting the following error:
> ERROR: current transaction is aborted, commands ignored until end of
> transaction block
This has nothing to do with the current command, but with failure
of some previous command in the transaction.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера