Re: [GENERAL] Nested transactions

2009-10-12 Thread Scott Marlowe
On Mon, Oct 12, 2009 at 5:18 PM, Bill Todd wrote: > Scott Marlowe wrote: > > On Sun, Oct 11, 2009 at 8:41 PM, Bill Todd wrote: > > > Does PostgreSQL support nested transactions as shown below? > > BEGIN; >  ...do some stuff... >  BEGIN; >   ...more stuff... >  COMMIT; > COMMIT; > > > Postgresql u

Re: [GENERAL] Nested transactions

2009-10-12 Thread Alvaro Herrera
Jeff Davis escribió: > On Mon, 2009-10-12 at 16:18 -0700, Bill Todd wrote: > > Savepoints do not provide the same functionality as nested or parallel > > transactions because you cannot commit a savepoint. > > What does it mean to "commit" a subtransaction or savepoint? What can > you do with a su

Re: [GENERAL] Nested transactions

2009-10-12 Thread Jeff Davis
On Mon, 2009-10-12 at 16:18 -0700, Bill Todd wrote: > Savepoints do not provide the same functionality as nested or parallel > transactions because you cannot commit a savepoint. What does it mean to "commit" a subtransaction or savepoint? What can you do with a subtransaction that you can't do wi

Re: [GENERAL] Nested transactions

2009-10-12 Thread Bill Todd
Scott Marlowe wrote: On Sun, Oct 11, 2009 at 8:41 PM, Bill Todd wrote: Does PostgreSQL support nested transactions as shown below? BEGIN; ...do some stuff... BEGIN; ...more stuff... COMMIT; COMMIT; Postgresql uses savepoints. Savepoints do not provide the same functionality

Re: [GENERAL] Nested transactions

2009-10-12 Thread David Fetter
On Sun, Oct 11, 2009 at 07:41:54PM -0700, Bill Todd wrote: > Does PostgreSQL support nested transactions as shown below? > > BEGIN; > ...do some stuff... > BEGIN; >...more stuff... > COMMIT; > COMMIT; It depends what you want to have happen when the outer transaction rolls back. If you wan

Re: [GENERAL] Nested transactions

2009-10-11 Thread John R Pierce
Bill Todd wrote: Does PostgreSQL support nested transactions as shown below? BEGIN; ...do some stuff... BEGIN; ...more stuff... COMMIT; COMMIT; no, but in recent versiosn, you can use SAVEPOINT to achieve much the same effect. http://www.postgresql.org/docs/current/static/sql-savepoi

Re: [GENERAL] Nested transactions

2009-10-11 Thread Scott Marlowe
On Sun, Oct 11, 2009 at 8:41 PM, Bill Todd wrote: > Does PostgreSQL support nested transactions as shown below? > > BEGIN; >  ...do some stuff... >  BEGIN; >   ...more stuff... >  COMMIT; > COMMIT; Postgresql uses savepoints. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org)

[GENERAL] Nested transactions

2009-10-11 Thread Bill Todd
Does PostgreSQL support nested transactions as shown below? BEGIN; ...do some stuff... BEGIN; ...more stuff... COMMIT; COMMIT; Bill -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Nested Transactions in PL/pgSQL

2007-07-10 Thread Nykolyn, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alvaro Herrera Sent: Friday, July 06, 2007 9:49 AM To: Nykolyn, Andrew Cc: John DeSoi; pgsql-general@postgresql.org Subject: Re: [GENERAL] Nested Transactions in PL/pgSQL Nykolyn, Andrew wrote: > My r

Re: [GENERAL] Nested Transactions in PL/pgSQL

2007-07-06 Thread Alvaro Herrera
Nykolyn, Andrew wrote: > My real issue is not that I need subtransactions but I need to flush the > buffer so that I can regain memory for my stored procedure to complete > without getting a memory error. Please don't top-post. Normal operation does not "fill buffers", thus they don't need any fl

Re: [GENERAL] Nested Transactions in PL/pgSQL

2007-07-06 Thread Nykolyn, Andrew
DeSoi Cc: Nykolyn, Andrew; pgsql-general@postgresql.org Subject: Re: [GENERAL] Nested Transactions in PL/pgSQL John DeSoi wrote: > > On Jul 5, 2007, at 1:34 PM, Nykolyn, Andrew wrote: > > >Is it possible to nest transactions within a stored procedure? I > >have a stored

Re: [GENERAL] Nested Transactions in PL/pgSQL

2007-07-05 Thread Alvaro Herrera
John DeSoi wrote: > > On Jul 5, 2007, at 1:34 PM, Nykolyn, Andrew wrote: > > >Is it possible to nest transactions within a stored procedure? I > >have a stored procedure that calls many other stored procedures and > >what happens it that after a certain amount of time the server runs > >ou

Re: [GENERAL] Nested Transactions in PL/pgSQL

2007-07-05 Thread John DeSoi
On Jul 5, 2007, at 1:34 PM, Nykolyn, Andrew wrote: Is it possible to nest transactions within a stored procedure? I have a stored procedure that calls many other stored procedures and what happens it that after a certain amount of time the server runs out of shared memory. I know I can i

[GENERAL] Nested Transactions in PL/pgSQL

2007-07-05 Thread Nykolyn, Andrew
Is it possible to nest transactions within a stored procedure? I have a stored procedure that calls many other stored procedures and what happens it that after a certain amount of time the server runs out of shared memory. I know I can increase the PostgreSQL shared memory. However, that would be

Re: [GENERAL] Nested Transactions in 7.5??

2003-12-26 Thread Tom Lane
Jim Rosenberg <[EMAIL PROTECTED]> writes: > How realistic is it to expect nested transactions to make it into > PostgreSQL 7.5? I wouldn't hold my breath. It's a complex problem. regards, tom lane ---(end of broadcast)---

Re: [GENERAL] nested transactions

2000-07-25 Thread ryan
Gilles DAROLD wrote: > > jprem wrote: > > > hello , > >postgreqsl 6.5.3 does not support nested transactions. > > so i don't think it will be suitable for e-com application.isn't it ? > > does postgreqsl 7.0 support nested transacions ? is postgresql 7.0 a > > stable version ? > >

Re: [GENERAL] nested transactions

2000-07-25 Thread Gilles DAROLD
jprem wrote: > hello , >postgreqsl 6.5.3 does not support nested transactions. > so i don't think it will be suitable for e-com application.isn't it ? > does postgreqsl 7.0 support nested transacions ? is postgresql 7.0 a > stable version ? Hi, I have around 4000 online shop runnin

Re: [GENERAL] Nested transactions

2000-07-02 Thread Peter Eisentraut
On Mon, 26 Jun 2000, Andrea Aime wrote: > does postgres support nested transactions? No. -- Peter Eisentraut Sernanders väg 10:115 [EMAIL PROTECTED] 75262 Uppsala http://yi.org/peter-e/Sweden