From e3b31254e5790fd070fd8d58b6203213c083536f Mon Sep 17 00:00:00 2001 From: Mark Wong Date: Tue, 20 May 2008 23:24:33 -0700 Subject: [PATCH] Removed reading wchan from the process table. The address of the system call is probably not that important. --- pg_proctab.c | 7 ++----- pg_proctab.sql.in | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pg_proctab.c b/pg_proctab.c index a13cc92..1a2c815 100644 --- a/pg_proctab.c +++ b/pg_proctab.c @@ -69,7 +69,7 @@ Datum pg_proctab(PG_FUNCTION_ARGS) i_cmajflt, i_utime, i_stime, i_cutime, i_cstime, i_priority, i_nice, i_num_threads, i_itrealvalue, i_starttime, i_vsize, i_rss, i_signal, i_blocked, i_sigignore, i_sigcatch, - i_wchan, i_exit_signal, i_processor, i_rt_priority, i_policy, + i_exit_signal, i_processor, i_rt_priority, i_policy, i_delayacct_blkio_ticks}; /* stuff done only on the first call of the function */ @@ -216,7 +216,6 @@ Datum pg_proctab(PG_FUNCTION_ARGS) values[i_blocked] = (char *) palloc((BIGINT_LEN + 1) * sizeof(char)); values[i_sigignore] = (char *) palloc((BIGINT_LEN + 1) * sizeof(char)); values[i_sigcatch] = (char *) palloc((BIGINT_LEN + 1) * sizeof(char)); - values[i_wchan] = (char *) palloc((BIGINT_LEN + 1) * sizeof(char)); values[i_exit_signal] = (char *) palloc((INTEGER_LEN + 1) * sizeof(char)); values[i_processor] = (char *) palloc((INTEGER_LEN + 1) * sizeof(char)); @@ -336,10 +335,8 @@ Datum pg_proctab(PG_FUNCTION_ARGS) /* sigcatch */ GET_NEXT_VALUE(p, q, values[i_sigcatch], length, "sigcatch not found"); - /* wchan */ - GET_NEXT_VALUE(p, q, values[i_wchan], length, "wchan not found"); - ++p; + p = skip_token(p); /* skip wchan */ p = skip_token(p); /* skip nswap */ p = skip_token(p); /* skip cnswap */ ++p; diff --git a/pg_proctab.sql.in b/pg_proctab.sql.in index 59bb0c3..60e5c30 100644 --- a/pg_proctab.sql.in +++ b/pg_proctab.sql.in @@ -28,7 +28,6 @@ CREATE OR REPLACE FUNCTION pg_proctab( OUT blocked BIGINT, OUT sigignore BIGINT, OUT sigcatch BIGINT, - OUT wchan BIGINT, OUT exit_signal INTEGER, OUT processor INTEGER, OUT rt_priority BIGINT, -- 2.39.5