pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Transactions and savepoints
11+ messages / 5 participants
[nested] [flat]

* Transactions and savepoints
@ 2005-03-26 09:54  Marko Ristola <marko.ristola@kolumbus.fi>
  0 siblings, 1 reply; 11+ messages in thread

From: Marko Ristola @ 2005-03-26 09:54 UTC (permalink / raw)
  To: pgsql-odbc



Hello.

I have been thinking about savepoints.

What do you think about the following:

Create transaction.h and transaction.c.

They would keep the knoledge about the following things:
- Current transaction state (is in autocommit mode, in transaction,
  and the savepoint stack structure.
- Each transaction stack point would maintain a list of open cursors.

The stack would contain the following things:
- At the bottom of the stack is the autocommit mode (tr[0]).
- tr[1] contains the transaction's BEGIN block state.
- tr[2] contains the information about the first savepoint.

This would make the savepoint rollback work with cursors:

ODBC side manages the open cursors during savepoint rollback.
Rolling back a savepoint destroys that savepoint's and the later savepoint's
cursors.  ODBC must not try to close the cursor after rollback,
or a database error occurs.

What do you think? Is this transaction state tracking necessary in the
ODBC side? Or does or will the database backend handle this some day
some way?

Marko Ristola




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

* Re: Transactions and savepoints
@ 2005-03-30 18:11  Peter Eisentraut <peter_e@gmx.net>
  parent: Marko Ristola <marko.ristola@kolumbus.fi>
  0 siblings, 1 reply; 11+ messages in thread

From: Peter Eisentraut @ 2005-03-30 18:11 UTC (permalink / raw)
  To: Marko Ristola <marko.ristola@kolumbus.fi>; +Cc: pgsql-odbc

Marko Ristola wrote:
> I have been thinking about savepoints.
> What do you think about the following:

The interface and behavior of the ODBC driver is bound by various public 
standards such as the SQL standard and the Microsoft ODBC 
pseudostandard.  So any new functionality should be based on either of 
these sources.  Does that apply to your proposal?

> They would keep the knoledge about the following things:
> - Current transaction state (is in autocommit mode, in transaction,
>   and the savepoint stack structure.

This information is available on the protocol level and does not to be 
tracked.

> This would make the savepoint rollback work with cursors:

I'm not exactly up to speed on how savepoints interact with cursors 
nowadays.  Perhaps you could first explain what problem you are trying 
to solve?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



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

* Re: Transactions and savepoints
@ 2005-03-30 19:22  Marko Ristola <marko.ristola@kolumbus.fi>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 11+ messages in thread

From: Marko Ristola @ 2005-03-30 19:22 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-odbc

The needed new feature, the savepoint, is implemented
into PostgreSQL 8.0.1.

Tom Zschockelt asked about his savepoint problem
from this list at February 15 this year.
Savepoints are a new great feature in 8.0.

PostgreSQL savepoints are almost equal with a
SQL standard. sql-savepoint.html tells one difference below.

Here are the PostgreSQL documents:

http://www.postgresql.org/docs/8.0/static/sql-savepoint.html
http://www.postgresql.org/docs/8.0/static/sql-release-savepoint.html
http://www.postgresql.org/docs/8.0/static/sql-rollback-to.html

I tested the savepoint a few days back.
Savepoint creation worked, but the following
command failed:
ROLLBACK TO SAVEPOINT my_savepoint;
This failed, because in CC_send_query sees the first ROLLBACK word,
but does not distinquishe between a savepoint rollback and
a transaction rollback.

I found also, that savepoint rollback closes the failed savepoint's cursors.

So here is the cursor problem (with psql):
marko=# begin;
BEGIN
marko=# savepoint aabb;
SAVEPOINT
marko=# declare cc cursor for select * from test1;
DECLARE CURSOR
marko=# rollback to aabb;
ROLLBACK
marko=# close cc;
ERROR:  cursor "cc" does not exist
ERROR:  cursor "cc" does not exist
marko=# select * from test1;
ERROR:  current transaction is aborted, commands ignored until end of 
transaction block
ERROR:  current transaction is aborted, commands ignored until end of 
transaction block
marko=# rollback;
ROLLBACK


So, with open select cursors the ODBC driver does not know
that the backend just closed a cursor with the rollback.
If the ODBC driver tries to close an already closed cursor,
thus making the outer transaction context fail (the case above).

So we need the Transaction* object or something,
to implement the stack for savepoint tracking and to keep track,
in which context each cursor has been created.

Maybe we could get some support from the backend in
PostgreSQL 8.1, and forget the backend state tracking completely?
A needed message might be a notification from the backend
about every closed cursor during savepoint rollback and savepoint commit.

Marko Ristola


Peter Eisentraut wrote:

>Marko Ristola wrote:
>  
>
>>I have been thinking about savepoints.
>>What do you think about the following:
>>    
>>
>
>The interface and behavior of the ODBC driver is bound by various public 
>standards such as the SQL standard and the Microsoft ODBC 
>pseudostandard.  So any new functionality should be based on either of 
>these sources.  Does that apply to your proposal?
>
>  
>
>>They would keep the knoledge about the following things:
>>- Current transaction state (is in autocommit mode, in transaction,
>>  and the savepoint stack structure.
>>    
>>
>
>This information is available on the protocol level and does not to be 
>tracked.
>
>  
>
>>This would make the savepoint rollback work with cursors:
>>    
>>
>
>I'm not exactly up to speed on how savepoints interact with cursors 
>nowadays.  Perhaps you could first explain what problem you are trying 
>to solve?
>
>  
>




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

* Transactions and SavePoints
@ 2005-08-30 20:24  Cleber Nardelli <clebernardelli@gmail.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Cleber Nardelli @ 2005-08-30 20:24 UTC (permalink / raw)
  To: pgsql-odbc

Hello.
I am using the Driver odbc for access to postgresql.  
I have a referring problem to the cancellation of the transaction when
some error
is found at the moment of the execution of the same one.  
I try to execute this sql command:  

BEGIN TRANSACTION;
  DELETE FROM TABL1 WHERE ID = 1;
  INSERT INTO TABL1 VALUES (1,1);
  SAVEPOINT SVPT;
  INSERT INTO TABL1 VALUES (1,1);
  ROLLBACK TO SAVEPOINT SPVT;
COMMIT;

When I try to insert as register it accuses to error with key duplicate.  Ok.  
But I do not want to cancel the transaction I I need to only continue
with the same one skirting this error.  For this reason I am using
SavePoints but it generates the error:
"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"

Necessary of the your help.  
I thank 

Yours truly

-- 
Cleber Nardelli



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

* Re: Transactions and SavePoints
@ 2005-08-31 11:57  Carlos Henrique Reimer <carlosreimer@yahoo.com.br>
  0 siblings, 1 reply; 11+ messages in thread

From: Carlos Henrique Reimer @ 2005-08-31 11:57 UTC (permalink / raw)
  To: pgsql-odbc

Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
 
Marko Ristola wrote:
> Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
>
>
>ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
>implementation is hard to make correctly for psqlodbc, at least for me.
>
>Marko Ristola
>
>>Cleber Nardelli wrote:
>>
>>
>>Hello.
>>I am using the Driver odbc for access to postgresql. I have a referring problem to the cancellation of the transaction when
>>some error
>>is found at the moment of the execution of the same one. I try to execute this sql command: 
>>
>>
>>BEGIN TRANSACTION;
>> DELETE FROM TABL1 WHERE ID = 1;
>> INSERT INTO TABL1 VALUES (1,1);
>> SAVEPOINT SVPT;
>> INSERT INTO TABL1 VALUES (1,1);
>> ROLLBACK TO SAVEPOINT SPVT;
>>COMMIT;
>>
>>When I try to insert as register it accuses to error with key duplicate. Ok. But I do not want to cancel the transaction I I need to only continue
>>with the same one skirting this error. For this reason I am using
>>SavePoints but it generates the error:
>>"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"
>>
>>Necessary of the your help. I thank 
>>
>>Yours truly
>>

		
---------------------------------
Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora!

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

* Re: Transactions and SavePoints
@ 2005-08-31 16:30  Marko Ristola <marko.ristola@kolumbus.fi>
  parent: Carlos Henrique Reimer <carlosreimer@yahoo.com.br>
  0 siblings, 1 reply; 11+ messages in thread

From: Marko Ristola @ 2005-08-31 16:30 UTC (permalink / raw)
  To: ; +Cc: pgsql-odbc


Hi

I tried to write SAVEPOINT SQL support into PsqlODBC in Summer.

I was able to implement some suport for savepoint creation, savepoint
rollback and savepoint RELEASE.

I didn't understand, how the query results should behave at savepoint
rollbacks.

You can find more information about my thoughts about savepoint
implementation on this list ealier this year, or with Google.

Main design issue was, that SAVEPOINT tracking must be implemented
into PSQLODBC.

That's what I implemented:
- Linked list of all defined savepoints.
- Maintain the list during SAVEPOINT maintenance functions.

Savepoint command parsing speed was 600000 commands per second,
that I wrote (UTF-8). With UCS-4 , without a state machine, it was
300000 commands per second. The subsystem's speed was okay.

I implemented a full PostgreSQL SQL SAVEPOINT support with
the Bison/Flex parser, because it is easy, but that part is
not at all easy to integrate into an existing PsqlODBC driver.

Are you interested in a patch for the mergeable part of the savepoint 
support?

Regards,
Marko Ristola

Carlos Henrique Reimer wrote:

> Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
>  
> Marko Ristola wrote:
> > Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
> >
> >
> >ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
> >implementation is hard to make correctly for psqlodbc, at least for me.
> >
> >Marko Ristola
> >
> >>Cleber Nardelli wrote:
> >>
> >>
> >>Hello.
> >>I am using the Driver odbc for access to postgresql. I have a 
> referring problem to the cancellation of the transaction when
> >>some error
> >>is found at the moment of the execution of the same one. I try to 
> execute this sql command:
> >>
> >>
> >>BEGIN TRANSACTION;
> >> DELETE FROM TABL1 WHERE ID = 1;
> >> INSERT INTO TABL1 VALUES (1,1);
> >> SAVEPOINT SVPT;
> >> INSERT INTO TABL1 VALUES (1,1);
> >> ROLLBACK TO SAVEPOINT SPVT;
> >>COMMIT;
> >>
> >>When I try to insert as register it accuses to error with key 
> duplicate. Ok. But I do not want to cancel the transaction I I need to 
> only continue
> >>with the same one skirting this error. For this reason I am using
> >>SavePoints but it generates the error:
> >>"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"
> >>
> >>Necessary of the your help. I thank
> >>
> >>Yours truly
> >>
>
> ------------------------------------------------------------------------
> Yahoo! Acesso Grátis 
> <%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;: 
> Internet rápida e grátis. Instale o discador agora! 
> <%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/; 





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

* Re: Transactions and SavePoints
@ 2005-08-31 17:04  Cleber Nardelli <clebernardelli@gmail.com>
  parent: Marko Ristola <marko.ristola@kolumbus.fi>
  0 siblings, 1 reply; 11+ messages in thread

From: Cleber Nardelli @ 2005-08-31 17:04 UTC (permalink / raw)
  To: Marko Ristola <marko.ristola@kolumbus.fi>; +Cc: pgsql-odbc

Marko, debtor for the aid that you have given me.  

My problem in the truth nor is SAVEPOINT and ROLLBACK You the SAVEPOINT.  

My problem is that when an error is generated during the execution of
commands inside of a transaction driver automatically it makes a
ROLLBACK of all the executed commands until then and ai I do not
obtain to execute the ROLLBACK You the SAVEPOINT therefore the block
of the transaction already does not exist more.

Yours truly Cleber

2005/8/31, Marko Ristola <marko.ristola@kolumbus.fi>:
> 
> Hi
> 
> I tried to write SAVEPOINT SQL support into PsqlODBC in Summer.
> 
> I was able to implement some suport for savepoint creation, savepoint
> rollback and savepoint RELEASE.
> 
> I didn't understand, how the query results should behave at savepoint
> rollbacks.
> 
> You can find more information about my thoughts about savepoint
> implementation on this list ealier this year, or with Google.
> 
> Main design issue was, that SAVEPOINT tracking must be implemented
> into PSQLODBC.
> 
> That's what I implemented:
> - Linked list of all defined savepoints.
> - Maintain the list during SAVEPOINT maintenance functions.
> 
> Savepoint command parsing speed was 600000 commands per second,
> that I wrote (UTF-8). With UCS-4 , without a state machine, it was
> 300000 commands per second. The subsystem's speed was okay.
> 
> I implemented a full PostgreSQL SQL SAVEPOINT support with
> the Bison/Flex parser, because it is easy, but that part is
> not at all easy to integrate into an existing PsqlODBC driver.
> 
> Are you interested in a patch for the mergeable part of the savepoint
> support?
> 
> Regards,
> Marko Ristola
> 
> Carlos Henrique Reimer wrote:
> 
> > Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
> >
> > Marko Ristola wrote:
> > > Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
> > >
> > >
> > >ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
> > >implementation is hard to make correctly for psqlodbc, at least for me.
> > >
> > >Marko Ristola
> > >
> > >>Cleber Nardelli wrote:
> > >>
> > >>
> > >>Hello.
> > >>I am using the Driver odbc for access to postgresql. I have a
> > referring problem to the cancellation of the transaction when
> > >>some error
> > >>is found at the moment of the execution of the same one. I try to
> > execute this sql command:
> > >>
> > >>
> > >>BEGIN TRANSACTION;
> > >> DELETE FROM TABL1 WHERE ID = 1;
> > >> INSERT INTO TABL1 VALUES (1,1);
> > >> SAVEPOINT SVPT;
> > >> INSERT INTO TABL1 VALUES (1,1);
> > >> ROLLBACK TO SAVEPOINT SPVT;
> > >>COMMIT;
> > >>
> > >>When I try to insert as register it accuses to error with key
> > duplicate. Ok. But I do not want to cancel the transaction I I need to
> > only continue
> > >>with the same one skirting this error. For this reason I am using
> > >>SavePoints but it generates the error:
> > >>"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"
> > >>
> > >>Necessary of the your help. I thank
> > >>
> > >>Yours truly
> > >>
> >
> > ------------------------------------------------------------------------
> > Yahoo! Acesso Grátis
> > <%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;:
> > Internet rápida e grátis. Instale o discador agora!
> > <%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
> 
>               http://www.postgresql.org/docs/faq
> 


-- 
Cleber Nardelli
IPM Automação e Consultoria
9998-8670



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

* Re: Transactions and SavePoints
@ 2005-09-01 18:49  Marko Ristola <Marko.Ristola@kolumbus.fi>
  parent: Cleber Nardelli <clebernardelli@gmail.com>
  0 siblings, 1 reply; 11+ messages in thread

From: Marko Ristola @ 2005-09-01 18:49 UTC (permalink / raw)
  To: Cleber Nardelli <clebernardelli@gmail.com>; +Cc: pgsql-odbc



Unfortunately SAVEPOINT support has not been implemented
into psqlodbc driver yet.

So it doesn't work unfortunately.

However, if you have a possibility use the native PostgreSQL
libpq driver (not an ODBC driver) instead,
you can use fully featured savepoints.

Depending on your needs, you can even pay
somebody to implement the feature into psqlodbc. A good enough
implementation could be included into the driver.

I have a small part of an implementation, but that's not enough.

You described your problem: the ODBC driver does the rollback
for you, even though you don't want it.

The problem is just the ice berg of the lack of the
SAVEPOINT feature in the psqlodbc driver.


However, I know one easy solution into the problem, you found:

Get source code of the psqlodbc ODBC driver.

On file connection.c, C code function CC_send_query():

    else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0)
        CC_on_abort(self, NO_TRANS);

The above must be changed not to call CC_on_abort(self,NO_TRANS), if the
case
is "ROLLBACK TO SAVEPOINT name";
CC_on_abort(self,NO_TRANS); must be called on "ROLLBACK WORK"

NO_TRANS means, that the ODBC thinks, that there is no transaction in the
PostgreSQL server.

So you can get your problem away with:

    else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0 &&
(strnicmp(query,"ROLLBACK TO",11) != 0)
        CC_on_abort(self, NO_TRANS);

I used "query" argument, because cmdbuffer is "ROLLBACK", but query is
"ROLLBACK TO SAVEPOINT name".

Then you need to recompile the ODBC driver, and you don't have that
problem anymore.
ODBC debugging options help you to track further problems with savepoints.

With this, only a partial SAVEPOINT implementation can be achieved.
You might get well with SAVEPOINTs, if you don't use CURSORs,
because with them the problem becomes a lot harder, and the simple
fix from above won't work anymore.

Yours,
Marko Ristola

Cleber Nardelli wrote:

>Marko, debtor for the aid that you have given me.  
>
>My problem in the truth nor is SAVEPOINT and ROLLBACK You the SAVEPOINT.  
>
>My problem is that when an error is generated during the execution of
>commands inside of a transaction driver automatically it makes a
>ROLLBACK of all the executed commands until then and ai I do not
>obtain to execute the ROLLBACK You the SAVEPOINT therefore the block
>of the transaction already does not exist more.
>
>Yours truly Cleber
>
>2005/8/31, Marko Ristola <marko.ristola@kolumbus.fi>:
>  
>
>>Hi
>>
>>I tried to write SAVEPOINT SQL support into PsqlODBC in Summer.
>>
>>I was able to implement some suport for savepoint creation, savepoint
>>rollback and savepoint RELEASE.
>>
>>I didn't understand, how the query results should behave at savepoint
>>rollbacks.
>>
>>You can find more information about my thoughts about savepoint
>>implementation on this list ealier this year, or with Google.
>>
>>Main design issue was, that SAVEPOINT tracking must be implemented
>>into PSQLODBC.
>>
>>That's what I implemented:
>>- Linked list of all defined savepoints.
>>- Maintain the list during SAVEPOINT maintenance functions.
>>
>>Savepoint command parsing speed was 600000 commands per second,
>>that I wrote (UTF-8). With UCS-4 , without a state machine, it was
>>300000 commands per second. The subsystem's speed was okay.
>>
>>I implemented a full PostgreSQL SQL SAVEPOINT support with
>>the Bison/Flex parser, because it is easy, but that part is
>>not at all easy to integrate into an existing PsqlODBC driver.
>>
>>Are you interested in a patch for the mergeable part of the savepoint
>>support?
>>
>>Regards,
>>Marko Ristola
>>
>>Carlos Henrique Reimer wrote:
>>
>>    
>>
>>>Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
>>>
>>>Marko Ristola wrote:
>>>      
>>>
>>>>Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
>>>>
>>>>
>>>>ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
>>>>implementation is hard to make correctly for psqlodbc, at least for me.
>>>>
>>>>Marko Ristola
>>>>
>>>>        
>>>>
>>>>>Cleber Nardelli wrote:
>>>>>
>>>>>
>>>>>Hello.
>>>>>I am using the Driver odbc for access to postgresql. I have a
>>>>>          
>>>>>
>>>referring problem to the cancellation of the transaction when
>>>      
>>>
>>>>>some error
>>>>>is found at the moment of the execution of the same one. I try to
>>>>>          
>>>>>
>>>execute this sql command:
>>>      
>>>
>>>>>BEGIN TRANSACTION;
>>>>>DELETE FROM TABL1 WHERE ID = 1;
>>>>>INSERT INTO TABL1 VALUES (1,1);
>>>>>SAVEPOINT SVPT;
>>>>>INSERT INTO TABL1 VALUES (1,1);
>>>>>ROLLBACK TO SAVEPOINT SPVT;
>>>>>COMMIT;
>>>>>
>>>>>When I try to insert as register it accuses to error with key
>>>>>          
>>>>>
>>>duplicate. Ok. But I do not want to cancel the transaction I I need to
>>>only continue
>>>      
>>>
>>>>>with the same one skirting this error. For this reason I am using
>>>>>SavePoints but it generates the error:
>>>>>"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"
>>>>>
>>>>>Necessary of the your help. I thank
>>>>>
>>>>>Yours truly
>>>>>
>>>>>          
>>>>>
>>>------------------------------------------------------------------------
>>>Yahoo! Acesso Grátis
>>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;:
>>>Internet rápida e grátis. Instale o discador agora!
>>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;
>>>      
>>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 3: Have you checked our extensive FAQ?
>>
>>              http://www.postgresql.org/docs/faq
>>
>>    
>>
>
>
>  
>




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

* Re: Transactions and SavePoints
@ 2005-09-01 21:06  Cleber Nardelli <clebernardelli@gmail.com>
  parent: Marko Ristola <Marko.Ristola@kolumbus.fi>
  0 siblings, 1 reply; 11+ messages in thread

From: Cleber Nardelli @ 2005-09-01 21:06 UTC (permalink / raw)
  To: Marko Ristola <Marko.Ristola@kolumbus.fi>; +Cc: pgsql-odbc

Hi...  
Marko, debtor for the aid.  
Not wanting to ask for very, but it would like to lher to ask for of
the same skill..... I already I had given one looked at in the sources
of driver and more or less had identified the problem, ok, but it
happens that I I do not have much knowledge in C and I do not obtain
to compile driver, will be that you it could not make this for me?

In any obliged way 

Cleber

2005/9/1, Marko Ristola <Marko.Ristola@kolumbus.fi>:
> 
> 
> Unfortunately SAVEPOINT support has not been implemented
> into psqlodbc driver yet.
> 
> So it doesn't work unfortunately.
> 
> However, if you have a possibility use the native PostgreSQL
> libpq driver (not an ODBC driver) instead,
> you can use fully featured savepoints.
> 
> Depending on your needs, you can even pay
> somebody to implement the feature into psqlodbc. A good enough
> implementation could be included into the driver.
> 
> I have a small part of an implementation, but that's not enough.
> 
> You described your problem: the ODBC driver does the rollback
> for you, even though you don't want it.
> 
> The problem is just the ice berg of the lack of the
> SAVEPOINT feature in the psqlodbc driver.
> 
> 
> However, I know one easy solution into the problem, you found:
> 
> Get source code of the psqlodbc ODBC driver.
> 
> On file connection.c, C code function CC_send_query():
> 
>    else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0)
>        CC_on_abort(self, NO_TRANS);
> 
> The above must be changed not to call CC_on_abort(self,NO_TRANS), if the
> case
> is "ROLLBACK TO SAVEPOINT name";
> CC_on_abort(self,NO_TRANS); must be called on "ROLLBACK WORK"
> 
> NO_TRANS means, that the ODBC thinks, that there is no transaction in the
> PostgreSQL server.
> 
> So you can get your problem away with:
> 
>    else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0 &&
> (strnicmp(query,"ROLLBACK TO",11) != 0)
>        CC_on_abort(self, NO_TRANS);
> 
> I used "query" argument, because cmdbuffer is "ROLLBACK", but query is
> "ROLLBACK TO SAVEPOINT name".
> 
> Then you need to recompile the ODBC driver, and you don't have that
> problem anymore.
> ODBC debugging options help you to track further problems with savepoints.
> 
> With this, only a partial SAVEPOINT implementation can be achieved.
> You might get well with SAVEPOINTs, if you don't use CURSORs,
> because with them the problem becomes a lot harder, and the simple
> fix from above won't work anymore.
> 
> Yours,
> Marko Ristola
> 
> Cleber Nardelli wrote:
> 
> >Marko, debtor for the aid that you have given me.
> >
> >My problem in the truth nor is SAVEPOINT and ROLLBACK You the SAVEPOINT.
> >
> >My problem is that when an error is generated during the execution of
> >commands inside of a transaction driver automatically it makes a
> >ROLLBACK of all the executed commands until then and ai I do not
> >obtain to execute the ROLLBACK You the SAVEPOINT therefore the block
> >of the transaction already does not exist more.
> >
> >Yours truly Cleber
> >
> >2005/8/31, Marko Ristola <marko.ristola@kolumbus.fi>:
> >
> >
> >>Hi
> >>
> >>I tried to write SAVEPOINT SQL support into PsqlODBC in Summer.
> >>
> >>I was able to implement some suport for savepoint creation, savepoint
> >>rollback and savepoint RELEASE.
> >>
> >>I didn't understand, how the query results should behave at savepoint
> >>rollbacks.
> >>
> >>You can find more information about my thoughts about savepoint
> >>implementation on this list ealier this year, or with Google.
> >>
> >>Main design issue was, that SAVEPOINT tracking must be implemented
> >>into PSQLODBC.
> >>
> >>That's what I implemented:
> >>- Linked list of all defined savepoints.
> >>- Maintain the list during SAVEPOINT maintenance functions.
> >>
> >>Savepoint command parsing speed was 600000 commands per second,
> >>that I wrote (UTF-8). With UCS-4 , without a state machine, it was
> >>300000 commands per second. The subsystem's speed was okay.
> >>
> >>I implemented a full PostgreSQL SQL SAVEPOINT support with
> >>the Bison/Flex parser, because it is easy, but that part is
> >>not at all easy to integrate into an existing PsqlODBC driver.
> >>
> >>Are you interested in a patch for the mergeable part of the savepoint
> >>support?
> >>
> >>Regards,
> >>Marko Ristola
> >>
> >>Carlos Henrique Reimer wrote:
> >>
> >>
> >>
> >>>Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
> >>>
> >>>Marko Ristola wrote:
> >>>
> >>>
> >>>>Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
> >>>>
> >>>>
> >>>>ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
> >>>>implementation is hard to make correctly for psqlodbc, at least for me.
> >>>>
> >>>>Marko Ristola
> >>>>
> >>>>
> >>>>
> >>>>>Cleber Nardelli wrote:
> >>>>>
> >>>>>
> >>>>>Hello.
> >>>>>I am using the Driver odbc for access to postgresql. I have a
> >>>>>
> >>>>>
> >>>referring problem to the cancellation of the transaction when
> >>>
> >>>
> >>>>>some error
> >>>>>is found at the moment of the execution of the same one. I try to
> >>>>>
> >>>>>
> >>>execute this sql command:
> >>>
> >>>
> >>>>>BEGIN TRANSACTION;
> >>>>>DELETE FROM TABL1 WHERE ID = 1;
> >>>>>INSERT INTO TABL1 VALUES (1,1);
> >>>>>SAVEPOINT SVPT;
> >>>>>INSERT INTO TABL1 VALUES (1,1);
> >>>>>ROLLBACK TO SAVEPOINT SPVT;
> >>>>>COMMIT;
> >>>>>
> >>>>>When I try to insert as register it accuses to error with key
> >>>>>
> >>>>>
> >>>duplicate. Ok. But I do not want to cancel the transaction I I need to
> >>>only continue
> >>>
> >>>
> >>>>>with the same one skirting this error. For this reason I am using
> >>>>>SavePoints but it generates the error:
> >>>>>"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"
> >>>>>
> >>>>>Necessary of the your help. I thank
> >>>>>
> >>>>>Yours truly
> >>>>>
> >>>>>
> >>>>>
> >>>------------------------------------------------------------------------
> >>>Yahoo! Acesso Grátis
> >>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;:
> >>>Internet rápida e grátis. Instale o discador agora!
> >>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;
> >>>
> >>>
> >>
> >>---------------------------(end of broadcast)---------------------------
> >>TIP 3: Have you checked our extensive FAQ?
> >>
> >>              http://www.postgresql.org/docs/faq
> >>
> >>
> >>
> >
> >
> >
> >
> 
> 


-- 
Cleber Nardelli
IPM Automação e Consultoria
9998-8670



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

* Re: Transactions and SavePoints
@ 2005-09-03 08:35  Marko Ristola <Marko.Ristola@kolumbus.fi>
  parent: Cleber Nardelli <clebernardelli@gmail.com>
  0 siblings, 1 reply; 11+ messages in thread

From: Marko Ristola @ 2005-09-03 08:35 UTC (permalink / raw)
  To: Cleber Nardelli <clebernardelli@gmail.com>; +Cc: pgsql-odbc


Hi.

Unfortunately I don't have a Windows compilation environment for
building the driver either.

Hiroshi Saito and Dave Page made a good fix based on my solution
below. The fix is in CVS now.

Maybe somebody else on this list can compile the latest version
of the development driver or the stable driver with this fix
with the patch for you.

Regards,
Marko Ristola

Cleber Nardelli wrote:

>Hi...  
>Marko, debtor for the aid.  
>Not wanting to ask for very, but it would like to lher to ask for of
>the same skill..... I already I had given one looked at in the sources
>of driver and more or less had identified the problem, ok, but it
>happens that I I do not have much knowledge in C and I do not obtain
>to compile driver, will be that you it could not make this for me?
>
>In any obliged way 
>
>Cleber
>
>2005/9/1, Marko Ristola <Marko.Ristola@kolumbus.fi>:
>  
>
>>Unfortunately SAVEPOINT support has not been implemented
>>into psqlodbc driver yet.
>>
>>So it doesn't work unfortunately.
>>
>>However, if you have a possibility use the native PostgreSQL
>>libpq driver (not an ODBC driver) instead,
>>you can use fully featured savepoints.
>>
>>Depending on your needs, you can even pay
>>somebody to implement the feature into psqlodbc. A good enough
>>implementation could be included into the driver.
>>
>>I have a small part of an implementation, but that's not enough.
>>
>>You described your problem: the ODBC driver does the rollback
>>for you, even though you don't want it.
>>
>>The problem is just the ice berg of the lack of the
>>SAVEPOINT feature in the psqlodbc driver.
>>
>>
>>However, I know one easy solution into the problem, you found:
>>
>>Get source code of the psqlodbc ODBC driver.
>>
>>On file connection.c, C code function CC_send_query():
>>
>>   else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0)
>>       CC_on_abort(self, NO_TRANS);
>>
>>The above must be changed not to call CC_on_abort(self,NO_TRANS), if the
>>case
>>is "ROLLBACK TO SAVEPOINT name";
>>CC_on_abort(self,NO_TRANS); must be called on "ROLLBACK WORK"
>>
>>NO_TRANS means, that the ODBC thinks, that there is no transaction in the
>>PostgreSQL server.
>>
>>So you can get your problem away with:
>>
>>   else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0 &&
>>(strnicmp(query,"ROLLBACK TO",11) != 0)
>>       CC_on_abort(self, NO_TRANS);
>>
>>I used "query" argument, because cmdbuffer is "ROLLBACK", but query is
>>"ROLLBACK TO SAVEPOINT name".
>>
>>Then you need to recompile the ODBC driver, and you don't have that
>>problem anymore.
>>ODBC debugging options help you to track further problems with savepoints.
>>
>>With this, only a partial SAVEPOINT implementation can be achieved.
>>You might get well with SAVEPOINTs, if you don't use CURSORs,
>>because with them the problem becomes a lot harder, and the simple
>>fix from above won't work anymore.
>>
>>Yours,
>>Marko Ristola
>>
>>Cleber Nardelli wrote:
>>
>>    
>>
>>>Marko, debtor for the aid that you have given me.
>>>
>>>My problem in the truth nor is SAVEPOINT and ROLLBACK You the SAVEPOINT.
>>>
>>>My problem is that when an error is generated during the execution of
>>>commands inside of a transaction driver automatically it makes a
>>>ROLLBACK of all the executed commands until then and ai I do not
>>>obtain to execute the ROLLBACK You the SAVEPOINT therefore the block
>>>of the transaction already does not exist more.
>>>
>>>Yours truly Cleber
>>>
>>>2005/8/31, Marko Ristola <marko.ristola@kolumbus.fi>:
>>>
>>>
>>>      
>>>
>>>>Hi
>>>>
>>>>I tried to write SAVEPOINT SQL support into PsqlODBC in Summer.
>>>>
>>>>I was able to implement some suport for savepoint creation, savepoint
>>>>rollback and savepoint RELEASE.
>>>>
>>>>I didn't understand, how the query results should behave at savepoint
>>>>rollbacks.
>>>>
>>>>You can find more information about my thoughts about savepoint
>>>>implementation on this list ealier this year, or with Google.
>>>>
>>>>Main design issue was, that SAVEPOINT tracking must be implemented
>>>>into PSQLODBC.
>>>>
>>>>That's what I implemented:
>>>>- Linked list of all defined savepoints.
>>>>- Maintain the list during SAVEPOINT maintenance functions.
>>>>
>>>>Savepoint command parsing speed was 600000 commands per second,
>>>>that I wrote (UTF-8). With UCS-4 , without a state machine, it was
>>>>300000 commands per second. The subsystem's speed was okay.
>>>>
>>>>I implemented a full PostgreSQL SQL SAVEPOINT support with
>>>>the Bison/Flex parser, because it is easy, but that part is
>>>>not at all easy to integrate into an existing PsqlODBC driver.
>>>>
>>>>Are you interested in a patch for the mergeable part of the savepoint
>>>>support?
>>>>
>>>>Regards,
>>>>Marko Ristola
>>>>
>>>>Carlos Henrique Reimer wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
>>>>>
>>>>>Marko Ristola wrote:
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
>>>>>>
>>>>>>
>>>>>>ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
>>>>>>implementation is hard to make correctly for psqlodbc, at least for me.
>>>>>>
>>>>>>Marko Ristola
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Cleber Nardelli wrote:
>>>>>>>
>>>>>>>
>>>>>>>Hello.
>>>>>>>I am using the Driver odbc for access to postgresql. I have a
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>referring problem to the cancellation of the transaction when
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>some error
>>>>>>>is found at the moment of the execution of the same one. I try to
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>execute this sql command:
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>BEGIN TRANSACTION;
>>>>>>>DELETE FROM TABL1 WHERE ID = 1;
>>>>>>>INSERT INTO TABL1 VALUES (1,1);
>>>>>>>SAVEPOINT SVPT;
>>>>>>>INSERT INTO TABL1 VALUES (1,1);
>>>>>>>ROLLBACK TO SAVEPOINT SPVT;
>>>>>>>COMMIT;
>>>>>>>
>>>>>>>When I try to insert as register it accuses to error with key
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>duplicate. Ok. But I do not want to cancel the transaction I I need to
>>>>>only continue
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>with the same one skirting this error. For this reason I am using
>>>>>>>SavePoints but it generates the error:
>>>>>>>"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"
>>>>>>>
>>>>>>>Necessary of the your help. I thank
>>>>>>>
>>>>>>>Yours truly
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>------------------------------------------------------------------------
>>>>>Yahoo! Acesso Grátis
>>>>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;:
>>>>>Internet rápida e grátis. Instale o discador agora!
>>>>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>---------------------------(end of broadcast)---------------------------
>>>>TIP 3: Have you checked our extensive FAQ?
>>>>
>>>>             http://www.postgresql.org/docs/faq
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>
>>>
>>>      
>>>
>>    
>>
>
>
>  
>




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

