Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> Would it be useful to have a pg_get_prepared(name) function that returns
> true or false depending on whether or not there is a prepared query of
> that name?
This has been discussed as something needed at the protocol level, not
a SQL function.
> Perhaps we could have a way of checking the parameter types of it as well?
That's called Describe Statement.
regards, tom lane