Hello, guys.
You wrote:
TI> Hi,
TI> Is there any way to use regclass without having ERROR?
TI> pgpool-II needs to find the oid from table name and for the purpose it
TI> issues something like "SELECT 'table_name'::regproc::oid". Problem is,
TI> if the table does not exist, an error occured and the transaction
TI> aborts. Ideally if the table does not exist, the SELECT returns 0
TI> (InvalidOid).
Agreed with Tatsuo about having InvalidOid.
TI> Any idea?
TI> --
TI> Tatsuo Ishii
TI> SRA OSS, Inc. Japan
TI> English: http://www.sraoss.co.jp/index_en.php
TI> Japanese: http://www.sraoss.co.jp
--
With best wishes,
Pavel mailto:pavel(at)gf(dot)microolap(dot)com
In response to
pgsql-hackers by date
| Next: | From: Tom Lane | Date: 2010-09-03 14:31:29 |
| Subject: Re: regclass without error? |
| Previous: | From: David Fetter | Date: 2010-09-03 14:21:00 |
| Subject: Re: regclass without error? |