Skip to content

Commit

Permalink
Rename version number from 1.6 to 1.6.0
Browse files Browse the repository at this point in the history
Jeremy Shneider has raised offline the point that we may want to do a
release of this module to PGXN, but this requires a three-digit version
number to work correctly.  At the end, this makes the version number
history more consistent with way, so let's just do it now rather than
regret the numbering later.
  • Loading branch information
michaelpq committed Sep 7, 2023
1 parent 8436f8d commit a10bb85
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

MODULES = pg_hint_plan
HINTPLANVER = 1.6
HINTPLANVER = 1.6.0

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 hints_anywhere plpgsql oldextversions
Expand All @@ -28,7 +28,7 @@ DATA = \
pg_hint_plan--1.4.1--1.4.2.sql \
pg_hint_plan--1.4.2--1.5.sql \
pg_hint_plan--1.5--1.5.1.sql \
pg_hint_plan--1.5.1--1.6.sql
pg_hint_plan--1.5.1--1.6.0.sql

EXTRA_CLEAN = RPMS

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

%package llvmjit
Requires: postgresql16-server, postgresql16-llvmjit
Requires: pg_hint_plan16 = 1.6
Requires: pg_hint_plan16 = 1.6.0
Summary: Just-in-time compilation support for pg_hint_plan16

%description llvmjit
Expand Down Expand Up @@ -88,7 +88,7 @@ rm -rf %{buildroot}
%{_datadir}/extension/pg_hint_plan--1.4.1--1.4.2.sql
%{_datadir}/extension/pg_hint_plan--1.4.2--1.5.sql
%{_datadir}/extension/pg_hint_plan--1.5--1.5.1.sql
%{_datadir}/extension/pg_hint_plan--1.5.1--1.6.sql
%{_datadir}/extension/pg_hint_plan--1.5.1--1.6.0.sql
%{_datadir}/extension/pg_hint_plan.control

%files llvmjit
Expand Down
2 changes: 1 addition & 1 deletion expected/oldextversions.out
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Objects in extension "pg_hint_plan"
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.6";
ALTER EXTENSION pg_hint_plan UPDATE TO "1.6.0";
\dx+ pg_hint_plan
Objects in extension "pg_hint_plan"
Object description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* pg_hint_plan/pg_hint_plan--1.5.1--1.6.sql */
/* pg_hint_plan/pg_hint_plan--1.5.1--1.6.0.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.6'" to load this file. \quit
\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.6.0'" 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','');
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.6'
default_version = '1.6.0'
relocatable = false
schema = hint_plan
2 changes: 1 addition & 1 deletion sql/oldextversions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ ALTER EXTENSION pg_hint_plan UPDATE TO "1.5";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.5.1";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.6";
ALTER EXTENSION pg_hint_plan UPDATE TO "1.6.0";
\dx+ pg_hint_plan
DROP EXTENSION pg_hint_plan;

0 comments on commit a10bb85

Please sign in to comment.