Re: ROLLBACK problem

From: Ron Peterson <rpeterson(at)yellowbank(dot)com>
To: Kshipra <kshipra(at)mahindrabt(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: ROLLBACK problem
Date: 2000-06-14 14:31:38
Message-ID: 3947974A.15C27ED2@yellowbank.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kshipra wrote:
>
> Hello,
> We are in the process of evaluating PostgreSQL ,
> we could not perform ROLLBACK function in pgsql .
> It got aborted .
> Tell us how ROLLBACK is to be executed.
> thanks

CREATE TABLE test (
aval text
);

INSERT INTO test
VALUES ( 'a' );

INSERT INTO test
VALUES ( 'b' );

INSERT INTO test
VALUES ( 'c' );

SELECT * FROM test;

aval
------
a
b
c

BEGIN;

INSERT INTO test
VALUES ( 'd' );

INSERT INTO test
VALUES ( 'e' );

ROLLBACK;

SELECT * FROM test;

aval
------
a
b
c

________________________
Ron Peterson
rpeterson(at)yellowbank(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Peterson 2000-06-14 14:38:25 Re: feature request
Previous Message teixeira 2000-06-14 14:27:05 Re: