Weird idea for pg_stat_activity

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Weird idea for pg_stat_activity
Date: 2006-08-15 05:29:02
Message-ID: 200608150529.k7F5T2107696@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Wouldn't it be weird if an update to pg_stat_activity.current_query
actually ran that query for the selected backend:

UPDATE pg_stat_activity SET current_query = "SELECT 1"
WHERE procpid = 19522;

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message dror 2006-08-15 07:37:03 Re: [Patch] - Fix for bug #2558, InitDB failed to run
Previous Message Gavin Sherry 2006-08-15 04:49:41 Re: [PATCHES] WIP: bitmap indexes