Re: [HACKERS] Aborted Transaction During Vacuum

From: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Aborted Transaction During Vacuum
Date: 1999-08-14 04:13:01
Message-ID: 37B4ECCD.DF56BA7D@nsi.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom and Oliver,

I added the patch and re-built everything. No more problems with the
vacuum analyze (knock on wood since this is still Friday the 13th).

Tom, does this patch address the problem you found in your
EndPortalAllocMode comments? I'm just wondering whether another patch
will be needed or if this one should cover the problem.

Thanks again for the help guys.
-Tony

Tom wrote:
> (a) vacuum.c does a CommitTransaction to commit its final table's
> worth of fixes.

> (b) CommitTransaction calls EndPortalAllocMode.

> (c) vacuum calls vc_shutdown, which tries to remove pg_vlock,
and reports an error when the unlink() call fails.

> (d) during error cleanup, AbortTransaction is called.

> (e) AbortTransaction calls EndPortalAllocMode. There has been no
> intervening StartPortalAllocMode, so the portal's context stack
> is empty. EndPortalAllocMode tries to free a nonexistent memory
> context (or, if you have asserts turned on, dies with an assert
> failure). Ka-boom.

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 1999-08-14 05:33:25 Re: [HACKERS] Re: We won!
Previous Message Oleg Bartunov 1999-08-13 23:30:34 How to get 'psql -q' runs really quiet ?