• R/O
  • HTTP
  • SSH

pg_hint_plan: コミット一覧

firtst release

Rev. 日時 作者
c945c7b master 2019-08-29 17:27:30 Jignesh Shah

Fix definition of is_dummy_rel based on changes in community

cf22a23 2019-08-29 16:57:23 LittleWuCoding

fix spelling mistakes in file pg_hint_plan.html

f1837d3 2019-08-29 16:12:58 Arthur Zakirov

Use ParallelHint in ParallelHintCreate()

6a58835 2019-03-08 13:58:52 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.

000c325 2019-02-26 20:09:40 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.

9.5 is not affected. Back patched back to 9.6.

8241ef0 2019-02-26 19:25:08 Kyotaro Horiguchi

Follow core's cobe/havor chages

Take in some changes took place in core code.

Commit 608b167f9f has largely changed the behavior around
CTE. Although I didn't confirmed that the all changes are valid as the
test for pg_hint_plan, just took in all plan differences.

2b86c66 2019-01-17 18:59:20 Kyotaro Horiguchi

Change version to 1.3.4.

Fixed a minor bug of 1.3.3.

63570f9 2019-01-17 18:32:57 Kyotaro Horiguchi

Fix condition to regenerate gather paths

Core has additional condition to determine whether to generate gather
paths and pg_hint_plan forgot it. Fix it.

92e779a 2019-01-17 17:14:19 Kyotaro Horiguchi

Change version to 1.3.3

Version bumped to 1.3.3. SPEC file is updated.

eaafe60 2019-01-17 17:14:19 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.

baa9589 2019-01-17 17:14:19 Kyotaro Horiguchi

Fix documentation.

Fixed wrong or stale descriptions, and poor or broken styles of
the documentation.

31b4a22 2019-01-17 17:14:19 Kyotaro Horiguchi

Include all pg_hint_plan--*.sql files in installation

make install didn't install upgrade scripts. Fix it.

b9a65e3 2019-01-17 17:14:19 Kyotaro Horiguchi

Change copyright year to 2019

948f066 2019-01-17 12:54:37 Kyotaro Horiguchi

Fix content of llvmjit package

The previous release is missing index.bc file and mislocating .bc file
in the llvmjit subpackage. The former is created at make install time
so use the standard make file to rpm-build.

c1c3c56 2019-01-17 12:52:56 Kyotaro Horiguchi

Catch up with the latest master

Some refactoring of header files and commits afb0d0712f and 1db5667bac
of core hit this. Catch up with them.

5f4e855 2019-01-09 09:35:41 Kyotaro Horiguchi

Call standrad_ProcessUtility when no hook is set

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

d5ec243 2019-01-07 19:08:30 Kyotaro Horiguchi

Support prepared statements on extended protocol

However pg_hint_plan doesn't fully consider the extended protocol,
commit c05bb31 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

000d836 2019-01-07 19:08:30 Kyotaro Horiguchi

Remove an useless variable

commit c05bb31 made the variable stmt_name useless. Remove it.

de6e936 2019-01-07 18:57:53 Kyotaro Horiguchi

Adjust regression test

Core behavior has changed, adjust regression test.

3fb05c9 2018-12-05 17:31:27 Kyotaro Horiguchi

Adjust regression test

Some regression test items need adjustment due to change of server
behavior. The way the regression test ignores unstable portions of
EXPLAIN output is changed along with that.

c2e8bc0 2018-12-05 17:31:27 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.

b6ebe30 2018-12-05 17:31:20 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

d5d6719 2018-11-13 18:02:35 Kyotaro Horiguchi

Minor document fix

Just fix versions of PostgreSQL and OS.

6f4b798 REL11_1_3_2 2018-11-13 16:01:35 Kyotaro Horiguchi

Change target version to PG11 and fix the SPEC file

Change targetr version to PG11. SPEC file was changed so that genearte
a subpackage llvmjit, which installs a bitcode file needed for JIT

fe647d2 2018-11-13 16:00:34 Kyotaro Horiguchi

Fix copyright year

e220378 2018-11-13 16:00:34 Kyotaro Horiguchi

Fix regression test following core's behavior

Some changes has been made on GUC default value and behavior. Follow
the change. No change was made on pg_hint_plan's behavior.

c94c75f 2018-11-13 16:00:34 Kyotaro Horiguchi

Update core.c and make_jion_rel.c following core

Apply changes ever made on core.

09de6d2 2018-11-13 15:59:57 Kyotaro Horiguchi

Change version to 1.3.2.

f222c03 2018-11-13 15:55:02 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.

18fd79f 2018-11-13 15:55:02 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.