Re: pgsql/src/backend/utils/init (postinit.c)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: wieck(at)postgresql(dot)org
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql/src/backend/utils/init (postinit.c)
Date: 2000-12-15 03:43:18
Message-ID: 9779.976851798@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

wieck(at)postgresql(dot)org writes:
> Bugfix
> Trying to connect to template0 left a global referenced buffer
> because the scan of pg_database wasn't ended properly before
> elog(FATAL).

This is a *seriously* bogus "fix". If elog(FATAL) fails to release
buffer references, that's a problem that needs a general solution.
Trying to guarantee that we'll clean up all open scans on a retail
basis before any elog(FATAL) is obviously hopeless.

I'm a bit surprised to hear that such a bug exists anyway; I would've
thought that the elog error recovery would clean this up correctly...

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message tgl 2000-12-15 04:08:15 pgsql/src/include/commands (command.h)
Previous Message wieck 2000-12-14 23:51:35 pgsql/src/backend/utils/init (postinit.c)