mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Update pg_prewarm extension for parallel query.
The pg_prewarm function provided by this extension is PARALLEL SAFE. Andreas Karlsson
This commit is contained in:
parent
42d4257a06
commit
6b3586caa8
@ -4,7 +4,7 @@ MODULE_big = pg_prewarm
|
||||
OBJS = pg_prewarm.o $(WIN32RES)
|
||||
|
||||
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"
|
||||
|
||||
ifdef USE_PGXS
|
||||
|
6
contrib/pg_prewarm/pg_prewarm--1.0--1.1.sql
Normal file
6
contrib/pg_prewarm/pg_prewarm--1.0--1.1.sql
Normal file
@ -0,0 +1,6 @@
|
||||
/* 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;
|
@ -1,4 +1,4 @@
|
||||
/* 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
|
||||
\echo Use "CREATE EXTENSION pg_prewarm" to load this file. \quit
|
||||
@ -11,4 +11,4 @@ CREATE FUNCTION pg_prewarm(regclass,
|
||||
last_block int8 default null)
|
||||
RETURNS int8
|
||||
AS 'MODULE_PATHNAME', 'pg_prewarm'
|
||||
LANGUAGE C;
|
||||
LANGUAGE C PARALLEL SAFE;
|
@ -1,5 +1,5 @@
|
||||
# pg_prewarm extension
|
||||
comment = 'prewarm relation data'
|
||||
default_version = '1.0'
|
||||
default_version = '1.1'
|
||||
module_pathname = '$libdir/pg_prewarm'
|
||||
relocatable = true
|
||||
|
Loading…
Reference in New Issue
Block a user