Re: Snapshot warning - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Snapshot warning
Date
Msg-id 20081125203447.GQ4875@alvh.no-ip.org
Whole thread Raw
In response to Snapshot warning  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
List pgsql-hackers
Pavan Deolasee escribió:
> Following test case gives a warning of snapshot not destroyed at commit
> time.
> 
> CREATE TABLE test (a int);
> INSERT INTO test VALUES (1);
> BEGIN;
> DECLARE c CURSOR FOR SELECT * FROM test FOR update;
> SAVEPOINT A;
> FETCH -2 FROM c;
> ROLLBACK TO SAVEPOINT A;
> COMMIT;

Fixed, thanks for the test case.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: pg metadata and doc bug
Next
From: "Rob Kirkbride"
Date:
Subject: Enhancement to pg_dump