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
In response to
Responses
pgsql-hackers by date
| Next: | From: David Fetter | Date: 2010-09-03 14:21:00 |
| Subject: Re: regclass without error? |
| Previous: | From: Tom Lane | Date: 2010-09-03 14:07:25 |
| Subject: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!) |