From: Daniel Bruce Lynes <dlynes@shaw.ca>
To: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Stored Procedures and compiling
Date: Sat, 08 Mar 2003 10:34:01 -0800
Message-ID: <200303081034.01935.dlynes@shaw.ca> (raw)
In-Reply-To: <3240.1047093204@sss.pgh.pa.us>
References: <200303071321.09981.dlynes@shaw.ca>
<3240.1047093204@sss.pgh.pa.us>
On Friday 07 March 2003 19:13, Tom Lane wrote:
> What exactly do you consider "compiling", and why do you think that
> whatever Oracle does (which you didn't bother to explain) is superior
> to what plpgsql does?
When you run a script to place a stored procedure into Oracle, it checks the
entire script to ensure that there are no syntax errors in both the
procedural code and the SQL code. However, with PostgreSQL, if there are
errors in the code, I usually don't find out about it until I reach that
branch in the logic upon execution of the stored procedure from client code.
As I understand it, Oracle also compiles the stored procedure into pcode
(internally), the first time it is called so that it runs faster. You can
compile stored procedures into pcode manually also, and store the pcode in
the database, rather than the pl/sql code.
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-performance@postgresql.org
Cc: dlynes@shaw.ca
Subject: Re: Stored Procedures and compiling
In-Reply-To: <200303081034.01935.dlynes@shaw.ca>
References: <200303071321.09981.dlynes@shaw.ca> <3240.1047093204@sss.pgh.pa.us> <200303081034.01935.dlynes@shaw.ca>
* 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