mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Convert contrib modules to use the extension facility.
This isn't fully tested as yet, in particular I'm not sure that the "foo--unpackaged--1.0.sql" scripts are OK. But it's time to get some buildfarm cycles on it. sepgsql is not converted to an extension, mainly because it seems to require a very nonstandard installation process. Dimitri Fontaine and Tom Lane
This commit is contained in:
1
contrib/pageinspect/.gitignore
vendored
1
contrib/pageinspect/.gitignore
vendored
@ -1 +0,0 @@
|
||||
/pageinspect.sql
|
@ -1,15 +1,10 @@
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# pageinspect Makefile
|
||||
#
|
||||
# contrib/pageinspect/Makefile
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
MODULE_big = pageinspect
|
||||
OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o
|
||||
DATA_built = pageinspect.sql
|
||||
DATA = uninstall_pageinspect.sql
|
||||
|
||||
EXTENSION = pageinspect
|
||||
DATA = pageinspect--1.0.sql pageinspect--unpackaged--1.0.sql
|
||||
|
||||
ifdef USE_PGXS
|
||||
PG_CONFIG = pg_config
|
||||
|
@ -1,7 +1,4 @@
|
||||
/* contrib/pageinspect/pageinspect.sql.in */
|
||||
|
||||
-- Adjust this setting to control where the objects get created.
|
||||
SET search_path = public;
|
||||
/* contrib/pageinspect/pageinspect--1.0.sql */
|
||||
|
||||
--
|
||||
-- get_raw_page()
|
10
contrib/pageinspect/pageinspect--unpackaged--1.0.sql
Normal file
10
contrib/pageinspect/pageinspect--unpackaged--1.0.sql
Normal file
@ -0,0 +1,10 @@
|
||||
/* contrib/pageinspect/pageinspect--unpackaged--1.0.sql */
|
||||
|
||||
ALTER EXTENSION pageinspect ADD function get_raw_page(text,integer);
|
||||
ALTER EXTENSION pageinspect ADD function get_raw_page(text,text,integer);
|
||||
ALTER EXTENSION pageinspect ADD function page_header(bytea);
|
||||
ALTER EXTENSION pageinspect ADD function heap_page_items(bytea);
|
||||
ALTER EXTENSION pageinspect ADD function bt_metap(text);
|
||||
ALTER EXTENSION pageinspect ADD function bt_page_stats(text,integer);
|
||||
ALTER EXTENSION pageinspect ADD function bt_page_items(text,integer);
|
||||
ALTER EXTENSION pageinspect ADD function fsm_page_contents(bytea);
|
5
contrib/pageinspect/pageinspect.control
Normal file
5
contrib/pageinspect/pageinspect.control
Normal file
@ -0,0 +1,5 @@
|
||||
# pageinspect extension
|
||||
comment = 'inspect the contents of database pages at a low level'
|
||||
default_version = '1.0'
|
||||
module_pathname = '$libdir/pageinspect'
|
||||
relocatable = true
|
@ -1,13 +0,0 @@
|
||||
/* contrib/pageinspect/uninstall_pageinspect.sql */
|
||||
|
||||
-- Adjust this setting to control where the objects get dropped.
|
||||
SET search_path = public;
|
||||
|
||||
DROP FUNCTION get_raw_page(text, int4);
|
||||
DROP FUNCTION get_raw_page(text, text, int4);
|
||||
DROP FUNCTION page_header(bytea);
|
||||
DROP FUNCTION heap_page_items(bytea);
|
||||
DROP FUNCTION bt_metap(text);
|
||||
DROP FUNCTION bt_page_stats(text, int4);
|
||||
DROP FUNCTION bt_page_items(text, int4);
|
||||
DROP FUNCTION fsm_page_contents(bytea);
|
Reference in New Issue
Block a user