OSDN Git Service

Change version to 1.1.6. PG93 REL93_1_1_6
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Fri, 8 Jun 2018 05:36:32 +0000 (14:36 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Fri, 8 Jun 2018 05:42:52 +0000 (14:42 +0900)
1.1.5 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.

On the way fixing it, this version took in the following commit of
core.

9680c120e5 Change more places to be less trusting of RestrictInfo.is_pushed_down.

COPYRIGHT
Makefile
SPECS/pg_hint_plan93.spec
pg_hint_plan--1.1.5--1.1.6.sql [new file with mode: 0644]
pg_hint_plan--1.1.6.sql [moved from pg_hint_plan--1.1.5.sql with 100% similarity]
pg_hint_plan.control

index 498483e..631bdc8 100644 (file)
--- 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
index 5ff104a..f1b7928 100644 (file)
--- 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.1.5
+HINTPLANVER = 1.1.6
 
 REGRESS = init base_plan pg_hint_plan ut-init ut-A ut-S ut-J ut-L ut-G ut-R ut-fdw ut-T ut-fini
 
@@ -14,8 +14,9 @@ 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.1.5.sql pg_hint_plan--1.1.3--1.1.4.sql \
-        pg_hint_plan--1.1.4--1.1.5.sql pg_hint_plan--1.1.2--1.1.3.sql
+DATA = pg_hint_plan--1.1.6.sql pg_hint_plan--1.1.5--1.1.6.sql \
+               pg_hint_plan--1.1.4--1.1.5.sql pg_hint_plan--1.1.3--1.1.4.sql \
+               pg_hint_plan--1.1.2--1.1.3.sql
 
 EXTRA_CLEAN = sql/ut-fdw.sql expected/ut-fdw.out
 
index 976ee13..eef2601 100644 (file)
@@ -1,5 +1,5 @@
 # SPEC file for pg_hint_plan
-# Copyright(C) 2012-2017 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
+# Copyright(C) 2012-2018 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
 
 %define _pgdir   /usr/pgsql-9.3
 %define _bindir  %{_pgdir}/bin
@@ -13,7 +13,7 @@
 ## Set general information for pg_hint_plan.
 Summary:    Optimizer hint for PostgreSQL 9.3
 Name:       pg_hint_plan93
-Version:    1.1.5
+Version:    1.1.6
 Release:    1%{?dist}
 License:    BSD
 Group:      Applications/Databases
@@ -60,7 +60,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.1.5.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.5.sql
+install -m 644 pg_hint_plan--1.1.6.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.6.sql
+install -m 644 pg_hint_plan--1.1.5--1.1.6.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.5--1.1.6.sql
 install -m 644 pg_hint_plan--1.1.4--1.1.5.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.4--1.1.5.sql
 install -m 644 pg_hint_plan--1.1.3--1.1.4.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.3--1.1.4.sql
 install -m 644 pg_hint_plan--1.1.2--1.1.3.sql %{buildroot}%{_datadir}/extension/pg_hint_plan--1.1.2--1.1.3.sql
@@ -73,7 +74,8 @@ rm -rf %{buildroot}
 %defattr(0755,root,root)
 %{_libdir}/pg_hint_plan.so
 %defattr(0644,root,root)
-%{_datadir}/extension/pg_hint_plan--1.1.5.sql
+%{_datadir}/extension/pg_hint_plan--1.1.6.sql
+%{_datadir}/extension/pg_hint_plan--1.1.5--1.1.6.sql
 %{_datadir}/extension/pg_hint_plan--1.1.4--1.1.5.sql
 %{_datadir}/extension/pg_hint_plan--1.1.3--1.1.4.sql
 %{_datadir}/extension/pg_hint_plan--1.1.2--1.1.3.sql
@@ -81,6 +83,8 @@ rm -rf %{buildroot}
 
 # History of pg_hint_plan.
 %changelog
+* Fri Jun 08 2018 Kyotaro Horiguchi
+- Fixed a crash bug.
 * Thu Jul 27 2017 Kyotaro Horiguchi
 - Fixed a crash bug.
 * Fri May 19 2017 Kyotaro Horiguchi
diff --git a/pg_hint_plan--1.1.5--1.1.6.sql b/pg_hint_plan--1.1.5--1.1.6.sql
new file mode 100644 (file)
index 0000000..f3d017e
--- /dev/null
@@ -0,0 +1,4 @@
+/* pg_hint_plan/pg_hint_plan--1.1.5-1.1.6.sql */
+
+-- complain if script is sourced in psql, rather than via CREATE EXTENSION
+\echo Use "ALTER EXTENSION pg_hint_plan UPDATE" to load this file. \quit
index b2f42ab..067bc41 100644 (file)
@@ -1,6 +1,6 @@
 # pg_hint_plan extension
 
 comment = ''
-default_version = '1.1.5'
+default_version = '1.1.6'
 relocatable = false
 schema = hint_plan