pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Mitchell <marcm@eisolution.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Multiple SQL statements within a function...
Date: Wed, 31 Jul 2002 15:21:05 -0500
Message-ID: <00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.com> (raw)
References: <A799F7647794D311924A005004ACEA97080DDEF2@cprodamibs249.prodam>
	<1028144000.25315.52.camel@linda>

If you have multiple SQL statements within a single SQL or PL/PGSQL
function, are they automatically treated as a single multi-statement
transaction or does this require you to put BEGIN/COMMIT statements within
your function which itself would require you to be cognoscente of the
transactional state of your current database session.

Am assume the MST is implicit but have been looking for answer in online
docs and have  been unable to confirm one way or the other.  Can anyone
sight a documentation reference?

Thanks,

Marc Mitchell
Enterprise Information Solutions, Inc.
marcm@eisolution.com





view thread (4+ messages)  latest in thread

Message-ID: <00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.com>
Permalink:  ../00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.com/
Also on:    postgresql.org/message-id/00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.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: marcm@eisolution.com
  Subject: Re: Multiple SQL statements within a function...
  In-Reply-To: <00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.com>
  References: <A799F7647794D311924A005004ACEA97080DDEF2@cprodamibs249.prodam> <1028144000.25315.52.camel@linda> <00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.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