Skip to content

Commit df06b97

Browse files
author
Antonin Houska
committed
Set version number to 2.0.
This reflects the functional and UI changes better than changing 1.1 to 1.2. Also it makes it easier to handle accidental publishing of an incomplete version 1.2 (accidentally marked 1.3).
1 parent c8e21af commit df06b97

File tree

6 files changed

+22
-4
lines changed

6 files changed

+22
-4
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ OBJS = pg_rewrite.o concurrent.o $(WIN32RES)
44
PGFILEDESC = "pg_rewrite - tools for maintenance that requires table rewriting."
55

66
EXTENSION = pg_rewrite
7-
DATA = pg_rewrite--1.0.sql pg_rewrite--1.0--1.1.sql pg_rewrite--1.1--1.2.sql
7+
DATA = pg_rewrite--1.0.sql pg_rewrite--1.0--1.1.sql pg_rewrite--1.1--1.2.sql\
8+
pg_rewrite--1.2--2.0.sql pg_rewrite--1.3--2.0.sql
89
DOCS = pg_rewrite.md
910

1011
REGRESS = pg_rewrite generated

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Release 1.2
1+
Release 2.0
22
===========
33

44
1. This release makes the extension useful in more use cases.

pg_rewrite--1.2--2.0.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* pg_rewrite--1.2--2.0.sql */
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use "ALTER EXTENSION pg_rewrite UPDATE TO '2.0'" to load this file. \quit

pg_rewrite--1.3--2.0.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* pg_rewrite--1.3--2.0.sql */
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use "ALTER EXTENSION pg_rewrite UPDATE TO '2.0'" to load this file. \quit
5+
6+
CREATE FUNCTION rewrite_table_nowait(
7+
src_table text,
8+
dst_table text,
9+
src_table_new text)
10+
RETURNS void
11+
AS 'MODULE_PATHNAME', 'rewrite_table_nowait'
12+
LANGUAGE C
13+
STRICT;

pg_rewrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
#include "utils/varlena.h"
7878

7979
#ifdef PG_MODULE_MAGIC_EXT
80-
PG_MODULE_MAGIC_EXT(.name = "pg_rewrite", .version = "1.2");
80+
PG_MODULE_MAGIC_EXT(.name = "pg_rewrite", .version = "2.0");
8181
#else
8282
PG_MODULE_MAGIC;
8383
#endif

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.2'
3+
default_version = '2.0'
44
module_pathname = '$libdir/pg_rewrite'
55
relocatable = true

0 commit comments

Comments
 (0)