Re: log_hostname and pg_stat_activity

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: log_hostname and pg_stat_activity
Дата
Msg-id 1295399209-sup-6400@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: log_hostname and pg_stat_activity  (Steve Singer <ssinger_pg@sympatico.ca>)
Список pgsql-hackers
Excerpts from Steve Singer's message of mar ene 18 21:24:25 -0300 2011:

> Coding Review
> -------------
> 
> As Alvaro pointed out BackendStatusShmemSize should be updated.
> 
> To answer his question about why clientaddr works:  clientaddr is a 
> SockAddr which is a structure not a pointer so the data gets copied by 
> value to beentry.   That won't work for strings,  I have no issues with 
> how your allocating space in beentry and then strlcpy'ing the values.

Doh, of course.  Thanks.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Hitoshi Harada
Дата:
Сообщение: Re: pl/python refactoring
Следующее
От: Hitoshi Harada
Дата:
Сообщение: Re: REVIEW: PL/Python validator function