sql question after upgrade

From: "James Cooper" <jim(at)luckydigital(dot)com>
To: "sql" <pgsql-sql(at)postgresql(dot)org>
Subject: sql question after upgrade
Date: 2003-02-23 00:58:59
Message-ID: 002f01c2dad6$c03bb470$c900a8c0@jax
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Neil Conway 2003-02-23 01:42:04 Re: sql question after upgrade
Previous Message Hubert depesz Lubaczewski 2003-02-23 00:14:42 how to return ONE single record from a function in plpgsql?