• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: コミット一覧

firtst release


RSS
Rev. 日時 作者
cb78687 PG96 2019-03-08 14:05:51 Kyotaro Horiguchi

Silence some compilers

Some compilers seem to complain about the previous patch, that
prev_hint_str is used uninitialized. Actually it is not but move the
initialization code out of the PG_TRY() section so that such compilers
would be quiet.

009aa8b 2019-02-26 16:10:29 Kyotaro Horiguchi

Correctly handle planner nesting

pg_hint_plan assumed that plpgsql is the only source of nested planner
calls. Actually nested call can be made in any shapes. Most of the
cases doesn't harm but in a special case where pg_dbms_stats makes a
SPI call during query planning, that affects subsequent planner
work. Hints lose effect when pg_dbms_stats searches "locked
statistics" tables while planning the target query.

653f5ce 2019-02-26 15:36:44 Kyotaro Horiguchi

Follow the behavior change of PostgreSQL

Some behavioral changes of PostgreSQL breaks regression test. Follow
the changes.

d5c5bac 2019-02-26 14:56:07 Kyotaro Horiguchi

Stabilize test on paralle hints

Planner

ef58744 REL96_1_2_5 2019-01-17 16:41:13 Kyotaro Horiguchi

Change version to 1.2.5

Version bumped to 1.2.5. SPEC file is updated.

a95e41f 2019-01-17 16:41:13 Kyotaro Horiguchi

Fix reverse link of hint_list.html

pg_hint_plan.html and hint_list.html pointed to the Japanese version
of main document. Fixed it.

d5c9890 2019-01-17 16:08:38 Kyotaro Horiguchi

Fix documentation.

Fixed wrong or stale descriptions, and poor or broken styles.

9b6a528 2019-01-17 13:38:55 Kyotaro Horiguchi

Do make install for rpmbuild

Use make install to build in prmbuild directory instaed of using
install command to individual file to reduce maintenance labor.

9567e5a 2019-01-17 13:37:21 Kyotaro Horiguchi

Include all pg_hint_plan--*.sql files in installation

Glob installation/upgrade SQL scripts instead of spcifying
individually to reduce maintenance labor.

3bc136d 2019-01-17 13:35:38 Kyotaro Horiguchi

Change copyright year to 2019

With some minor fixes in the document.

0789606 2019-01-09 09:57:34 Kyotaro Horiguchi

Call standrad_ProcessUtility when no hook is set

The last commit dff1e4a forgot the case of no previous hook function
in the ProcessUtility hook function. Fix it.

dff1e4a 2019-01-07 19:13:37 Kyotaro Horiguchi

Support prepared statements on extended protocol

However pg_hint_plan doesn't fully consider the extended protocol,
commit 89149ce accidentially broke the case where an analyzed prepared
statement is executed on extended protocol. This patch fixes that only
for the hints-in-comment case. Hint-table still doesn't work in the
case since query-normalization needs Query, which is not available in
planner_hook.

1f00dc6 2019-01-07 19:13:37 Kyotaro Horiguchi

Remove an useless variable

commit 89149ce made the variable stmt_name useless. Remove it.

f5f1326 2019-01-07 19:13:37 Kyotaro Horiguchi

Adjust regression test.

Planning behavior has been changed in core. Adjust regression test.

3851f42 2018-12-05 17:32:15 Kyotaro Horiguchi

Fix for union-on-inheritance case

setup_hint_enforcement may pick up a wrong hint when multiple
subqueries access inheritance tables. This leads to failure to apply
hints on other than the first subquery.

6b05ac6 2018-12-05 17:32:10 Kyotaro Horiguchi

Don't reset plpgsql nest level at every command end

Clean up code for global exit is forgetting about loops that run
hinted commands multiple times. This leads to pg_hint_plan's failure
to affect after the first execution of the inner commands.
The hint below worked only for the first time.

FOR outer IN EXECUTE 'outer-command' LOOP
FOR inner IN EXECUTE '/*+ hint */ inner-command' LOOP
<something>
END LOOP;
END LOOP;

9df458b REL96_1_2_4 2018-11-13 16:33:08 Kyotaro Horiguchi

Changed version to 1.2.4

Previously parse_messages and message_level were binded to the same
internal variable. Separate the two GUCs. On the way doing this some
mssages that did not honor the variable were fixed. Default behavior
is not changed but the the two variables works differently from the
previous version, perhaps closer to expected.

d6c600f 2018-11-13 16:24:07 Kyotaro Horiguchi

Fix debug output level control

Previously parse_messages and message_level were binded to the same
internal variable. Separate the two GUCs. On the way doing this some
mssages that did not honor the variable were fixed. Default behavior
is not changed but the the two variables works differently from the
previous version, perhaps closer to expected.

d11ab49 2018-11-13 16:23:45 Kyotaro Horiguchi

Fix bogus error handling

For somewhat reason set_config_int32_options does bogus error
handling. Howerver that error cannot be happen, fixed it.

33ee9d0 REL96_1_2_3 2018-06-08 14:48:36 Kyotaro Horiguchi

Change version to 1.2.3.

1.2.2 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
core.

64ad85860c Change more places to be less trusting of RestrictInfo.is_pushed_down.

1935002 2018-06-08 14:48:36 Kyotaro Horiguchi

Took in core improvement.

Took in the following commit of core. A minor non-functional fix was
made on the way.

64ad85860c Change more places to be less trusting of RestrictInfo.is_pushed_down.

Fixed typos and removed useless include on the way.

2e0d63f 2018-05-24 18:26:31 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.

5d887c9 2017-11-06 15:39:31 Kyotaro Horiguchi

Move expected/ut-W.out to output/ut-W.source

ut-W.out contained an absolute path of my working directory. Moved the
file into output so that we can remove the path replacing with
@abs_srcdir@.

7093908 2017-11-06 15:10:26 Kyotaro Horiguchi

Added and removed some entries in .gitignore

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

e40ba9a 2017-11-06 14:00:23 Arthur Zakirov

Use pg_strcasecmp instead of strcasecmp for the sake of portability

de15cdb 2017-10-10 12:35:22 Kyotaro Horiguchi

Added a notice in the manual.

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

70f2c6a REL96_1_2_2 2017-07-27 19:20:50 Kyotaro Horiguchi

Change version to 1.2.2

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

e59da6d 2017-07-27 19:20:42 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.

d9112d9 2017-07-27 19:20:31 Kyotaro Horiguchi

Make core.c to the right version.

core.c in 9e5b1753d00cb1071eb44570d3c7f9e18823ba67 seems to be
somewhat different version. Fixed it to right version.

7500037 REL96_1_2_1 2017-05-19 13:33:31 Kyotaro Horiguchi

Change version to 1.2.1

1.2.0 has a crash bug raised by queries in specific shape involving
complex views and/or SQL functions. Also it can crash when using
Parallel hint.

They are fixed in this version.

旧リポジトリブラウザで表示