pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aasmund Midttun Godal <postgresql@envisity.com>
To: roland@astrofoto.org
Cc: pgsql-docs@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] PL/pgSQL examples NOT involving functions
Date: Mon, 19 Nov 2001 13:51:17 GMT
Message-ID: <20011119135117.16760.qmail@ns.krot.org> (raw)
In-Reply-To: <m2pu6fjtv2.fsf@kuiper.rlent.pnet>
References: <m2adxoget3.fsf@tycho.rlent.pnet>
	<20011115215049.14167.qmail@ns.krot.org>
	<m2pu6fjtv2.fsf@kuiper.rlent.pnet>

On 18 Nov 2001 22:57:05 -0500, Roland Roberts <roland@astrofoto.org> wrote:
> 
>     Aasmund> Well, to the best of my knowledge your question is a
>     Aasmund> contradiction in terms: plpgsql is a procedural language
>     Aasmund> to use it you must create a stored procedure or
>     Aasmund> function...
> 
> Coming from an Oracle background, perhaps I don't see it the same
> way.  To merely *call* a PL/SQL procedure, I have to do something like
> 
>     BEGIN
>         MYPROC (a, b, c)
>     END;
> 
> So I *could* create a pl/pgsql function and call it like that, but
> since pl/pgsql procedures aren't compiled I wondered if I could do it
> inline.
I do believe they are compiled.
> 
>     Aasmund> However you are probably able to do many of the things
>     Aasmund> you may want with plain old SQL look it up in the docs
>     Aasmund> especially the case structure.
> 
> Thanks for this suggestion; I'll have a look at the case structure....
> 
> roland
> -- 
> 		       PGP Key ID: 66 BC 3B CD
> Roland B. Roberts, PhD                             RL Enterprises
> roland@rlenter.com                     76-15 113th Street, Apt 3B
> roland@astrofoto.org                       Forest Hills, NY 11375
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Aasmund Midttun Godal

aasmund@godal.com - http://www.godal.com/
+47 40 45 20 46



view thread (21+ messages)  latest in thread

Message-ID: <20011119135117.16760.qmail@ns.krot.org>
Permalink:  ../20011119135117.16760.qmail@ns.krot.org/
Also on:    postgresql.org/message-id/20011119135117.16760.qmail@ns.krot.org

 · 

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-docs@postgresql.org
  Cc: postgresql@envisity.com, roland@astrofoto.org, pgsql-sql@postgresql.org
  Subject: Re: [SQL] PL/pgSQL examples NOT involving functions
  In-Reply-To: <20011119135117.16760.qmail@ns.krot.org>

* 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