pgsql/src/backend/tcop (postgres.c)
| От | tgl@postgresql.org |
|---|---|
| Тема | pgsql/src/backend/tcop (postgres.c) |
| Дата | |
| Msg-id | 200101122154.f0CLs0r92841@hub.org обсуждение исходный текст |
| Список | pgsql-committers |
Date: Friday, January 12, 2001 @ 16:54:00
Author: tgl
Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/tcop
from hub.org:/home/projects/pgsql/tmp/cvs-serv92773/src/backend/tcop
Modified Files:
postgres.c
----------------------------- Log Message -----------------------------
Add more critical-section calls: all code sections that hold spinlocks
are now critical sections, so as to ensure die() won't interrupt us while
we are munging shared-memory data structures. Avoid insecure intermediate
states in some code that proc_exit will call, like palloc/pfree. Rename
START/END_CRIT_CODE to START/END_CRIT_SECTION, since that seems to be
what people tend to call them anyway, and make them be called with () like
a function call, in hopes of not confusing pg_indent.
I doubt that this is sufficient to make SIGTERM safe anywhere; there's
just too much code that could get invoked during proc_exit().
В списке pgsql-committers по дате отправления: