Thread: [GENERAL] Check if prepared statement exist?

[GENERAL] Check if prepared statement exist?

From
Igor Korot
Date:
 Hi, ALL,
Is there a way to do such a check from the libpq?

I'm trying to call a function from 2 different places of the
application and want to
see if I already had the call to PQprepare();

Thank you.


Re: [GENERAL] Check if prepared statement exist?

From
Tom Lane
Date:
Igor Korot <ikorot01@gmail.com> writes:
> Is there a way to do such a check from the libpq?

I think the pg_prepared_statements view will help you.

            regards, tom lane