regclass without error?

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема regclass without error?
Дата
Msg-id 20100903.172835.87788062.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответы Re: regclass without error?  (Robert Haas <robertmhaas@gmail.com>)
Re: regclass without error?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: regclass without error?  (Pavel Golub <pavel@microolap.com>)
Список pgsql-hackers
Hi,

Is there any way to use regclass without having ERROR?

pgpool-II needs to find the oid from table name and for the purpose it
issues something like "SELECT 'table_name'::regproc::oid". Problem is,
if the table does not exist, an error occured and the transaction
aborts. Ideally if the table does not exist, the SELECT returns 0
(InvalidOid).

Any idea?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: thousand unrelated data files in pg_default tablespace
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Synchronous replication - patch status inquiry