Skip to content

Commit

Permalink
Add C comment mentioning pg_stat_activity.procpid should have been
Browse files Browse the repository at this point in the history
called 'pid'.
  • Loading branch information
bmomjian committed Jun 11, 2011
1 parent c2ba012 commit a4bebdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/utils/adt/pgstatfuncs.c
Expand Up @@ -509,6 +509,7 @@ pg_stat_get_activity(PG_FUNCTION_ARGS)
tupdesc = CreateTemplateTupleDesc(12, false);
TupleDescInitEntry(tupdesc, (AttrNumber) 1, "datid",
OIDOID, -1, 0);
/* This should have been called 'pid'; can't change it. 2011-06-11 */
TupleDescInitEntry(tupdesc, (AttrNumber) 2, "procpid",
INT4OID, -1, 0);
TupleDescInitEntry(tupdesc, (AttrNumber) 3, "usesysid",
Expand Down

0 comments on commit a4bebdd

Please sign in to comment.