On 2010-09-03 4:46 PM, Tatsuo Ishii wrote:
>> You can write a query against the system catalog tables.
>
> That was pretty hard than I though(schema search path etc.).
>
>> Or you could
>> install a function that wraps the regclass cast in an exception
>> handler.
>
> That requires users to install the function. Annoying for users.
How about using a SAVEPOINT before the cast? Wouldn't fail your
transaction..
Regards,
Marko Tiikkaja