• R/O
  • HTTP
  • SSH

pg_hint_plan: コミット一覧

firtst release

Rev. 日時 作者
fd64e6b PG95 REL95_1_1_6 2018-06-08 14:12:56 Kyotaro Horiguchi

Change version to 1.1.6.

1.1.5 has a crash bug in Describe message of extended protocol
path. If server receives the message after invalidation of
corresponding query cache, pg_hint_plan crashes.

On the way fixing it, this version took in the following commit of

80e12a6218 Change more places to be less trusting of RestrictInfo.is_pushed_down.

066f064 2018-06-08 14:12:56 Kyotaro Horiguchi

Took in core improvement.

Took in the following commit of core.

80e12a6218 Change more places to be less trusting of RestrictInfo.is_pushed_down.

Fixed typos and removed useless include on the way.

5c6296e 2018-06-08 10:02:10 Kyotaro Horiguchi

Fix a crash bug in case debug_query_string is NULL

pg_hint_plan believed that debug_query_string cannot be null when
parse_analyze is called, but for example in the case under
exec_describe_statement_message, it is not. We see the query string in
pstate even in the case, so use it instead in the case. Since pstate
is storing the query of the lowermost level, we should use
debug_query_string in other cases.

6ea8db1 2017-11-06 15:10:46 Kyotaro Horiguchi

Added and removed some entries in .gitignore

Removed core.c, that is not appropriate.
Added .deps and RPMS.

9d13568 2017-11-06 14:01:27 Kyotaro Horiguchi

Use pg_strcasecmp instead of strcasecmp for the sake of portability

04011fe 2017-10-10 12:42:13 Kyotaro Horiguchi

Added a notice in the manual.

Added an item that explains about letter case handling of object names
in hints.

cdb7a47 REL95_1_1_5 2017-07-27 19:20:05 Kyotaro Horiguchi

Change version to 1.1.5

1.1.4 has an assertion failure bug raised by DECLARE CURSOR with
enabling table hint. Fixed it.

de44994 2017-07-27 19:19:57 Kyotaro Horiguchi

Fixed a crash bug by DECLARE CURSOR and enable_hint_table = on

The previous version causes assertion failure by DECLARE CURSOR syntax
when table hint is activated. The cause is that the version forgot the
fact that DelcareCursorStmt is in a bit strange shape. Add support of
DECLARE CURSOR and regression test for table hinting.

00256f9 REL95_1_1_4 2017-05-19 13:53:54 Kyotaro Horiguchi

Change version to 1.1.4

1.1.3 has a crash bug raised by queries in specific shape involving
complex views and/or SQL functions.

It is fixed in this version.

82f6021 2017-05-19 10:39:44 Kyotaro Horiguchi

Fix a bug of target query retrieval

The previous patch leaves a bug that get_query_string returns a Query
that JumbleQuery doesn't accept. This fixes that bug.

64ab47b 2017-05-18 19:49:37 Kyotaro Horiguchi

Fix a crash bug on complex views when enable_hint_table is on

The Query that planner receives sometimes irrelevant to
debug_query_string. If enable_hint_table is on, pg_hint_plan_planner
normalizes debug_query_string using query-jumble information created
from the irrelevant Query the can lead to crash. To avoid this
situation, retrieve hints in post_parse_analyze_hook, where
corresponding pairs of a query string and a parsed Query.

471a198 2016-07-19 18:45:25 Kyotaro Horiguchi

Add files needed to do installcheck into tar ball.

sql/maskout.sh and data/data.csv are necessary to perform installcheck
but ignored in making tarball. COPYRIHT* files are also included by
this commit. Although version tags won't be moved since it brings out
no functional changes, the tarballs already released will be replaced
with new one applied this fix later.

Pointed by Tomokuni Fujita and fixed by me.

3c83e20 2016-05-13 15:53:55 Kyotaro Horiguchi

Add RPM spec file forgotten in the previous commit.

8edf1db REL95_1_1_3 2016-01-15 14:12:14 Kyotaro Horiguchi

Support PostgreSQL 9.5.0.

