Re: cost variable into function

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Alain Roger <raf(dot)news(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: cost variable into function
Date: 2008-10-19 14:19:42
Message-ID: 20081019141942.GA13492@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Oct 19, 2008 at 04:03:47PM +0200, Alain Roger wrote:
> i created a stored procedure (function) under postgreSQL and when i checked
> deeper into my DB, this is what i get:
> ....
> END;
> $BODY$
> LANGUAGE 'plpgsql' VOLATILE
> COST 100;
> ALTER FUNCTION myschema.get_count_languages(character varying) OWNER TO
> myuser;
> to what corresponds the parameter COST 100 ?

check the explanation here:
http://www.postgresql.org/docs/current/interactive/sql-createfunction.html

Best regards,

depesz

--
Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2008-10-19 19:17:38 Re: Problem removing Sequence in Postgresql 8.0.3
Previous Message Grzegorz Jaśkiewicz 2008-10-19 14:18:36 Re: cost variable into function