pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Johnny Jørgensen" <pgsql@halfahead.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: PL/pgSQL loops?
Date: Wed, 28 Nov 2001 11:49:07 -0500
Message-ID: <2637.1006966147@sss.pgh.pa.us> (raw)
In-Reply-To: <200111281540250450.0093EFC2@mail.halfahead.dk>
References: <200111281325520802.0018C1FB@mail.halfahead.dk>
	<200111281540250450.0093EFC2@mail.halfahead.dk>

=?ISO-8859-1?Q?=22Johnny_J=F8rgensen=22?= <pgsql@halfahead.dk> writes:
> I have a problem with the following function:
> [snip]
> - counting my way through the thing, i gather that it's the last END LOOP; =
> that causes problems - but it's in every way similar to the inner loop?

I can't see anything wrong with it either.  What PG version are you
running?


> does compile mean "This is the first run, so I compile the thing" (to make =
> it possible to create interdependent functions), or does it mean "The funct=
> ion is called, so I compile it, in the current setting, and execute it"?

I've tried to clarify this in the docs for 7.2; see
http://candle.pha.pa.us/main/writings/pgsql/sgml/plpgsql.html#PLPGSQL-OVERVIEW

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <2637.1006966147@sss.pgh.pa.us>
Permalink:  ../2637.1006966147@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2637.1006966147@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql@halfahead.dk
  Subject: Re: PL/pgSQL loops?
  In-Reply-To: <2637.1006966147@sss.pgh.pa.us>

* 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