X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 25E4AD1C92D for ; Fri, 25 Jul 2003 06:07:54 +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 13839-03 for ; Fri, 25 Jul 2003 03:07:07 -0300 (ADT) Received: from hermes.tietronix.com (hermes.tietronix.com [216.138.125.222]) by svr1.postgresql.org (Postfix) with ESMTP id AB520D1C92B for ; Fri, 25 Jul 2003 03:07:51 -0300 (ADT) Received: from jabba [66.139.15.154] by hermes.tietronix.com with ESMTP (SMTPD32-8.00) id A6C3CE50068; Fri, 25 Jul 2003 00:57:23 -0500 From: "Girish Bajaj" To: Subject: plpgsql execution Date: Fri, 25 Jul 2003 01:07:02 -0500 Message-ID: <002301c35272$f773d9e0$7764a8c0@tietronix.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0024_01C35249.0E9DD1E0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.3 tagged_above=0.0 required=5.0 tests=HTML_60_70, RCVD_IN_NJABL, SMTPD_IN_RCVD, X_NJABL_OPEN_PROXY X-Spam-Level: ** X-Archive-Number: 200307/257 X-Sequence-Number: 9597 This is a multi-part message in MIME format. ------=_NextPart_000_0024_01C35249.0E9DD1E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0024_01C35249.0E9DD1E0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Is there any way I can run the following code in the que= ry 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 execut= e it for me?

 

Thanks,

Girish

 

 

------=_NextPart_000_0024_01C35249.0E9DD1E0--