pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Nested BEGIN...COMMIT transactions
2+ messages / 2 participants
[nested] [flat]

* Nested BEGIN...COMMIT transactions
@ 2000-02-27 02:29 mpg4@duluoz.net
  2000-02-27 23:54 ` Re: [SQL] Nested BEGIN...COMMIT transactions Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: mpg4@duluoz.net @ 2000-02-27 02:29 UTC (permalink / raw)
  To: pgsql-sql

All-

   What's the behavior of nested sets of BEGIN ... COMMIT blocks?  I'd
like to call some scripts containing their own their own transaction
blocks inside of of other scripts that have their own transaction
blocks.  Are the blocks nested, or will one COMMIT or ROLLBACK affect
all of my BEGIN's simultaneously?

-mike


-- 

   I never thought it would end like this,
   dumped because I've got no tits.
   -- Reel Big Fish, "She Has a Girlfriend Now"

GnuPG key available at http://devel.duluoz.net/pubkey.asc
Key ID = 1024D/9A256AE5 1999-11-13 Mike Glover <mpg4@duluoz.net>
Key fingerprint = EF6E 8BCB 4810 E98C F0FD  4596 367A 32B7 9A25 6AE5




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

* Re: [SQL] Nested BEGIN...COMMIT transactions
  2000-02-27 02:29 Nested BEGIN...COMMIT transactions mpg4@duluoz.net
@ 2000-02-27 23:54 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2000-02-27 23:54 UTC (permalink / raw)
  To: mpg4@duluoz.net; +Cc: pgsql-sql

mpg4@duluoz.net writes:

> What's the behavior of nested sets of BEGIN ... COMMIT blocks? 

You can't nest them. (Second BEGIN will fail.)


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden





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


end of thread, other threads:[~2000-02-27 23:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-02-27 02:29 Nested BEGIN...COMMIT transactions mpg4@duluoz.net
2000-02-27 23:54 ` Peter Eisentraut <peter_e@gmx.net>

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