Skip to content

Commit

Permalink
Update pg-proctab compat to 0.0.10
Browse files Browse the repository at this point in the history
The previous commit modified the pg-proctab compat function
pg_diskusage() to be equivalent to the original pg-proctab 0.0.10
output. Namely, it adds 6 columns. Apparently the github mirror of
pg_proctab never got the memo, but the canonical gitlab repo is what we
should be measuring ourselves against. In any case, update all of the
supporting files and documentation to reflect the correct 0.0.10
version.
  • Loading branch information
jconway committed Jan 30, 2022
1 parent 3f29e53 commit 1e23ba3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ OBJS = pgnodemx.o cgroup.o envutils.o fileutils.o genutils.o kdapi.o parseutils
PG_CPPFLAGS = -I$(libpq_srcdir)
PATH_TO_FILE = $(datadir)/extension/pg_proctab.control
ifeq ($(shell test -e $(PATH_TO_FILE) && echo -n yes),yes)
EXTENSION = pgnodemx pg_proctab--0.0.9-compat
EXTENSION = pgnodemx pg_proctab--0.0.10-compat
else
EXTENSION = pgnodemx pg_proctab--0.0.9-compat pg_proctab
EXTENSION = pgnodemx pg_proctab--0.0.10-compat pg_proctab
endif
DATA = pgnodemx--1.0--1.1.sql pgnodemx--1.1--1.2.sql pgnodemx--1.2--1.3.sql pgnodemx--1.3.sql pg_proctab--0.0.9-compat.sql
DATA = pgnodemx--1.0--1.1.sql pgnodemx--1.1--1.2.sql pgnodemx--1.2--1.3.sql pgnodemx--1.3.sql pg_proctab--0.0.10-compat.sql

GHASH := $(shell git rev-parse --short HEAD)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ SELECT * FROM proc_loadavg();

Five functions are provided in an extension that match the SQL interface presented by the pg_proctab extension.
```
CREATE EXTENSION pg_proctab VERSION "0.0.9-compat";
CREATE EXTENSION pg_proctab VERSION "0.0.10-compat";
SELECT * FROM pg_cputime();
SELECT * FROM pg_loadavg();
SELECT * FROM pg_memusage();
SELECT * FROM pg_diskusage();
SELECT * FROM pg_proctab();
```

These functions are not installed by default. They may be installed by installing pg_proctab VERSION "0.0.9-compat" after installing the pgnodemx extension.
These functions are not installed by default. They may be installed by installing pg_proctab VERSION "0.0.10-compat" after installing the pgnodemx extension.

## System Information Related Functions

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pg_proctab--0.0.9-compat extension
# pg_proctab--0.0.10-compat extension
comment = 'Provide compatibility for pg_proctab'
relocatable = true
requires = pgnodemx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* contrib/pgnodemx/pg_proctab--0.0.9-compat.sql */
/* contrib/pgnodemx/pg_proctab--0.0.10-compat.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pg_proctab VERSION 0.0.9-compat" to load this file. \quit
\echo Use "CREATE EXTENSION pg_proctab VERSION 0.0.10-compat" to load this file. \quit

/*
* Functions to provide a pg_proctab compatible interface.
Expand Down
4 changes: 2 additions & 2 deletions pg_proctab.control
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pgnodemx pg_proctab--0.0.9-compat extension
comment = 'Placeholder - see pg_proctab--0.0.9-compat.control'
# pgnodemx pg_proctab--0.0.10-compat extension
comment = 'Placeholder - see pg_proctab--0.0.10-compat.control'

0 comments on commit 1e23ba3

Please sign in to comment.