From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: ps_status on fastpath |
Date: | 2010-12-17 19:40:22 |
Message-ID: | 1292614733-sup-254@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Excerpts from Tom Lane's message of vie dic 17 16:25:17 -0300 2010:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Excerpts from Tom Lane's message of vie dic 17 12:41:06 -0300 2010:
> >> Hm, what about pgstat_report_activity()?
>
> > I wasn't sure about that, because of the overhead, but now that I look
> > at it, it's supposed to be cheaper than changing the ps_status in some
> > cases, so I guess there's no harm.
>
> Yeah, if we can afford a possible kernel call to set ps status, it
> doesn't seem like pgstat_report_activity should be a problem. I'm
> also of the opinion that more people look at pg_stat_activity than
> ps output these days.
Well, actually, if the functions are cheap, presumably they aren't going
to stay for much time in either status report; what I'm after is fixing
the log_line_prefix stuff (%i I think it is).
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2010-12-17 19:43:21 | Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?) |
Previous Message | Tom Lane | 2010-12-17 19:35:18 | Re: Why don't we accept exponential format for integers? |