returning array from function or "structured error" - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject returning array from function or "structured error"
Date
Msg-id 20080330223803.46db3bee@webthatworks.it
Whole thread Raw
Responses Re: returning array from function or "structured error"  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
I've a plpgsql function that execute some tests on data and it has to
return which test failed.

It would be handy to return an array... but an array is returned as a
serialised object and I'd like to avoid to un-serialise it from php.

Building up a temp table and returning a "setof record" or
building up a bitmap look awful.

Any elegant idea?

thx

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: database 1.2G, pg_dump 73M?!
Next
From: Tom Lane
Date:
Subject: Re: Connection to PostgreSQL Using Certificate: Wrong Permissions on Private Key File