Re: regclass without error?

From: Marko Tiikkaja <marko(dot)tiikkaja(at)cs(dot)helsinki(dot)fi>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: robertmhaas(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: regclass without error?
Date: 2010-09-03 14:10:44
Message-ID: 4C8101E4.4040104@cs.helsinki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2010-09-03 14:21:00 Re: regclass without error?
Previous Message Tom Lane 2010-09-03 14:07:25 Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)