Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group