From 0a3456e453cc76ecf5c1c5ece5d5c201a5313a07 Mon Sep 17 00:00:00 2001 From: Kyotaro Horiguchi Date: Tue, 13 Nov 2018 15:54:20 +0900 Subject: [PATCH] Change version to 1.3.1. 1.3.0 has a crash bug in Describe message of extended protocol path. If server receives the message after invalidation of corresponding query cache, pg_hint_plan crashes. --- COPYRIGHT | 2 +- Makefile | 6 +++--- SPECS/pg_hint_plan10.spec | 12 ++++++++---- pg_hint_plan--1.3.0--1.3.1.sql | 6 ++++++ pg_hint_plan--1.3.0.sql => pg_hint_plan--1.3.1.sql | 0 pg_hint_plan.control | 2 +- 6 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 pg_hint_plan--1.3.0--1.3.1.sql rename pg_hint_plan--1.3.0.sql => pg_hint_plan--1.3.1.sql (100%) diff --git a/COPYRIGHT b/COPYRIGHT index 498483e..631bdc8 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,4 +1,4 @@ -Copyright (c) 2012-2017, NIPPON TELEGRAPH AND TELEPHONE CORPORATION +Copyright (c) 2012-2018, NIPPON TELEGRAPH AND TELEPHONE CORPORATION All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/Makefile b/Makefile index ff3a535..0f3b19e 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ # # pg_hint_plan: Makefile # -# Copyright (c) 2012-2017, NIPPON TELEGRAPH AND TELEPHONE CORPORATION +# Copyright (c) 2012-2018, NIPPON TELEGRAPH AND TELEPHONE CORPORATION # MODULES = pg_hint_plan -HINTPLANVER = 1.3.0 +HINTPLANVER = 1.3.1 REGRESS = init base_plan pg_hint_plan ut-init ut-A ut-S ut-J ut-L ut-G ut-R ut-fdw ut-W ut-T ut-fini @@ -14,7 +14,7 @@ REGRESSION_EXPECTED = expected/init.out expected/base_plan.out expected/pg_hint_ REGRESS_OPTS = --encoding=UTF8 EXTENSION = pg_hint_plan -DATA = pg_hint_plan--1.3.0.sql +DATA = pg_hint_plan--$(HINTPLANVER).sql EXTRA_CLEAN = sql/ut-fdw.sql expected/ut-fdw.out RPMS diff --git a/SPECS/pg_hint_plan10.spec b/SPECS/pg_hint_plan10.spec index 7965bdb..74c452f 100644 --- a/SPECS/pg_hint_plan10.spec +++ b/SPECS/pg_hint_plan10.spec @@ -1,5 +1,5 @@ # SPEC file for pg_store_plans -# Copyright(C) 2017 NIPPON TELEGRAPH AND TELEPHONE CORPORATION +# Copyright(C) 2018 NIPPON TELEGRAPH AND TELEPHONE CORPORATION %define _pgdir /usr/pgsql-10 %define _bindir %{_pgdir}/bin @@ -14,7 +14,7 @@ ## Set general information for pg_store_plans. Summary: Optimizer hint on PostgreSQL 10 Name: pg_hint_plan10 -Version: 1.3.0 +Version: 1.3.1 Release: 1%{?dist} License: BSD Group: Applications/Databases @@ -57,7 +57,8 @@ rm -rf %{buildroot} install -d %{buildroot}%{_libdir} install pg_hint_plan.so %{buildroot}%{_libdir}/pg_hint_plan.so install -d %{buildroot}%{_datadir}/extension -install -m 644 pg_hint_plan--1.3.0.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.3.0.sql +install -m 644 pg_hint_plan--1.3.1.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.3.1.sql +install -m 644 pg_hint_plan--1.3.0--1.3.1.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.3.0--1.3.1.sql install -m 644 pg_hint_plan.control %{buildroot}%{_datadir}/extension/pg_hint_plan.control %clean @@ -67,11 +68,14 @@ rm -rf %{buildroot} %defattr(0755,root,root) %{_libdir}/pg_hint_plan.so %defattr(0644,root,root) -%{_datadir}/extension/pg_hint_plan--1.3.0.sql +%{_datadir}/extension/pg_hint_plan--1.3.1.sql +%{_datadir}/extension/pg_hint_plan--1.3.0--1.3.1.sql %{_datadir}/extension/pg_hint_plan.control # History of pg_hint_plan. %changelog +* Tue Jun 08 2018 Kyotaro Horiguchi +- Fixed a crash bug. Version 1.3.1. * Tue Oct 10 2017 Kyotaro Horiguchi - Support PostgreSQL 10. Version 1.3.0. * Tue Feb 7 2017 Kyotaro Horiguchi diff --git a/pg_hint_plan--1.3.0--1.3.1.sql b/pg_hint_plan--1.3.0--1.3.1.sql new file mode 100644 index 0000000..f09e407 --- /dev/null +++ b/pg_hint_plan--1.3.0--1.3.1.sql @@ -0,0 +1,6 @@ +/* pg_hint_plan/pg_hint_plan--1.3.0--1.3.1.sql */ + +-- complain if script is sourced in psql, rather than via CREATE EXTENSION +\echo Use "CREATE EXTENSION pg_hint_plan" to load this file. \quit + +-- nothing to do upgrading from 1.3.0. diff --git a/pg_hint_plan--1.3.0.sql b/pg_hint_plan--1.3.1.sql similarity index 100% rename from pg_hint_plan--1.3.0.sql rename to pg_hint_plan--1.3.1.sql diff --git a/pg_hint_plan.control b/pg_hint_plan.control index f8e1282..677b86b 100644 --- a/pg_hint_plan.control +++ b/pg_hint_plan.control @@ -1,6 +1,6 @@ # pg_hint_plan extension comment = '' -default_version = '1.3.0' +default_version = '1.3.1' relocatable = false schema = hint_plan -- 2.11.0