Skip to content

Commit

Permalink
Change version to 1.3.7.
Browse files Browse the repository at this point in the history
Fixed bogus upgrade scripts on the way changing version.
  • Loading branch information
Kyotaro Horiguchi committed Oct 29, 2020
1 parent 0fe2760 commit a797bcf
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 6 additions & 3 deletions SPECS/pg_hint_plan11.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## Set general information for pg_hint_plan.
Summary: Optimizer hint on PostgreSQL 11
Name: pg_hint_plan11
Version: 1.3.6
Version: 1.3.7
Release: 1%{?dist}
License: BSD
Group: Applications/Databases
Expand All @@ -39,7 +39,7 @@ Note that this package is available for only PostgreSQL 11.

%package llvmjit
Requires: postgresql11-server, postgresql11-llvmjit
Requires: pg_hint_plan11 = 1.3.6
Requires: pg_hint_plan11 = 1.3.7
Summary: Just-in-time compilation support for pg_hint_plan11

%description llvmjit
Expand Down Expand Up @@ -77,7 +77,8 @@ 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.sql
%{_datadir}/extension/pg_hint_plan--1.3.6--1.3.7.sql
%{_datadir}/extension/pg_hint_plan--1.3.7.sql
%{_datadir}/extension/pg_hint_plan.control

%files llvmjit
Expand All @@ -89,6 +90,8 @@ rm -rf %{buildroot}

# History of pg_hint_plan.
%changelog
* Thu Oct 29 2020 Kyotaro Horiguchi
- Fix a bug. Version 1.3.7.
* Wed Aug 5 2020 Kyotaro Horiguchi
- Fix some bugs. Version 1.3.6.
* Thu Feb 21 2020 Kyotaro Horiguchi
Expand Down
3 changes: 2 additions & 1 deletion pg_hint_plan--1.3.2--1.3.3.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* pg_hint_plan/pg_hint_plan--1.3.2--1.3.3.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
\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.3.3'" to load this file.
\quit

-- nothing to do upgrading from 1.3.2.
3 changes: 2 additions & 1 deletion pg_hint_plan--1.3.3--1.3.4.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* pg_hint_plan/pg_hint_plan--1.3.3--1.3.4.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
\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.3.4'" to load this file.
\quit

-- nothing to do upgrading from 1.3.3.
3 changes: 2 additions & 1 deletion pg_hint_plan--1.3.4--1.3.5.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* pg_hint_plan/pg_hint_plan--1.3.4--1.3.5.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
\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.3.5'" to load this file.
\quit

-- nothing to do upgrading from 1.3.4.
3 changes: 0 additions & 3 deletions pg_hint_plan--1.3.5--1.3.6.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* pg_hint_plan/pg_hint_plan--1.3.5--1.3.6.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

SELECT pg_catalog.pg_extension_config_dump('hint_plan.hints','');
SELECT pg_catalog.pg_extension_config_dump('hint_plan.hints_id_seq','');
5 changes: 5 additions & 0 deletions pg_hint_plan--1.3.6--1.3.7.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* pg_hint_plan/pg_hint_plan--1.3.6--1.3.7.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.3.7'" to load this file.
\quit
2 changes: 1 addition & 1 deletion pg_hint_plan--1.3.6.sql → pg_hint_plan--1.3.7.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* pg_hint_plan/pg_hint_plan--1.3.6.sql */
/* pg_hint_plan/pg_hint_plan--1.3.7.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
Expand Down
2 changes: 1 addition & 1 deletion pg_hint_plan.control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pg_hint_plan extension

comment = ''
default_version = '1.3.6'
default_version = '1.3.7'
relocatable = false
schema = hint_plan

0 comments on commit a797bcf

Please sign in to comment.