Skip to content

Commit 8d7ce91

Browse files
author
Antonin Houska
committed
Fixed version number.
Accidentally, I bumped the version number twice within the same development cycle. While fixing that, added a call of the new PG_MODULE_MAGIC_EXT macro.
1 parent 6caef80 commit 8d7ce91

File tree

4 files changed

+24
-27
lines changed

4 files changed

+24
-27
lines changed

pg_rewrite--1.1--1.2.sql

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,22 @@
33
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
44
\echo Use "ALTER EXTENSION pg_rewrite UPDATE TO '1.2'" to load this file. \quit
55

6-
-- No SQL changes for this upgrade.
6+
DROP FUNCTION partition_table(text, text, text);
7+
8+
CREATE FUNCTION rewrite_table(
9+
src_table text,
10+
dst_table text,
11+
src_table_new text)
12+
RETURNS void
13+
AS 'MODULE_PATHNAME', 'rewrite_table'
14+
LANGUAGE C
15+
STRICT;
16+
17+
CREATE FUNCTION rewrite_table_nowait(
18+
src_table text,
19+
dst_table text,
20+
src_table_new text)
21+
RETURNS void
22+
AS 'MODULE_PATHNAME', 'rewrite_table_nowait'
23+
LANGUAGE C
24+
STRICT;

pg_rewrite--1.2--1.3.sql

Lines changed: 0 additions & 25 deletions
This file was deleted.

pg_rewrite.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@
7575
#include "utils/syscache.h"
7676
#include "utils/varlena.h"
7777

78+
#ifdef PG_MODULE_MAGIC_EXT
79+
PG_MODULE_MAGIC_EXT(.name = "pg_rewrite", .version = "1.2");
80+
#else
7881
PG_MODULE_MAGIC;
82+
#endif
7983

8084
#define REPL_SLOT_BASE_NAME "pg_rewrite_slot_"
8185
#define REPL_PLUGIN_NAME "pg_rewrite"

pg_rewrite.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pg_rewrite extension
22
comment = 'Tool for maintenance that requires table rewriting.'
3-
default_version = '1.3'
3+
default_version = '1.2'
44
module_pathname = '$libdir/pg_rewrite'
55
relocatable = true

0 commit comments

Comments
 (0)