pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Miklos Keresztes <keresztes_m@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: using plpgsql outside of functions
Date: Wed, 24 Sep 2003 16:42:16 +0100
Message-ID: <200309241642.16845.dev@archonet.com> (raw)
In-Reply-To: <20030924152200.37165.qmail@web40210.mail.yahoo.com>
References: <20030924152200.37165.qmail@web40210.mail.yahoo.com>

On Wednesday 24 September 2003 16:22, Miklos Keresztes wrote:
> Hello,
> Is any way to use the plpgsql outside of functions? I
> want to create a SQL script file using plpgsql for use
> with pgAdmin query window.

No - plpgsql will only be parsed as the body of a function. You can always 
create the function, call it, then drop the function.
-- 
  Richard Huxton
  Archonet Ltd



view thread (2+ messages)

Message-ID: <200309241642.16845.dev@archonet.com>
Permalink:  ../200309241642.16845.dev@archonet.com/
Also on:    postgresql.org/message-id/200309241642.16845.dev@archonet.com

 · 

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: dev@archonet.com, keresztes_m@yahoo.com
  Subject: Re: using plpgsql outside of functions
  In-Reply-To: <200309241642.16845.dev@archonet.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