Re: Can't query system tables during transaction - Mailing list pgsql-general

From Igor Korot
Subject Re: Can't query system tables during transaction
Date
Msg-id CA+FnnTy9QHT5DeTis28wQY4mXkkyoskF6-GFw2g3H7rnXeK5UA@mail.gmail.com
Whole thread Raw
In response to Re: Can't query system tables during transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

On Sun, Oct 4, 2020 at 3:30 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> 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 suppose so as well. ;-)

>
> > 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.

Thank you.
I will try to track down the error.

>
>                         regards, tom lane



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Can't query system tables during transaction
Next
From: Achilleas Mantzios
Date:
Subject: Re: Can I get some PostgreSQL developer feedback on these five general issues I have with PostgreSQL and its ecosystem?