pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: William Leeke <wleeke@ix.netcom.com>
To: pgsql-sql@postgreSQL.org <pgsql-sql@postgreSQL.org>
Subject: create function syntax question
Date: Tue, 22 Sep 1998 15:30:29 -0500
Message-ID: <360808E5.4EE1FBD@ix.netcom.com> (raw)

All,


ver: 6.2.1

Ive looked in all the documentation I can find, however, I keep getting
errors when I try to create function like this.

create function min_max_ave() returns int4 as 'select
min(),max(),(sum()/count()) from routes' language 'sql' ;

I keep getting...
WARN:func_get_detail: function min() does not exist
...but select min(<column>) from routes works.

thanks,
wbl
--
"If you're not supposed to eat animals,
why are they made of meat?" :)



Message-ID: <360808E5.4EE1FBD@ix.netcom.com>
Permalink:  ../360808E5.4EE1FBD@ix.netcom.com/
Also on:    postgresql.org/message-id/360808E5.4EE1FBD@ix.netcom.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: wleeke@ix.netcom.com
  Subject: Re: create function syntax question
  In-Reply-To: <360808E5.4EE1FBD@ix.netcom.com>
  References: <360808E5.4EE1FBD@ix.netcom.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