Re: Running functions that return void in psql

From: Neil Conway <neilc(at)samurai(dot)com>
To: Eric Brown <eric(dot)brown(at)propel(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Running functions that return void in psql
Date: 2004-12-15 08:43:36
Message-ID: 41BFF938.1000000@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

neilc=# create function xyz() returns void as 'begin return; end;'
language 'plpgsql';
CREATE FUNCTION
neilc=# select xyz();
xyz
-----

(1 row)

-Neil

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2004-12-15 08:47:06 Re: Running functions that return void in psql
Previous Message Eric Brown 2004-12-15 08:19:14 Running functions that return void in psql