Skip site navigation (1) Skip section navigation (2)

Re: returning more than one value from a function

From: Lonni J Friedman <netllama(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Leif Biberg Kristensen <leif(at)solumslekt(dot)org>, pgsql-novice(at)postgresql(dot)org
Subject: Re: returning more than one value from a function
Date: 2010-05-04 22:47:20
Message-ID: w2y7c1574a91005041547vfdddd8c0y8a60988d55fdc76d@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On Sat, May 1, 2010 at 3:56 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Lonni J Friedman <netllama(at)gmail(dot)com> writes:
>> ...  Now I've got the
>> opposite problem, namely that I can't find a way to have my function
>> not return anything at all.  Whenever I try to remove the 'RETURN AS
>> ....' portion of the function, it fails to get created.  Is it not
>> possible to have a function that returns nothing?
>
> Declare it as RETURNS VOID.  This is really just window dressing, as
> the actual behavior is to return a null value, but it documents your
> intention.

thanks, that is exactly what I needed.

In response to

pgsql-novice by date

Next:From: Tony DayDate: 2010-05-05 04:28:52
Subject: Autovaccum and Full vacuum
Previous:From: Shoaib MirDate: 2010-05-04 11:36:42
Subject: Re: Database Replay

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group