Re: Added columns to pg_stat_activity - Mailing list pgsql-patches

From Magnus Hagander
Subject Re: Added columns to pg_stat_activity
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C73E1@algol.sollentuna.se
Whole thread Raw
In response to Added columns to pg_stat_activity  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: Added columns to pg_stat_activity
List pgsql-patches
> > Looks pretty good -- barring any objections I'll apply this to HEAD
> > tomorrow or the day after (there's a room for a bit of
> cleanup to the
> > docs, but I'll do that before committing).
>
> Couple of minor gripes:
>
> 1.  Can we reduce the amount of stuff #include'd by pgstat.h?
>  I particularly dislike including builtins.h there; that
> surely should be unnecessary, since there's nothing but
> externs in builtins.h.

Right. Only one needs to be there, the other two can be moved to
pgstatfuncs.c. The last one is needed to get the SockAddr structure.


> 2.  WRT the inet.h change: the project standard is that
> extern declarations are spelled with "extern".

Fixed.

Updated patch attached.

//Magnus

Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Added columns to pg_stat_activity
Next
From: Simon Riggs
Date:
Subject: Re: Cleaning up unreferenced table files