Fix a bug that pg_reorg cannot parse index definitions with reserved named columns,
i.e, it failed to parse quoted column names. (bug #1010828)
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
# SPEC file for pg_reorg
|
||||
# Copyright(C) 2009-2010 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
||||
%define sname pg_reorg
|
||||
|
||||
Summary: Reorganize tables in PostgreSQL databases without any locks.
|
||||
Name: %{sname}
|
||||
Version: 1.1.1
|
||||
Version: 1.1.2
|
||||
Release: 1%{?dist}
|
||||
License: BSD
|
||||
Group: Applications/Databases
|
||||
Source0: http://pgfoundry.org/frs/download.php/1301/%{sname}-%{version}.tar.gz
|
||||
Source0: %{sname}-%{version}.tar.gz
|
||||
URL: http://pgfoundry.org/projects/%{sname}/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
||||
|
||||
@ -14,15 +16,12 @@ BuildRequires: postgresql-devel, postgresql
|
||||
Requires: postgresql
|
||||
|
||||
%description
|
||||
|
||||
pg_reorg can re-organize tables on a postgres database without any locks so that you can retrieve or update rows in tables being reorganized. The module is developed to be a better alternative of CLUSTER and VACUUM FULL.
|
||||
pg_reorg can re-organize tables on a postgres database without any locks so that
|
||||
you can retrieve or update rows in tables being reorganized.
|
||||
The module is developed to be a better alternative of CLUSTER and VACUUM FULL.
|
||||
|
||||
%prep
|
||||
rm -rf %{_libdir}/pgsql/pgxs/src/backend/
|
||||
rm -rf %{_builddir}/src
|
||||
rm -rf %{_builddir}/%{sname}
|
||||
|
||||
%setup -n %{sname}
|
||||
%setup -q -n %{sname}-%{version}
|
||||
|
||||
%build
|
||||
USE_PGXS=1 make %{?_smp_mflags}
|
||||
@ -31,8 +30,12 @@ USE_PGXS=1 make %{?_smp_mflags}
|
||||
rm -rf %{buildroot}
|
||||
USE_PGXS=1 make DESTDIR=%{buildroot} install
|
||||
|
||||
%define pg_sharedir
|
||||
install -m 755 bin/pg_reorg %{buildroot}%{_bindir}/pg_reorg
|
||||
install -m 755 lib/pg_reorg.so %{buildroot}%{_libdir}/pgsql/pg_reorg.so
|
||||
install -m 644 lib/pg_reorg.sql %{buildroot}%{_datadir}/pgsql/contrib/pg_reorg.sql
|
||||
install -m 644 lib/uninstall_pg_reorg.sql %{buildroot}%{_datadir}/pgsql/contrib/uninstall_pg_reorg.sql
|
||||
|
||||
%define pg_sharedir
|
||||
|
||||
%files
|
||||
%defattr(755,root,root,755)
|
||||
@ -44,9 +47,9 @@ USE_PGXS=1 make DESTDIR=%{buildroot} install
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
rm -rf %{_libdir}/pgsql/pgxs/src/backend/
|
||||
|
||||
%changelog
|
||||
* Thu Apr 22 2010 - NTT OSS Center <itagaki.takahiro@oss.ntt.co.jp> 1.1.2-1
|
||||
* Mon Jan 15 2010 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.8-1
|
||||
* Tue Sep 08 2009 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.6-1
|
||||
* Fri May 15 2009 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.4-1
|
||||
|
Reference in New Issue
Block a user