pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
plpgsql execution
2+ messages / 2 participants
[nested] [flat]

* plpgsql execution
@ 2003-07-25 06:07  Girish Bajaj <gbajaj@tietronix.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Girish Bajaj @ 2003-07-25 06:07 UTC (permalink / raw)
  To: pgsql-admin

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

 

 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: plpgsql execution
@ 2003-07-25 15:40  Stephan Szabo <sszabo@megazone.bigpanda.com>
  parent: Girish Bajaj <gbajaj@tietronix.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Stephan Szabo @ 2003-07-25 15:40 UTC (permalink / raw)
  To: Girish Bajaj <gbajaj@tietronix.com>; +Cc: pgsql-admin

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?




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-07-25 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-25 06:07 plpgsql execution Girish Bajaj <gbajaj@tietronix.com>
2003-07-25 15:40 ` Stephan Szabo <sszabo@megazone.bigpanda.com>

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