Skip to content

Commit b7799c1

Browse files
committed
Fork the pg_repack extension
1 parent 0f8c33f commit b7799c1

32 files changed

+418
-418
lines changed

META.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "pg_reorg",
2+
"name": "pg_repack",
33
"abstract": "PostgreSQL module for data reorganization",
4-
"description": "pg_reorg is a PostgreSQL module allowing to reorganize a table without any locks.",
4+
"description": "pg_repack is a PostgreSQL module allowing to reorganize a table without any locks.",
55
"version": "1.2dev0",
66
"maintainer": "Takahiro Itagaki",
77
"tags": [ "bloat", "maintenance", "vacuum", "cluster" ],
88
"release_status": "stable",
99
"license": "bsd",
1010
"provides": {
11-
"pg_reorg": {
12-
"file": "lib/pg_reorg.sql",
11+
"pg_repack": {
12+
"file": "lib/pg_repack.sql",
1313
"version": "1.2dev0",
1414
"abstract": "PostgreSQL module for data reorganization"
1515
}
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"resources": {
25-
"homepage": "http://reorg.projects.postgresql.org/",
25+
"homepage": "http://repack.projects.postgresql.org/",
2626
"bugtracker": {
2727
"web": "http://pgfoundry.org/tracker/?atid=1376&group_id=1000411&func=browse"
2828
}

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# pg_reorg: Makefile
2+
# pg_repack: Makefile
33
#
44
# Portions Copyright (c) 2008-2011, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
55
# Portions Copyright (c) 2011, Itagaki Takahiro
@@ -17,7 +17,7 @@ PG_CONFIG = pg_config
1717
PGXS := $(shell $(PG_CONFIG) --pgxs)
1818
include $(PGXS)
1919
else
20-
subdir = pg_reorg
20+
subdir = pg_repack
2121
include $(makefile_global)
2222
include $(top_srcdir)/contrib/contrib-global.mk
2323
endif
@@ -29,7 +29,7 @@ VERSION = $(shell $(PG_CONFIG) --version | awk '{print $$2}')
2929

3030
# We support PostgreSQL 8.3 and later.
3131
ifneq ($(shell echo $(VERSION) | grep -E "^7\.|^8\.[012]"),)
32-
$(error pg_reorg requires PostgreSQL 8.3 or later. This is $(VERSION))
32+
$(error pg_repack requires PostgreSQL 8.3 or later. This is $(VERSION))
3333
endif
3434

3535

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
pg_reorg -- UNOFFICIAL REPOSITORY
1+
pg_repack -- UNOFFICIAL REPOSITORY
22
=================================
33

4-
This is NOT the official pg_reorg repository. Official development is
5-
currently on pgFoundry: http://pgfoundry.org/projects/reorg
4+
This is NOT the official pg_repack repository. Official development is
5+
currently on pgFoundry: http://pgfoundry.org/projects/repack
66

7-
This repository (and the url https://github.com/reorg) has been set up by me
7+
This repository (and the url https://github.com/repack) has been set up by me
88
(Daniele) to provide greater visibility and easier contribution to the
9-
pg_reorg project, an intention apparent from a recent `mailing list
9+
pg_repack project, an intention apparent from a recent `mailing list
1010
discussion`__.
1111

1212
.. __: http://archives.postgresql.org/pgsql-hackers/2012-09/msg00746.php
@@ -18,9 +18,9 @@ administrative privileges, keeping total control of the project.
1818

1919
This repository has been created using the command::
2020

21-
git cvsimport -v -d :pserver:anonymous@cvs.pgfoundry.org:/cvsroot/reorg -A pg_reorg.auths -C pg_reorg -k -r cvs pg_reorg
21+
git cvsimport -v -d :pserver:anonymous@cvs.pgfoundry.org:/cvsroot/repack -A pg_repack.auths -C pg_repack -k -r cvs pg_repack
2222

23-
with a suitably populated pg_reorg.auths.
23+
with a suitably populated pg_repack.auths.
2424

2525
I assume new CSV commits will be added to ``remotes/cvs/master``, but I'm not
2626
sure yet, so please consider this repository unstable until the development

SPECS/pg_reorg84.spec renamed to SPECS/pg_repack84.spec

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# SPEC file for pg_reorg
1+
# SPEC file for pg_repack
22
# Copyright(C) 2009-2010 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
3-
%define sname pg_reorg
3+
%define sname pg_repack
44

55
Summary: Reorganize tables in PostgreSQL databases without any locks.
66
Name: %{sname}
@@ -16,7 +16,7 @@ BuildRequires: postgresql-devel, postgresql
1616
Requires: postgresql, postgresql-libs
1717

1818
%description
19-
pg_reorg can re-organize tables on a postgres database without any locks so that
19+
pg_repack can re-organize tables on a postgres database without any locks so that
2020
you can retrieve or update rows in tables being reorganized.
2121
The module is developed to be a better alternative of CLUSTER and VACUUM FULL.
2222

@@ -34,20 +34,20 @@ install -d %{buildroot}%{_libdir}/pgsql
3434
install -d %{buildroot}%{_bindir}
3535
install -d %{buildroot}%{_datadir}/pgsql/contrib
3636

37-
install -m 755 bin/pg_reorg %{buildroot}%{_bindir}/pg_reorg
38-
install -m 755 lib/pg_reorg.so %{buildroot}%{_libdir}/pgsql/pg_reorg.so
39-
install -m 644 lib/pg_reorg.sql %{buildroot}%{_datadir}/pgsql/contrib/pg_reorg.sql
40-
install -m 644 lib/uninstall_pg_reorg.sql %{buildroot}%{_datadir}/pgsql/contrib/uninstall_pg_reorg.sql
37+
install -m 755 bin/pg_repack %{buildroot}%{_bindir}/pg_repack
38+
install -m 755 lib/pg_repack.so %{buildroot}%{_libdir}/pgsql/pg_repack.so
39+
install -m 644 lib/pg_repack.sql %{buildroot}%{_datadir}/pgsql/contrib/pg_repack.sql
40+
install -m 644 lib/uninstall_pg_repack.sql %{buildroot}%{_datadir}/pgsql/contrib/uninstall_pg_repack.sql
4141

4242
%define pg_sharedir
4343

4444
%files
4545
%defattr(755,root,root,755)
46-
%{_bindir}/pg_reorg
47-
%{_libdir}/pgsql/pg_reorg.so
46+
%{_bindir}/pg_repack
47+
%{_libdir}/pgsql/pg_repack.so
4848
%defattr(644,root,root,755)
49-
%{_datadir}/pgsql/contrib/pg_reorg.sql
50-
%{_datadir}/pgsql/contrib/uninstall_pg_reorg.sql
49+
%{_datadir}/pgsql/contrib/pg_repack.sql
50+
%{_datadir}/pgsql/contrib/uninstall_pg_repack.sql
5151

5252
%clean
5353
rm -rf %{buildroot}

SPECS/pg_reorg90.spec renamed to SPECS/pg_repack90.spec

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# SPEC file for pg_reorg
1+
# SPEC file for pg_repack
22
# Copyright(C) 2009-2010 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
3-
%define sname pg_reorg
3+
%define sname pg_repack
44

55
%define _pgdir /usr/pgsql-9.0
66
%define _bindir %{_pgdir}/bin
@@ -21,7 +21,7 @@ BuildRequires: postgresql90-devel, postgresql90
2121
Requires: postgresql90, postgresql90-libs
2222

2323
%description
24-
pg_reorg can re-organize tables on a postgres database without any locks so that
24+
pg_repack can re-organize tables on a postgres database without any locks so that
2525
you can retrieve or update rows in tables being reorganized.
2626
The module is developed to be a better alternative of CLUSTER and VACUUM FULL.
2727

@@ -39,20 +39,20 @@ install -d %{buildroot}%{_libdir}
3939
install -d %{buildroot}%{_bindir}
4040
install -d %{buildroot}%{_datadir}/contrib
4141

42-
install -m 755 bin/pg_reorg %{buildroot}%{_bindir}/pg_reorg
43-
install -m 755 lib/pg_reorg.so %{buildroot}%{_libdir}/pg_reorg.so
44-
install -m 644 lib/pg_reorg.sql %{buildroot}%{_datadir}/contrib/pg_reorg.sql
45-
install -m 644 lib/uninstall_pg_reorg.sql %{buildroot}%{_datadir}/contrib/uninstall_pg_reorg.sql
42+
install -m 755 bin/pg_repack %{buildroot}%{_bindir}/pg_repack
43+
install -m 755 lib/pg_repack.so %{buildroot}%{_libdir}/pg_repack.so
44+
install -m 644 lib/pg_repack.sql %{buildroot}%{_datadir}/contrib/pg_repack.sql
45+
install -m 644 lib/uninstall_pg_repack.sql %{buildroot}%{_datadir}/contrib/uninstall_pg_repack.sql
4646

4747
%define pg_sharedir
4848

4949
%files
5050
%defattr(755,root,root,755)
51-
%{_bindir}/pg_reorg
52-
%{_libdir}/pg_reorg.so
51+
%{_bindir}/pg_repack
52+
%{_libdir}/pg_repack.so
5353
%defattr(644,root,root,755)
54-
%{_datadir}/contrib/pg_reorg.sql
55-
%{_datadir}/contrib/uninstall_pg_reorg.sql
54+
%{_datadir}/contrib/pg_repack.sql
55+
%{_datadir}/contrib/uninstall_pg_repack.sql
5656

5757
%clean
5858
rm -rf %{buildroot}

bin/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.deps/
2-
/pg_reorg
2+
/pg_repack
33
/results/
44
/sql/init.sql
55
/sql/init-*.*.sql

bin/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#
2-
# pg_reorg: bin/Makefile
2+
# pg_repack: bin/Makefile
33
#
44
# Portions Copyright (c) 2008-2012, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
55
# Portions Copyright (c) 2011, Itagaki Takahiro
66
#
7-
SRCS = pg_reorg.c pgut/pgut.c pgut/pgut-fe.c
7+
SRCS = pg_repack.c pgut/pgut.c pgut/pgut-fe.c
88
OBJS = $(SRCS:.c=.o)
9-
PROGRAM = pg_reorg
10-
REGRESS = init reorg
9+
PROGRAM = pg_repack
10+
REGRESS = init repack
1111

1212
EXTRA_CLEAN = sql/init-$(MAJORVERSION).sql sql/init.sql
1313

bin/expected/reorg.out renamed to bin/expected/repack.out

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ SELECT * FROM tbl_with_dropped_toast;
111111
(2 rows)
112112

113113
--
114-
-- do reorg
114+
-- do repack
115115
--
116-
\! pg_reorg --dbname=contrib_regression --no-order
116+
\! pg_repack --dbname=contrib_regression --no-order
117117
WARNING: skipping invalid index: CREATE UNIQUE INDEX idx_badindex_n ON tbl_badindex USING btree (n)
118-
\! pg_reorg --dbname=contrib_regression
119-
\! pg_reorg --dbname=contrib_regression --table=tbl_cluster
118+
\! pg_repack --dbname=contrib_regression
119+
\! pg_repack --dbname=contrib_regression --table=tbl_cluster
120120
--
121121
-- after
122122
--
@@ -298,13 +298,13 @@ CREATE TABLE tbl_nn (col1 int NOT NULL, col2 int NOT NULL);
298298
CREATE TABLE tbl_uk (col1 int NOT NULL, col2 int , UNIQUE(col1, col2));
299299
CREATE TABLE tbl_nn_uk (col1 int NOT NULL, col2 int NOT NULL, UNIQUE(col1, col2));
300300
CREATE TABLE tbl_pk_uk (col1 int NOT NULL, col2 int NOT NULL, PRIMARY KEY(col1, col2), UNIQUE(col2, col1));
301-
\! pg_reorg --dbname=contrib_regression --no-order --table=tbl_nn
301+
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn
302302
ERROR: relation "tbl_nn" must have a primary key or not-null unique keys
303303
-- => ERROR
304-
\! pg_reorg --dbname=contrib_regression --no-order --table=tbl_uk
304+
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_uk
305305
ERROR: relation "tbl_uk" must have a primary key or not-null unique keys
306306
-- => ERROR
307-
\! pg_reorg --dbname=contrib_regression --no-order --table=tbl_nn_uk
307+
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_uk
308308
-- => OK
309-
\! pg_reorg --dbname=contrib_regression --no-order --table=tbl_pk_uk
309+
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_pk_uk
310310
-- => OK

0 commit comments

Comments
 (0)