Received: from tidal.ipinc.com (tidal.ipinc.com [199.245.188.85]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3KNw5318288; Fri, 20 Apr 2001 19:58:05 -0400 (EDT) (envelope-from jliang@tidal.ipinc.com) Received: from localhost (jliang@localhost) by tidal.ipinc.com (8.9.3/8.9.3) with ESMTP id QAA99503; Fri, 20 Apr 2001 16:58:02 -0700 (PDT) (envelope-from jliang@tidal.ipinc.com) Date: Fri, 20 Apr 2001 16:58:02 -0700 (PDT) From: Jie Liang To: pgsql-sql@postgresql.org, pgsql-hacker@postgresql.org Subject: plpgsql Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200104/345 X-Sequence-Number: 2703 I 've a question about begin...end in plpgsql does sql stmts in begin .... end; will go one transaction? i.e. begin...end have same meaning as sql stmts BEGIN...COMMIT?? if failed, transaction abort? if select..for update is used then another update stmt will wait on the same rows?? if begin...end in plpgsql connot have same functionality as sql, how can I ensure my sql stmts go one transaction?? thanks. Jie LIANG St. Bernard Software 10350 Science Center Drive Suite 100, San Diego, CA 92121 Office:(858)320-4873 jliang@ipinc.com www.stbernard.com www.ipinc.com