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: (view raw, whole thread or download thread mbox)
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 

Marko Tiikkaja

In response to


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-2017 The PostgreSQL Global Development Group