pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Girish Bajaj <gbajaj@tietronix.com>
To: pgsql-admin@postgresql.org
Subject: plpgsql execution
Date: Fri, 25 Jul 2003 01:07:02 -0500
Message-ID: <002301c35272$f773d9e0$7764a8c0@tietronix.com> (raw)

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

 

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?

 

Thanks,

Girish

 

 

view thread (2+ messages)  latest in thread

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