# pg_stat_plan/Makefile
MODULES = pg_store_plans
-STOREPLANSVER = 1.4
+STOREPLANSVER = 1.5
MODULE_big = pg_store_plans
OBJS = pg_store_plans.o pgsp_json.o pgsp_json_text.o pgsp_explain.o
PG_VERSION := $(shell pg_config --version | sed "s/^PostgreSQL //" | sed "s/\.[0-9]*$$//")
-DATA = pg_store_plans--1.4.sql
+DATA = pg_store_plans--1.5.sql
REGRESS = convert store
REGRESS_OPTS = --temp-config=regress.conf
include $(top_srcdir)/contrib/contrib-global.mk
endif
-STARBALL12 = pg_store_plans12-$(STOREPLANSVER).tar.gz
-STARBALLS = $(STARBALL12)
+STARBALL13 = pg_store_plans13-$(STOREPLANSVER).tar.gz
+STARBALLS = $(STARBALL13)
TARSOURCES = Makefile *.c *.h \
pg_store_plans--*.sql \
## These entries need running server
DBNAME = postgres
-rpms: rpm12
+rpms: rpm13
$(STARBALLS): $(TARSOURCES)
if [ -h $(subst .tar.gz,,$@) ]; then rm $(subst .tar.gz,,$@); fi
tar -chzf $@ $(addprefix $(subst .tar.gz,,$@)/, $^)
rm $(subst .tar.gz,,$@)
-rpm12: $(STARBALL12)
- MAKE_ROOT=`pwd` rpmbuild -bb SPECS/pg_store_plans12.spec
+rpm13: $(STARBALL13)
+ MAKE_ROOT=`pwd` rpmbuild -bb SPECS/pg_store_plans13.spec
testfiles: convert.out convert.sql
# SPEC file for pg_store_plans
# Copyright(C) 2020 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
-%define _pgdir /usr/pgsql-12
+%define _pgdir /usr/pgsql-13
%define _bindir %{_pgdir}/bin
%define _libdir %{_pgdir}/lib
%define _datadir %{_pgdir}/share
%endif
## Set general information for pg_store_plans.
-Summary: Record executed plans on PostgreSQL 12
-Name: pg_store_plans12
-Version: 1.4
+Summary: Record executed plans on PostgreSQL 13
+Name: pg_store_plans13
+Version: 1.5
Release: 1%{?dist}
License: BSD
Group: Applications/Databases
Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
## We use postgresql-devel package
-BuildRequires: postgresql12-devel
-Requires: postgresql12-libs
+BuildRequires: postgresql13-devel
+Requires: postgresql13-libs
## Description for "pg_store_plans"
%description
pg_store_plans provides capability to record statistics for every plan
executed on PostgreSQL.
-Note that this package is available for only PostgreSQL 12.
+Note that this package is available for only PostgreSQL 13.
%package llvmjit
-Requires: postgresql12-server, postgresql12-llvmjit
-Requires: pg_store_plans12 = 1.4
-Summary: Just-in-time compilation support for pg_store_plans12
+Requires: postgresql13-server, postgresql13-llvmjit
+Requires: pg_store_plans13 = 1.5
+Summary: Just-in-time compilation support for pg_store_plans13
%description llvmjit
-Just-in-time compilation support for pg_store_plans12
+Just-in-time compilation support for pg_store_plans13
## pre work for build pg_store_plans
%prep
-PATH=/usr/pgsql-12/bin:$PATH
+PATH=/usr/pgsql-13/bin:$PATH
if [ "${MAKE_ROOT}" != "" ]; then
pushd ${MAKE_ROOT}
make clean %{name}-%{version}.tar.gz
## Set variables for build environment
%build
-PATH=/usr/pgsql-12/bin:$PATH
+PATH=/usr/pgsql-13/bin:$PATH
pg_config
make USE_PGXS=1 %{?_smp_mflags}
## Set variables for install
%install
rm -rf %{buildroot}
-PATH=/usr/pgsql-12/bin:$PATH
+PATH=/usr/pgsql-13/bin:$PATH
make install DESTDIR=%{buildroot}
%clean
%defattr(0755,root,root)
%{_libdir}/pg_store_plans.so
%defattr(0644,root,root)
-%{_datadir}/extension/pg_store_plans--1.4.sql
+%{_datadir}/extension/pg_store_plans--1.5.sql
%{_datadir}/extension/pg_store_plans.control
%files llvmjit
# History of pg_store_plans.
%changelog
+* Wed Jan 27 2021 Kyotaro Horiguchi
+- Version 1.5. Supports PostgreSQL 13
* Thu Jan 30 2020 Kyotaro Horiguchi
- Version 1.4. Supports PostgreSQL 12
* Tue Jan 22 2019 Kyotaro Horiguchi