Re: log_hostname and pg_stat_activity - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: log_hostname and pg_stat_activity
Date
Msg-id 1295399209-sup-6400@alvh.no-ip.org
Whole thread Raw
In response to Re: log_hostname and pg_stat_activity  (Steve Singer <ssinger_pg@sympatico.ca>)
List 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 by date:

Previous
From: Hitoshi Harada
Date:
Subject: Re: pl/python refactoring
Next
From: Hitoshi Harada
Date:
Subject: Re: REVIEW: PL/Python validator function