* Re: Transactions and SavePoints
@ 2005-09-04 16:44  Cleber Nardelli <clebernardelli@gmail.com>
  parent: Marko Ristola <Marko.Ristola@kolumbus.fi>
  0 siblings, 0 replies; 11+ messages in thread

From: Cleber Nardelli @ 2005-09-04 16:44 UTC (permalink / raw)
  To: Marko Ristola <Marko.Ristola@kolumbus.fi>; +Cc: pgsql-odbc

Hi....  

I find that I am not accustomed with this business of CVS.  

I do not understand inside.... of pgfoundry I exist the option of if
to see the tree of the CVS (historical), I obtain to see the
modifications made in the archives, but the option of compilation of
the current version I did not find.

It will be that you it could also give an aid to me in this...  

Thank you...  
Cleber.

2005/9/3, Marko Ristola <Marko.Ristola@kolumbus.fi>:
> 
> Hi.
> 
> Unfortunately I don't have a Windows compilation environment for
> building the driver either.
> 
> Hiroshi Saito and Dave Page made a good fix based on my solution
> below. The fix is in CVS now.
> 
> Maybe somebody else on this list can compile the latest version
> of the development driver or the stable driver with this fix
> with the patch for you.
> 
> Regards,
> Marko Ristola
> 
> Cleber Nardelli wrote:
> 
> >Hi...
> >Marko, debtor for the aid.
> >Not wanting to ask for very, but it would like to lher to ask for of
> >the same skill..... I already I had given one looked at in the sources
> >of driver and more or less had identified the problem, ok, but it
> >happens that I I do not have much knowledge in C and I do not obtain
> >to compile driver, will be that you it could not make this for me?
> >
> >In any obliged way
> >
> >Cleber
> >
> >2005/9/1, Marko Ristola <Marko.Ristola@kolumbus.fi>:
> >
> >
> >>Unfortunately SAVEPOINT support has not been implemented
> >>into psqlodbc driver yet.
> >>
> >>So it doesn't work unfortunately.
> >>
> >>However, if you have a possibility use the native PostgreSQL
> >>libpq driver (not an ODBC driver) instead,
> >>you can use fully featured savepoints.
> >>
> >>Depending on your needs, you can even pay
> >>somebody to implement the feature into psqlodbc. A good enough
> >>implementation could be included into the driver.
> >>
> >>I have a small part of an implementation, but that's not enough.
> >>
> >>You described your problem: the ODBC driver does the rollback
> >>for you, even though you don't want it.
> >>
> >>The problem is just the ice berg of the lack of the
> >>SAVEPOINT feature in the psqlodbc driver.
> >>
> >>
> >>However, I know one easy solution into the problem, you found:
> >>
> >>Get source code of the psqlodbc ODBC driver.
> >>
> >>On file connection.c, C code function CC_send_query():
> >>
> >>   else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0)
> >>       CC_on_abort(self, NO_TRANS);
> >>
> >>The above must be changed not to call CC_on_abort(self,NO_TRANS), if the
> >>case
> >>is "ROLLBACK TO SAVEPOINT name";
> >>CC_on_abort(self,NO_TRANS); must be called on "ROLLBACK WORK"
> >>
> >>NO_TRANS means, that the ODBC thinks, that there is no transaction in the
> >>PostgreSQL server.
> >>
> >>So you can get your problem away with:
> >>
> >>   else if (strnicmp(cmdbuffer, "ROLLBACK", 8) == 0 &&
> >>(strnicmp(query,"ROLLBACK TO",11) != 0)
> >>       CC_on_abort(self, NO_TRANS);
> >>
> >>I used "query" argument, because cmdbuffer is "ROLLBACK", but query is
> >>"ROLLBACK TO SAVEPOINT name".
> >>
> >>Then you need to recompile the ODBC driver, and you don't have that
> >>problem anymore.
> >>ODBC debugging options help you to track further problems with savepoints.
> >>
> >>With this, only a partial SAVEPOINT implementation can be achieved.
> >>You might get well with SAVEPOINTs, if you don't use CURSORs,
> >>because with them the problem becomes a lot harder, and the simple
> >>fix from above won't work anymore.
> >>
> >>Yours,
> >>Marko Ristola
> >>
> >>Cleber Nardelli wrote:
> >>
> >>
> >>
> >>>Marko, debtor for the aid that you have given me.
> >>>
> >>>My problem in the truth nor is SAVEPOINT and ROLLBACK You the SAVEPOINT.
> >>>
> >>>My problem is that when an error is generated during the execution of
> >>>commands inside of a transaction driver automatically it makes a
> >>>ROLLBACK of all the executed commands until then and ai I do not
> >>>obtain to execute the ROLLBACK You the SAVEPOINT therefore the block
> >>>of the transaction already does not exist more.
> >>>
> >>>Yours truly Cleber
> >>>
> >>>2005/8/31, Marko Ristola <marko.ristola@kolumbus.fi>:
> >>>
> >>>
> >>>
> >>>
> >>>>Hi
> >>>>
> >>>>I tried to write SAVEPOINT SQL support into PsqlODBC in Summer.
> >>>>
> >>>>I was able to implement some suport for savepoint creation, savepoint
> >>>>rollback and savepoint RELEASE.
> >>>>
> >>>>I didn't understand, how the query results should behave at savepoint
> >>>>rollbacks.
> >>>>
> >>>>You can find more information about my thoughts about savepoint
> >>>>implementation on this list ealier this year, or with Google.
> >>>>
> >>>>Main design issue was, that SAVEPOINT tracking must be implemented
> >>>>into PSQLODBC.
> >>>>
> >>>>That's what I implemented:
> >>>>- Linked list of all defined savepoints.
> >>>>- Maintain the list during SAVEPOINT maintenance functions.
> >>>>
> >>>>Savepoint command parsing speed was 600000 commands per second,
> >>>>that I wrote (UTF-8). With UCS-4 , without a state machine, it was
> >>>>300000 commands per second. The subsystem's speed was okay.
> >>>>
> >>>>I implemented a full PostgreSQL SQL SAVEPOINT support with
> >>>>the Bison/Flex parser, because it is easy, but that part is
> >>>>not at all easy to integrate into an existing PsqlODBC driver.
> >>>>
> >>>>Are you interested in a patch for the mergeable part of the savepoint
> >>>>support?
> >>>>
> >>>>Regards,
> >>>>Marko Ristola
> >>>>
> >>>>Carlos Henrique Reimer wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
> >>>>>
> >>>>>Marko Ristola wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
> >>>>>>
> >>>>>>
> >>>>>>ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
> >>>>>>implementation is hard to make correctly for psqlodbc, at least for me.
> >>>>>>
> >>>>>>Marko Ristola
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Cleber Nardelli wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>Hello.
> >>>>>>>I am using the Driver odbc for access to postgresql. I have a
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>referring problem to the cancellation of the transaction when
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>some error
> >>>>>>>is found at the moment of the execution of the same one. I try to
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>execute this sql command:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>BEGIN TRANSACTION;
> >>>>>>>DELETE FROM TABL1 WHERE ID = 1;
> >>>>>>>INSERT INTO TABL1 VALUES (1,1);
> >>>>>>>SAVEPOINT SVPT;
> >>>>>>>INSERT INTO TABL1 VALUES (1,1);
> >>>>>>>ROLLBACK TO SAVEPOINT SPVT;
> >>>>>>>COMMIT;
> >>>>>>>
> >>>>>>>When I try to insert as register it accuses to error with key
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>duplicate. Ok. But I do not want to cancel the transaction I I need to
> >>>>>only continue
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>>with the same one skirting this error. For this reason I am using
> >>>>>>>SavePoints but it generates the error:
> >>>>>>>"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks"
> >>>>>>>
> >>>>>>>Necessary of the your help. I thank
> >>>>>>>
> >>>>>>>Yours truly
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>------------------------------------------------------------------------
> >>>>>Yahoo! Acesso Grátis
> >>>>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;:
> >>>>>Internet rápida e grátis. Instale o discador agora!
> >>>>><%20http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com/;
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>---------------------------(end of broadcast)---------------------------
> >>>>TIP 3: Have you checked our extensive FAQ?
> >>>>
> >>>>             http://www.postgresql.org/docs/faq
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> >
> 
> 


-- 
Cleber Nardelli
IPM Automação e Consultoria
9998-8670



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


end of thread, other threads:[~2005-09-04 16:44 UTC | newest]

Thread overview: 11+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-26 09:54 Transactions and savepoints Marko Ristola <marko.ristola@kolumbus.fi>
2005-03-30 18:11 ` Peter Eisentraut <peter_e@gmx.net>
2005-03-30 19:22   ` Marko Ristola <marko.ristola@kolumbus.fi>
2005-08-30 20:24 Transactions and SavePoints Cleber Nardelli <clebernardelli@gmail.com>
2005-08-31 11:57 Re: Transactions and SavePoints Carlos Henrique Reimer <carlosreimer@yahoo.com.br>
2005-08-31 16:30 ` Re: Transactions and SavePoints Marko Ristola <marko.ristola@kolumbus.fi>
2005-08-31 17:04   ` Re: Transactions and SavePoints Cleber Nardelli <clebernardelli@gmail.com>
2005-09-01 18:49     ` Re: Transactions and SavePoints Marko Ristola <Marko.Ristola@kolumbus.fi>
2005-09-01 21:06       ` Re: Transactions and SavePoints Cleber Nardelli <clebernardelli@gmail.com>
2005-09-03 08:35         ` Re: Transactions and SavePoints Marko Ristola <Marko.Ristola@kolumbus.fi>
2005-09-04 16:44           ` Re: Transactions and SavePoints Cleber Nardelli <clebernardelli@gmail.com>

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