pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: chris@hub.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with plpgsql function
Date: Thu, 15 Jan 2004 10:47:53 -0800
Message-ID: <4006E059.7030802@joeconway.com> (raw)
In-Reply-To: <1074191967.33449.11.camel@morpheus.hub.org>
References: <1074191967.33449.11.camel@morpheus.hub.org>

Chris Bowlby wrote:
> select get_account_info('test.com');
> 
>  I get this error:
> 
> ERROR:  set-valued function called in context that cannot accept a set

This is the "classic" SRF error -- you need to use an SRF like a 
relation in the FROM clause, so do this instead:

   select * FROM get_account_info('test.com');

HTH,

Joe





view thread (3+ messages)  latest in thread

Message-ID: <4006E059.7030802@joeconway.com>
Permalink:  ../4006E059.7030802@joeconway.com/
Also on:    postgresql.org/message-id/4006E059.7030802@joeconway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mail@joeconway.com, chris@hub.org
  Subject: Re: Problem with plpgsql function
  In-Reply-To: <4006E059.7030802@joeconway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox