X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id EA53FD1B4EC for ; Wed, 24 Sep 2003 15:43:22 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 64319-04 for ; Wed, 24 Sep 2003 12:42:52 -0300 (ADT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id 80E88D1B4E2 for ; Wed, 24 Sep 2003 12:42:36 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 1A2Bmj-000O1U-0U; Wed, 24 Sep 2003 16:42:35 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 4D11D1691E; Wed, 24 Sep 2003 16:42:18 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 8772D168A3; Wed, 24 Sep 2003 16:42:17 +0100 (BST) From: Richard Huxton To: Miklos Keresztes , pgsql-sql@postgresql.org Subject: Re: using plpgsql outside of functions Date: Wed, 24 Sep 2003 16:42:16 +0100 User-Agent: KMail/1.5 References: <20030924152200.37165.qmail@web40210.mail.yahoo.com> In-Reply-To: <20030924152200.37165.qmail@web40210.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309241642.16845.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/281 X-Sequence-Number: 15259 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