diff options
author | Robert Haas | 2016-06-09 21:18:12 +0000 |
---|---|---|
committer | Robert Haas | 2016-06-09 21:18:12 +0000 |
commit | 06d7fd6e2975db3273b14116a471f71fef9e0102 (patch) | |
tree | cbe4076a601bbbb7c2e6e85d6d8fa1ff90bd923c | |
parent | e3b607cd7a949958bdccb056b5c3cb2389f588ad (diff) |
Update pg_buffercache extension for parallel query.
The pg_buffercache_pages function provided by this extension is
PARALLEL SAFE.
Andreas Karlsson
-rw-r--r-- | contrib/pg_buffercache/Makefile | 3 | ||||
-rw-r--r-- | contrib/pg_buffercache/pg_buffercache--1.1--1.2.sql | 6 | ||||
-rw-r--r-- | contrib/pg_buffercache/pg_buffercache--1.2.sql (renamed from contrib/pg_buffercache/pg_buffercache--1.1.sql) | 4 | ||||
-rw-r--r-- | contrib/pg_buffercache/pg_buffercache.control | 2 |
4 files changed, 11 insertions, 4 deletions
diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 065d3d690a..497dbeb229 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_buffercache/Makefile @@ -4,7 +4,8 @@ MODULE_big = pg_buffercache OBJS = pg_buffercache_pages.o $(WIN32RES) EXTENSION = pg_buffercache -DATA = pg_buffercache--1.1.sql pg_buffercache--1.0--1.1.sql pg_buffercache--unpackaged--1.0.sql +DATA = pg_buffercache--1.2.sql pg_buffercache--1.1--1.2.sql \ + pg_buffercache--1.0--1.1.sql pg_buffercache--unpackaged--1.0.sql PGFILEDESC = "pg_buffercache - monitoring of shared buffer cache in real-time" ifdef USE_PGXS diff --git a/contrib/pg_buffercache/pg_buffercache--1.1--1.2.sql b/contrib/pg_buffercache/pg_buffercache--1.1--1.2.sql new file mode 100644 index 0000000000..5997aad29c --- /dev/null +++ b/contrib/pg_buffercache/pg_buffercache--1.1--1.2.sql @@ -0,0 +1,6 @@ +/* contrib/pg_buffercache/pg_buffercache--1.1--1.2.sql */ + +-- complain if script is sourced in psql, rather than via ALTER EXTENSION +\echo Use "ALTER EXTENSION pg_buffercache UPDATE TO '1.2'" to load this file. \quit + +ALTER FUNCTION pg_buffercache_pages() PARALLEL SAFE; diff --git a/contrib/pg_buffercache/pg_buffercache--1.1.sql b/contrib/pg_buffercache/pg_buffercache--1.2.sql index f3b6482fa6..6ee5d8435b 100644 --- a/contrib/pg_buffercache/pg_buffercache--1.1.sql +++ b/contrib/pg_buffercache/pg_buffercache--1.2.sql @@ -1,4 +1,4 @@ -/* contrib/pg_buffercache/pg_buffercache--1.1.sql */ +/* contrib/pg_buffercache/pg_buffercache--1.2.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION pg_buffercache" to load this file. \quit @@ -7,7 +7,7 @@ CREATE FUNCTION pg_buffercache_pages() RETURNS SETOF RECORD AS 'MODULE_PATHNAME', 'pg_buffercache_pages' -LANGUAGE C; +LANGUAGE C PARALLEL SAFE; -- Create a view for convenient access. CREATE VIEW pg_buffercache AS diff --git a/contrib/pg_buffercache/pg_buffercache.control b/contrib/pg_buffercache/pg_buffercache.control index 5494e2fae5..a4d664f3fa 100644 --- a/contrib/pg_buffercache/pg_buffercache.control +++ b/contrib/pg_buffercache/pg_buffercache.control @@ -1,5 +1,5 @@ # pg_buffercache extension comment = 'examine the shared buffer cache' -default_version = '1.1' +default_version = '1.2' module_pathname = '$libdir/pg_buffercache' relocatable = true |