This branch PG95 has been a bit too early so it needs an additional
merge from master branch to complete to support PostgreSQL 9.5.

fce09b4 2016-01-15 12:24:26 Kyotaro Horiguchi

Prepare for 1.1.3/PG95.

The pg_hint_plan version of master branch is left as 1.1.2. This
commit corrects the pg_hint_plan version, and edits RPM building
environment for PostgreSQL 9.5.

9d962d0 2016-01-15 12:13:29 Kyotaro Horiguchi

Edit copyright years.

5ff2794 2016-01-15 12:08:35 Kyotaro Horiguchi

Change for new syntax items in 9.5.

Some syntactical elements are added in 9.5. This change reflects it.

Addition to that, deleted unused parts in pg_stat_statements, which
are previously invalidated with #ifdef directives.

02d20ed 2016-01-15 12:05:13 Kyotaro Horiguchi

Follow a change of error message.

Context message of PL/pgSQL is changed so this commit refrects it to

95b5f89 2016-01-15 11:54:15 Kyotaro Horiguchi

Followed the changes of 9.5.0 release.

There was some changes in 9.5.0 release affect
pg_hint_plan. set_append_rel_pathlist() no longer sets cheapest path
and it became a business of the caller. So rebuild_scan_path() does
so. core.c gets changed from changing lateral join infrastracture
(acfcd45cacb6df23edba4cb3753a2be594238a99) and a change related to custom path(c2ea2285e978d9289084846a3343cef7d261d880).

958c60d 2015-08-18 09:31:54 Kyotaro Horiguchi

Made compatible with 9.5a1

Made make_join_rel.c to catch up REL9_5_ALPHA2. Changed regression
tests following some differences of PostgreSQL's behavior in such like
collapsing of simple VALUES clause, rows estimation and explain
representation of join filter.

0b6cf4b 2015-08-18 09:24:21 Kyotaro Horiguchi

Made compatible with 9.5a1

Make make_join_rel.c to catch up to REL9_5_ALPHA2. Change regtests to
reflect some differences of PostgreSQL's behavior in such like
collapsing of simple VALUES clause, rows estimation and explain
representation of join filter.

d422966 2015-01-05 16:55:23 Kyotaro Horiguchi

Fixed a bug related to SQL statements in PL/pgSQL functions.

At least since 9.1, true query strings of SQL statements executed in
PL/pgSQL functions were found that were not obtained correctly by the
previous implement, it is because that PLpgSQL_stmt variable did not
have proper query string to be read for hints. Instead, it is changed
to read them from the top of error_context_stack in
pg_hint_plan_planner(). This change made a slight difference in
behavior which doesn't affect its work so a part of the regtest was
also changed. And added some regression tests for it.

c42d50f 2014-12-22 11:32:20 Kyotaro Horiguchi

Catch up the changes of pg_stat_statements.c

The change has nothing to do with pg_hint_plan but it's necessary to
catch it up in order to keep the difference minimal for the ease of

273f743 2014-12-19 16:15:56 Kyotaro Horiguchi

Set additional parameter of set_config_option().

9.5dev added new parameter to set_config_option(). This paramter
should be false in set_config_option_wrapper.

9806c94 2014-12-19 16:15:56 Kyotaro Horiguchi

Fix regression test according to the changes of PostgreSQL.

PostgreSQL became to give WARNING for usage of hash indexes. This
change is to follow it.

9551ee4 2014-12-19 16:14:07 Kyotaro Horiguchi

Prepare for 1.1.2

67bade3 2014-12-19 16:14:07 Kyotaro Horiguchi

Remove unnecessary tracker code from documentations.

1756f49 2014-12-19 15:47:21 Kyotaro Horiguchi

Added English documentation.

73f26fe 2014-12-19 15:47:21 Kyotaro Horiguchi

Some fix and addition to the japaneses document.

It lacked the description about joni direction enforcement so added
it. Addition to it, added html language specification and updated
target PostgreSQL versions and OS version.

2462e13 2014-12-17 11:07:58 Kyotaro Horiguchi

Fix regression test according to the changes of PostgreSQL.

Row countings of EXPLAIN results seems to be changed. This follows the