pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Girish Bajaj <gbajaj@tietronix.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: plpgsql execution
Date: Fri, 25 Jul 2003 08:40:59 -0700 (PDT)
Message-ID: <20030725084030.U31713-100000@megazone.bigpanda.com> (raw)
In-Reply-To: <002301c35272$f773d9e0$7764a8c0@tietronix.com>

On Fri, 25 Jul 2003, Girish Bajaj wrote:

> Is there any way I can run the following code in the query executer without
> creating a function for it?

Not that I know of.

>
> FOR i IN 1..100 LOOP
>
> PERFORM time_delay(1);
>
> insert into worklist(startid, endid, cellid, campaignid, status, claim,
> flastjob) values(1,2,3,4,5,\'mju\',CAST(1 as BIT));
>
> END LOOP;
>
>
>
> The language is PLPGSQL. And I really don't want to write a function to
> execute it. Can the query executer automatically execute it for me?




view thread (2+ messages)

Message-ID: <20030725084030.U31713-100000@megazone.bigpanda.com>
Permalink:  ../20030725084030.U31713-100000@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20030725084030.U31713-100000@megazone.bigpanda.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 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-admin@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, gbajaj@tietronix.com
  Subject: Re: plpgsql execution
  In-Reply-To: <20030725084030.U31713-100000@megazone.bigpanda.com>
  References: <002301c35272$f773d9e0$7764a8c0@tietronix.com> <20030725084030.U31713-100000@megazone.bigpanda.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