nconway@klamath.dyndns.org (Neil Conway) writes:
> On Wed, Jul 17, 2002 at 09:45:12AM -0400, Robert Treat wrote:
>> ** with current_query blank I'm assuming we have nothing hanging around
>> that would interfere right?. **
> No, that could also indicate that either you're not the super-user, or you
> haven't enabled stats_command_string in postgresql.conf
> That probably isn't the best UI...
Good point. What do people think of making the pg_stat_activity view do
COALESCE(current_query, '<unknown>')
so that there's a clear flag that you're not seeing anything?
I'm not wedded to the particular string <unknown>, if someone has a
better idea.
regards, tom lane