Re: lock.h and proc.h

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lock.h and proc.h
Дата
Msg-id 12445.1044544752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на lock.h and proc.h  ("Sumaira Ali" <nat_lazy@hotmail.com>)
Список pgsql-hackers
"Sumaira Ali" <nat_lazy@hotmail.com> writes:
> hi..i have questions about struct pgproc (in file proc.h) and proclock ( in 
> file lock.h) of the postgresql source code, does anyone know the exact 
> difference between pgproc and proclock structs??

There's one PGPROC per process.  There's one PROCLOCK for each process
and each lock that that process has any interest in (ie, either
currently holds or is waiting for).

The comments for these structs seem to be a bit of a mess at the moment :-(
Bruce renamed the struct types recently, but appears not to have done a
good job of adjusting the comments to match.  It may help to know that
a proclock object was formerly called a "holder".
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Status report: regex replacement
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Status report: regex replacement