pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: KuroiNeko <evpopkov@carrier.kiev.ua>
To: pgsql-sql@postgresql.org
Subject: Re: Re: Requests for Development
Date: Fri, 17 Nov 2000 16:17:20 +0000
Message-ID: <3A155A10.nail2CB11FQLK@ed.ed> (raw)
References: <200011151020.FAA01573@jupiter.jw.home>

>     PL/pgSQL parses the entire function body at first call (per
>     backend). But the SPI querystrings for all the statements
>     aren't parsed at that time. It uses SPI_prepare() only for
>     expressions and queries that actually get executed, so that a
>     huge function that is called only once in a backend, erroring
>     out at the first IF, will not parse most of it's queries.
>     This is surely a win for performance, but it makes it
>     difficult to develop.

 Thanks  for the  explanation.  Although,  I can't  see  how this  improves
performance, I'll keep this in my mind when designing PL/PGSQL SPs.


--

 Sniper's rifle is an extension of his eye. He kills with his injurious vision.

 JM




view thread (15+ messages)  latest in thread

Message-ID: <3A155A10.nail2CB11FQLK@ed.ed>
Permalink:  ../3A155A10.nail2CB11FQLK@ed.ed/
Also on:    postgresql.org/message-id/3A155A10.nail2CB11FQLK@ed.ed

 · 

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 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-sql@postgresql.org
  Cc: evpopkov@carrier.kiev.ua
  Subject: Re: Requests for Development
  In-Reply-To: <3A155A10.nail2CB11FQLK@ed.ed>
  References: <200011151020.FAA01573@jupiter.jw.home> <3A155A10.nail2CB11FQLK@ed.ed>

* 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