Re: Running functions that return void in psql - Mailing list pgsql-general

From Richard Huxton
Subject Re: Running functions that return void in psql
Date
Msg-id 41BFFEE1.2000305@archonet.com
Whole thread Raw
In response to Running functions that return void in psql  (Eric Brown <eric.brown@propel.com>)
List pgsql-general
Eric Brown wrote:
> I've got quite a few plpgsql functions that insert, update or delete.
> They're all declared to return void. All other functions, I can just run
> 'select f(...);' from psql to test them. I don't understand how to test
> these ones that return void from psql. Thanks.

I always return boolean or a count of rows affected in these situations.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: java.sql.SQLException: ERROR: Relation 38868974 does
Next
From: Eric Brown
Date:
Subject: pgplsql SELECT INTO ... FOR UPDATE (transaction/locking question)