From: Kris Kiger <kris@musicrebellion.com>
To: pgsql-admin@postgresql.org
Subject: Functions in postgres
Date: Thu, 01 May 2003 17:20:02 -0500
Message-ID: <3EB19D92.6050400@musicrebellion.com> (raw)
References: <3EA98DEE.AB4F960D@webhart.net>
Hey all, here's a question that I think can be easily answered by those
of you with more experience than I. What are the
advantages/disadvantages of using a function with postgres as opposed to
putting all of the SQL in an external file (a web page for example)?
The only advantages that I can see is that if you want to isolate an
entire process or want to associate a trigger with it, you can. Also, I
suppose it could cut down on a bit of network traffic by sending only
the needed variables rather than the entire query. Aside from this
however, does it offer any kind of performance increase (ie stored query
plan, pre-compiled, etc)? Thanks for the insite
Kris
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-admin@postgresql.org
Cc: kris@musicrebellion.com
Subject: Re: Functions in postgres
In-Reply-To: <3EB19D92.6050400@musicrebellion.com>
References: <3EA98DEE.AB4F960D@webhart.net> <3EB19D92.6050400@musicrebellion.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