pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Cooper <jim@luckydigital.com>
To: sql <pgsql-sql@postgresql.org>
Subject: sql question after upgrade
Date: Sun, 23 Feb 2003 13:58:59 +1300
Message-ID: <002f01c2dad6$c03bb470$c900a8c0@jax> (raw)

Hi just upgraded to 7.3.2 and imported my db schema with no probs!

Just wondering... why VOLATILE is being appended to my functions - can anyone ansewer me what this means? - should i be using joins instead, does this make a difference? If so an example of this would be much appreciated!!

CREATE FUNCTION public.get_people_total(int4) RETURNS int8 AS '
select count(person_id) as total from person where person_id IN
(
select cp.person_id from cluster_person cp, cluster c where cp.cluster_id = c.cluster_id and c.c_id = $1 group by cp.person_id 
);
' LANGUAGE 'sql' VOLATILE;



cheers all

James

view thread (3+ messages)  latest in thread

Message-ID: <002f01c2dad6$c03bb470$c900a8c0@jax>
Permalink:  ../002f01c2dad6$c03bb470$c900a8c0@jax/
Also on:    postgresql.org/message-id/002f01c2dad6$c03bb470$c900a8c0@jax

 · 

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: jim@luckydigital.com
  Subject: Re: sql question after upgrade
  In-Reply-To: <002f01c2dad6$c03bb470$c900a8c0@jax>

* 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