On Thu, Jan 26, 2006 at 03:02:46PM -0800, vishal saberwal wrote: > When i run it on PostgreSQL8.0.1 (on fedora core 2), i get the error: > > dbm=# select * from excpt_test(); > ERROR: syntax error at or near "sqlstate" at character 133
SQLSTATE and SQLERRM are new in 8.1; they're not available in earlier versions unless you've applied some patch.