pgsql/src/backend/utils/init (postinit.c)
pgsql/src/backend/utils/init (postinit.c)
От:
wieck@postgresql.org
Дата:
Date: Thursday, December 14, 2000 @ 18:51:35
Author: wieck
Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/init
from hub.org:/tmp/cvs-serv99892/src/backend/utils/init
Modified Files:
postinit.c
----------------------------- Log Message -----------------------------
Bugfix
Trying to connect to template0 left a global referenced buffer
because the scan of pg_database wasn't ended properly before
elog(FATAL).
Jan
Re: pgsql/src/backend/utils/init (postinit.c)
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
wieck@postgresql.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