Re: regclass without error?

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: regclass without error?
Дата
Msg-id 4C8101E4.4040104@cs.helsinki.fi
обсуждение исходный текст
Ответ на Re: regclass without error?  (Tatsuo Ishii <ishii@postgresql.org>)
Ответы Re: regclass without error?  (David Fetter <david@fetter.org>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)
Следующее
От: David Fetter
Дата:
Сообщение: Re: regclass without error?