Commit 6b3586ca authored by Robert Haas's avatar Robert Haas

Update pg_prewarm extension for parallel query.

The pg_prewarm function provided by this extension is PARALLEL SAFE.

Andreas Karlsson
parent 42d4257a
...@@ -4,7 +4,7 @@ MODULE_big = pg_prewarm ...@@ -4,7 +4,7 @@ MODULE_big = pg_prewarm
OBJS = pg_prewarm.o $(WIN32RES) OBJS = pg_prewarm.o $(WIN32RES)
EXTENSION = pg_prewarm EXTENSION = pg_prewarm
DATA = pg_prewarm--1.0.sql DATA = pg_prewarm--1.1.sql pg_prewarm--1.0--1.1.sql
PGFILEDESC = "pg_prewarm - preload relation data into system buffer cache" PGFILEDESC = "pg_prewarm - preload relation data into system buffer cache"
ifdef USE_PGXS ifdef USE_PGXS
......
/* contrib/pg_prewarm/pg_prewarm--1.0--1.1.sql */
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION pg_prewarm UPDATE TO '1.1'" to load this file. \quit
ALTER FUNCTION pg_prewarm(regclass, text, text, int8, int8) PARALLEL SAFE;
/* contrib/pg_prewarm/pg_prewarm--1.0.sql */ /* contrib/pg_prewarm/pg_prewarm--1.1.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION -- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pg_prewarm" to load this file. \quit \echo Use "CREATE EXTENSION pg_prewarm" to load this file. \quit
...@@ -11,4 +11,4 @@ CREATE FUNCTION pg_prewarm(regclass, ...@@ -11,4 +11,4 @@ CREATE FUNCTION pg_prewarm(regclass,
last_block int8 default null) last_block int8 default null)
RETURNS int8 RETURNS int8
AS 'MODULE_PATHNAME', 'pg_prewarm' AS 'MODULE_PATHNAME', 'pg_prewarm'
LANGUAGE C; LANGUAGE C PARALLEL SAFE;
# pg_prewarm extension # pg_prewarm extension
comment = 'prewarm relation data' comment = 'prewarm relation data'
default_version = '1.0' default_version = '1.1'
module_pathname = '$libdir/pg_prewarm' module_pathname = '$libdir/pg_prewarm'
relocatable = true relocatable = true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment