diff --git a/Makefile b/Makefile index ed47b89b..a6a1a48a 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # MODULES = pg_hint_plan -HINTPLANVER = 1.3.6 +HINTPLANVER = 1.3.7 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 oldextversions @@ -19,7 +19,8 @@ DATA = \ pg_hint_plan--1.3.2--1.3.3.sql \ pg_hint_plan--1.3.3--1.3.4.sql \ pg_hint_plan--1.3.4--1.3.5.sql \ - pg_hint_plan--1.3.5--1.3.6.sql + pg_hint_plan--1.3.5--1.3.6.sql \ + pg_hint_plan--1.3.6--1.3.7.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 7be4ec2f..e375bb5c 100644 --- a/SPECS/pg_hint_plan10.spec +++ b/SPECS/pg_hint_plan10.spec @@ -14,7 +14,7 @@ ## Set general information for pg_hint_plan. Summary: Optimizer hint on PostgreSQL 10 Name: pg_hint_plan10 -Version: 1.3.6 +Version: 1.3.7 Release: 1%{?dist} License: BSD Group: Applications/Databases @@ -70,10 +70,13 @@ rm -rf %{buildroot} %{_datadir}/extension/pg_hint_plan--1.3.3--1.3.4.sql %{_datadir}/extension/pg_hint_plan--1.3.4--1.3.5.sql %{_datadir}/extension/pg_hint_plan--1.3.5--1.3.6.sql +%{_datadir}/extension/pg_hint_plan--1.3.6--1.3.7.sql %{_datadir}/extension/pg_hint_plan.control # History of pg_hint_plan. %changelog +* Fri Jan 20 2023 Michael Paquier +- Version 1.3.7. * Wed Aug 5 2020 Kyotaro Horiguchi - Fix some bugs. Version 1.3.6. * Thu Feb 21 2020 Kyotaro Horiguchi diff --git a/expected/oldextversions.out b/expected/oldextversions.out index 93a097b1..525022a5 100644 --- a/expected/oldextversions.out +++ b/expected/oldextversions.out @@ -64,4 +64,13 @@ Objects in extension "pg_hint_plan" table hint_plan.hints (2 rows) +ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.7"; +\dx+ pg_hint_plan +Objects in extension "pg_hint_plan" + Object description +--------------------------------- + sequence hint_plan.hints_id_seq + table hint_plan.hints +(2 rows) + DROP EXTENSION pg_hint_plan; diff --git a/pg_hint_plan--1.3.6--1.3.7.sql b/pg_hint_plan--1.3.6--1.3.7.sql new file mode 100644 index 00000000..e37d73d2 --- /dev/null +++ b/pg_hint_plan--1.3.6--1.3.7.sql @@ -0,0 +1,10 @@ +/* pg_hint_plan/pg_hint_plan--1.3.6--1.3.7.sql */ + +-- complain if script is sourced in psql, rather than via ALTER EXTENSION +\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.3.7'" to load this file. \quit + +SELECT pg_catalog.pg_extension_config_dump('hint_plan.hints',''); +SELECT pg_catalog.pg_extension_config_dump('hint_plan.hints_id_seq',''); + +GRANT SELECT ON hint_plan.hints TO PUBLIC; +GRANT USAGE ON SCHEMA hint_plan TO PUBLIC; diff --git a/pg_hint_plan.control b/pg_hint_plan.control index a39a0700..ee3dbea2 100644 --- a/pg_hint_plan.control +++ b/pg_hint_plan.control @@ -1,6 +1,6 @@ # pg_hint_plan extension comment = '' -default_version = '1.3.6' +default_version = '1.3.7' relocatable = false schema = hint_plan diff --git a/sql/oldextversions.sql b/sql/oldextversions.sql index ea9e43ca..19131ae8 100644 --- a/sql/oldextversions.sql +++ b/sql/oldextversions.sql @@ -16,4 +16,6 @@ ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.5"; \dx+ pg_hint_plan ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.6"; \dx+ pg_hint_plan +ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.7"; +\dx+ pg_hint_plan DROP EXTENSION pg_hint_plan;