Skip to content

Commit

Permalink
Version 1.6.1
Browse files Browse the repository at this point in the history
The release is not ready yet, but this does all the ground work to be
able to do a release at any moment.
  • Loading branch information
michaelpq committed Jul 22, 2024
1 parent b934240 commit f0464d8
Show file tree
Hide file tree
Showing 13 changed files with 109 additions and 15 deletions.
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pg_hint_plan16",
"abstract": "Query hints in SQL comments",
"description": "This library adds support for query hints in SQL comments in PostgreSQL 16.",
"version": "1.6.0",
"version": "1.6.1",
"maintainer": [
"Michael Paquier <[email protected]>"
],
Expand All @@ -19,7 +19,7 @@
"abstract": "Query hints in SQL comments",
"file": "pg_hint_plan--1.3.0.sql",
"docfile": "README.md",
"version": "1.6.0"
"version": "1.6.1"
}
},
"resources": {
Expand Down
12 changes: 8 additions & 4 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.0
HINTPLANVER = 1.6.1

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 @@ -23,12 +23,16 @@ DATA = \
pg_hint_plan--1.3.6--1.3.7.sql \
pg_hint_plan--1.3.7--1.3.8.sql \
pg_hint_plan--1.3.8--1.3.9.sql \
pg_hint_plan--1.3.9--1.4.sql \
pg_hint_plan--1.3.9--1.3.10.sql \
pg_hint_plan--1.3.10--1.4.sql \
pg_hint_plan--1.4--1.4.1.sql \
pg_hint_plan--1.4.1--1.4.2.sql \
pg_hint_plan--1.4.2--1.5.sql \
pg_hint_plan--1.4.2--1.4.3.sql \
pg_hint_plan--1.4.3--1.5.sql \
pg_hint_plan--1.5--1.5.1.sql \
pg_hint_plan--1.5.1--1.6.0.sql
pg_hint_plan--1.5.1--1.5.2.sql \
pg_hint_plan--1.5.2--1.6.0.sql \
pg_hint_plan--1.6.0--1.6.1.sql

EXTRA_CLEAN = RPMS

Expand Down
16 changes: 11 additions & 5 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.0
Version: 1.6.1
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.0
Requires: pg_hint_plan16 = 1.6.1
Summary: Just-in-time compilation support for pg_hint_plan16

%description llvmjit
Expand Down Expand Up @@ -83,12 +83,16 @@ rm -rf %{buildroot}
%{_datadir}/extension/pg_hint_plan--1.3.6--1.3.7.sql
%{_datadir}/extension/pg_hint_plan--1.3.7--1.3.8.sql
%{_datadir}/extension/pg_hint_plan--1.3.8--1.3.9.sql
%{_datadir}/extension/pg_hint_plan--1.3.9--1.4.sql
%{_datadir}/extension/pg_hint_plan--1.3.9--1.3.10.sql
%{_datadir}/extension/pg_hint_plan--1.3.10--1.4.sql
%{_datadir}/extension/pg_hint_plan--1.4--1.4.1.sql
%{_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.4.2--1.4.3.sql
%{_datadir}/extension/pg_hint_plan--1.4.3--1.5.sql
%{_datadir}/extension/pg_hint_plan--1.5--1.5.1.sql
%{_datadir}/extension/pg_hint_plan--1.5.1--1.6.0.sql
%{_datadir}/extension/pg_hint_plan--1.5.1--1.5.2.sql
%{_datadir}/extension/pg_hint_plan--1.5.2--1.6.0.sql
%{_datadir}/extension/pg_hint_plan--1.6.0--1.6.1.sql
%{_datadir}/extension/pg_hint_plan.control

%files llvmjit
Expand All @@ -100,5 +104,7 @@ rm -rf %{buildroot}

# History of pg_hint_plan.
%changelog
* Tue Aug 27 2024 Michael Paquier
- Version 1.6.1.
* Thu Jan 17 2023 Michael Paquier
- Support PostgreSQL 16.
36 changes: 36 additions & 0 deletions expected/oldextversions.out
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ Objects in extension "pg_hint_plan"
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.10";
\dx+ pg_hint_plan
Objects in extension "pg_hint_plan"
Object description
---------------------------------
sequence hint_plan.hints_id_seq
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.4";
\dx+ pg_hint_plan
Objects in extension "pg_hint_plan"
Expand Down Expand Up @@ -118,6 +127,15 @@ Objects in extension "pg_hint_plan"
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.4.3";
\dx+ pg_hint_plan
Objects in extension "pg_hint_plan"
Object description
---------------------------------
sequence hint_plan.hints_id_seq
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.5";
\dx+ pg_hint_plan
Objects in extension "pg_hint_plan"
Expand All @@ -136,6 +154,15 @@ Objects in extension "pg_hint_plan"
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.5.2";
\dx+ pg_hint_plan
Objects in extension "pg_hint_plan"
Object description
---------------------------------
sequence hint_plan.hints_id_seq
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.6.0";
\dx+ pg_hint_plan
Objects in extension "pg_hint_plan"
Expand All @@ -145,4 +172,13 @@ Objects in extension "pg_hint_plan"
table hint_plan.hints
(2 rows)

ALTER EXTENSION pg_hint_plan UPDATE TO "1.6.1";
\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;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* pg_hint_plan/pg_hint_plan--1.3.9--1.4.sql */
/* pg_hint_plan/pg_hint_plan--1.3.10--1.4.sql */

-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION pg_hint_plan UPDATE TO '1.4'" to load this file. \quit
Expand Down
10 changes: 10 additions & 0 deletions pg_hint_plan--1.3.9--1.3.10.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* pg_hint_plan/pg_hint_plan--1.3.9--1.3.10.sql */

-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION pg_hint_plan UPDATE TO '1.3.10'" 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;
10 changes: 10 additions & 0 deletions pg_hint_plan--1.4.2--1.4.3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* pg_hint_plan/pg_hint_plan--1.4.2--1.4.3.sql */

-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION pg_hint_plan UPDATE TO '1.4.3'" 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;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* pg_hint_plan/pg_hint_plan--1.4.2--1.5.sql */
/* pg_hint_plan/pg_hint_plan--1.4.3--1.5.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION pg_hint_plan UPDATE TO '1.5'" to load this file. \quit
Expand Down
10 changes: 10 additions & 0 deletions pg_hint_plan--1.5.1--1.5.2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* pg_hint_plan/pg_hint_plan--1.5.1--1.5.2.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION pg_hint_plan UPDATE TO '1.5.2'" 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;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* pg_hint_plan/pg_hint_plan--1.5.1--1.6.0.sql */
/* pg_hint_plan/pg_hint_plan--1.5.2--1.6.0.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION pg_hint_plan UPDATE TO '1.6.0'" to load this file. \quit
Expand Down
10 changes: 10 additions & 0 deletions pg_hint_plan--1.6.0--1.6.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* pg_hint_plan/pg_hint_plan--1.6.0--1.6.1.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION pg_hint_plan UPDATE TO '1.6.1'" 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;
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.0'
default_version = '1.6.1'
relocatable = false
schema = hint_plan
8 changes: 8 additions & 0 deletions sql/oldextversions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,24 @@ ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.8";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.9";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.3.10";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.4";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.4.1";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.4.2";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.4.3";
\dx+ pg_hint_plan
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.5.2";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.6.0";
\dx+ pg_hint_plan
ALTER EXTENSION pg_hint_plan UPDATE TO "1.6.1";
\dx+ pg_hint_plan
DROP EXTENSION pg_hint_plan;

0 comments on commit f0464d8

Please sign in to comment.