From a10bb8517a425c1300deb65abb7dc8c6b24f26db Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Thu, 7 Sep 2023 12:20:10 +0900 Subject: [PATCH] Rename version number from 1.6 to 1.6.0 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. --- Makefile | 4 ++-- SPECS/pg_hint_plan16.spec | 6 +++--- expected/oldextversions.out | 2 +- ...t_plan--1.5.1--1.6.sql => pg_hint_plan--1.5.1--1.6.0.sql | 4 ++-- pg_hint_plan.control | 2 +- sql/oldextversions.sql | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) rename pg_hint_plan--1.5.1--1.6.sql => pg_hint_plan--1.5.1--1.6.0.sql (69%) diff --git a/Makefile b/Makefile index 9b3ed40a..1711824a 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 diff --git a/SPECS/pg_hint_plan16.spec b/SPECS/pg_hint_plan16.spec index 71614c4b..ffd00f04 100644 --- a/SPECS/pg_hint_plan16.spec +++ b/SPECS/pg_hint_plan16.spec @@ -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 @@ -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 @@ -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 diff --git a/expected/oldextversions.out b/expected/oldextversions.out index 629264fe..5458717a 100644 --- a/expected/oldextversions.out +++ b/expected/oldextversions.out @@ -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 diff --git a/pg_hint_plan--1.5.1--1.6.sql b/pg_hint_plan--1.5.1--1.6.0.sql similarity index 69% rename from pg_hint_plan--1.5.1--1.6.sql rename to pg_hint_plan--1.5.1--1.6.0.sql index e10e5a37..23bc350d 100644 --- a/pg_hint_plan--1.5.1--1.6.sql +++ b/pg_hint_plan--1.5.1--1.6.0.sql @@ -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',''); diff --git a/pg_hint_plan.control b/pg_hint_plan.control index c53ed2c0..f7df8c5f 100644 --- a/pg_hint_plan.control +++ b/pg_hint_plan.control @@ -1,6 +1,6 @@ # pg_hint_plan extension comment = '' -default_version = '1.6' +default_version = '1.6.0' relocatable = false schema = hint_plan diff --git a/sql/oldextversions.sql b/sql/oldextversions.sql index a5606f7f..31b95783 100644 --- a/sql/oldextversions.sql +++ b/sql/oldextversions.sql @@ -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;