OSDN Git Service

pghintplan/pg_hint_plan.git
4 years agoRestore current hint state when returned from non-hinted query planning. PG95
Kyotaro Horiguchi [Mon, 17 Feb 2020 11:45:36 +0000 (20:45 +0900)]
Restore current hint state when returned from non-hinted query planning.

If no hint is given for the current level query, pg_hint_plan_planner
calls the next level of planner after erasing the
current_hint_state. But it forgot to restore the state before the
planning of the rest part of the current-level query.  It is broken by
the commit 958c60d but overlooked among vast amount of behavioral
changes..  Get back the behavior by restoring current_hint_state after
returned from the lower level planner with unhinted query.

Issue: https://github.com/ossc-db/pg_hint_plan/issues/30
Reported-by: higuchi-daisuke
4 years agoFix Rows hint parsing
Kyotaro Horiguchi [Mon, 17 Feb 2020 05:53:27 +0000 (14:53 +0900)]
Fix Rows hint parsing

This is a long standing bug that Rows hint with no parameter causees a
crash. Fixed the Rows hint parser.

4 years agoFix crash bug caused by plancache invalidation
Kyotaro Horiguchi [Fri, 14 Feb 2020 03:34:55 +0000 (12:34 +0900)]
Fix crash bug caused by plancache invalidation

https://github.com/ossc-db/pg_hint_plan/issues/41

After plancache is invalidated then revaliated, get_query_string
accesses query_list of invalid plansource then crash. Ignore invalid
plancache and get the correct hint string and Query node at the next
planning time during revalidation.

On the way fixing this, a bug related to planner reentrance is
fixed. That fix causes behavioral change for nested
planning. Previously outer-level hint (wrongly) overrides inner-level
query but currenlty outer-level hint no longer affects inner-level
query.

4 years agoFix compiling error on Solaris
LittleWuCoding [Sat, 12 Jan 2019 10:11:04 +0000 (18:11 +0800)]
Fix  compiling error on Solaris

The 'LDFLAGS+=-Wl,--build-id' option is for rpm building in Linux like
OS.  The SunOS is not native support the option
'LDFLAGS+=-Wl,--build-id' . So, we disable this option in SunOS while
compiling.

Committed a bit tweaked version from the orignal.

4 years agoStabilize regression test and catching-up to the core.
Kyotaro Horiguchi [Thu, 13 Feb 2020 07:19:45 +0000 (16:19 +0900)]
Stabilize regression test and catching-up to the core.

Further unstability is found about stats reset. Inserted more 1 second
sleeps to stabilize it. Some planner fix (maybe 72a626e688) seems to
have changed its behvavior. The commit 041ad9a66d changes the result
of A-8-4-10 in ut-A. The commit 88275ac199, which changed the category
of client_min_messages, affected ut-A's result. Follow the changes.

Most of this fix is comes from the pull request
https://github.com/ossc-db/pg_hint_plan/pull/28 by Dagouhan (smoon
<30999182+Dagouhan@users.noreply.github.com>).

4 years agoDo null-check of error_context_stack before use
Kyotaro Horiguchi [Thu, 13 Feb 2020 05:51:51 +0000 (14:51 +0900)]
Do null-check of error_context_stack before use

The variable is accessed without null checking when planner is called
in the context of pl/pgsql. Fix it. Back-patched up to pg_hint_plan94.

Reporter: egashira-yusuke
Issue: https://github.com/ossc-db/pg_hint_plan/issues/42
Original-Author: sun-wei <30999182+Dagouhan@users.noreply.github.com>
Original-patch: https://github.com/ossc-db/pg_hint_plan/pull/45/commits/8fe092ef73a9af6cfb41e20717d7cb35aa74fce2

4 years agofix spelling mistakes in file pg_hint_plan.html
LittleWuCoding [Wed, 12 Dec 2018 06:47:13 +0000 (14:47 +0800)]
fix spelling mistakes in file pg_hint_plan.html

5 years agoChange version to 1.1.8 REL95_1_1_8
Kyotaro Horiguchi [Thu, 17 Jan 2019 05:01:02 +0000 (14:01 +0900)]
Change version to 1.1.8

Version bumped to 1.1.8. SPEC file is updated.

5 years agoFix reverse link of hint_list.html
Kyotaro Horiguchi [Thu, 17 Jan 2019 07:37:15 +0000 (16:37 +0900)]
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.

5 years agoFix documentation
Kyotaro Horiguchi [Thu, 17 Jan 2019 06:12:08 +0000 (15:12 +0900)]
Fix documentation

Fix wrong or stale descriptions in documentation and fix style.

5 years agoDo make install for rpmbuild
Kyotaro Horiguchi [Thu, 17 Jan 2019 04:14:24 +0000 (13:14 +0900)]
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.

5 years agoInclude all pg_hint_plan--*.sql files in installation
Kyotaro Horiguchi [Thu, 17 Jan 2019 03:29:47 +0000 (12:29 +0900)]
Include all pg_hint_plan--*.sql files in installation

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

5 years agoChange copyright year to 2019
Kyotaro Horiguchi [Thu, 17 Jan 2019 03:11:17 +0000 (12:11 +0900)]
Change copyright year to 2019

With some minor fixes in the document.

5 years agoCall standrad_ProcessUtility when no hook is set
Kyotaro Horiguchi [Wed, 9 Jan 2019 00:35:41 +0000 (09:35 +0900)]
Call standrad_ProcessUtility when no hook is set

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

5 years agoSupport prepared statements on extended protocol
Kyotaro Horiguchi [Mon, 7 Jan 2019 08:01:32 +0000 (17:01 +0900)]
Support prepared statements on extended protocol

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

5 years agoRemove an useless variable
Kyotaro Horiguchi [Mon, 7 Jan 2019 07:40:21 +0000 (16:40 +0900)]
Remove an useless variable

commit 64ab47b made the variable stmt_name useless. Remove it.

5 years agoFix for union-on-inheritance case
Kyotaro Horiguchi [Tue, 4 Dec 2018 04:19:57 +0000 (13:19 +0900)]
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.

5 years agoDon't reset plpgsql nest level at every command end
Kyotaro Horiguchi [Tue, 4 Dec 2018 01:33:55 +0000 (10:33 +0900)]
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;

5 years agoChanged version to 1.1.7 REL95_1_1_7
Kyotaro Horiguchi [Tue, 13 Nov 2018 07:33:08 +0000 (16:33 +0900)]
Changed version to 1.1.7

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.

5 years agoFix debug output level control
Kyotaro Horiguchi [Tue, 13 Nov 2018 03:43:10 +0000 (12:43 +0900)]
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.

5 years agoChange version to 1.1.6. REL95_1_1_6
Kyotaro Horiguchi [Fri, 8 Jun 2018 04:38:31 +0000 (13:38 +0900)]
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
core.

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

5 years agoTook in core improvement.
Kyotaro Horiguchi [Fri, 8 Jun 2018 04:39:17 +0000 (13:39 +0900)]
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.

5 years agoFix a crash bug in case debug_query_string is NULL
Kyotaro Horiguchi [Thu, 24 May 2018 09:18:29 +0000 (18:18 +0900)]
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.

6 years agoAdded and removed some entries in .gitignore
Kyotaro Horiguchi [Mon, 6 Nov 2017 05:38:49 +0000 (14:38 +0900)]
Added and removed some entries in .gitignore

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

6 years agoUse pg_strcasecmp instead of strcasecmp for the sake of portability
Kyotaro Horiguchi [Mon, 6 Nov 2017 05:01:27 +0000 (14:01 +0900)]
Use pg_strcasecmp instead of strcasecmp for the sake of portability

6 years agoAdded a notice in the manual.
Kyotaro Horiguchi [Tue, 10 Oct 2017 03:17:58 +0000 (12:17 +0900)]
Added a notice in the manual.

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

6 years agoChange version to 1.1.5 REL95_1_1_5
Kyotaro Horiguchi [Thu, 27 Jul 2017 08:04:36 +0000 (17:04 +0900)]
Change version to 1.1.5

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

6 years agoFixed a crash bug by DECLARE CURSOR and enable_hint_table = on
Kyotaro Horiguchi [Thu, 27 Jul 2017 03:26:55 +0000 (12:26 +0900)]
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.

6 years agoChange version to 1.1.4 REL95_1_1_4
Kyotaro Horiguchi [Fri, 19 May 2017 04:53:54 +0000 (13:53 +0900)]
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.

6 years agoFix a bug of target query retrieval
Kyotaro Horiguchi [Fri, 19 May 2017 01:11:55 +0000 (10:11 +0900)]
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.

6 years agoFix a crash bug on complex views when enable_hint_table is on
Kyotaro Horiguchi [Thu, 18 May 2017 09:43:09 +0000 (18:43 +0900)]
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.

7 years agoAdd files needed to do installcheck into tar ball.
Kyotaro Horiguchi [Tue, 19 Jul 2016 08:58:06 +0000 (17:58 +0900)]
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.

7 years agoAdd RPM spec file forgotten in the previous commit.
Kyotaro Horiguchi [Fri, 13 May 2016 06:42:45 +0000 (15:42 +0900)]
Add RPM spec file forgotten in the previous commit.

8 years agoSupport PostgreSQL 9.5.0. REL95_1_1_3
Kyotaro Horiguchi [Fri, 15 Jan 2016 05:12:14 +0000 (14:12 +0900)]
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.

8 years agoPrepare for 1.1.3/PG95.
Kyotaro Horiguchi [Fri, 15 Jan 2016 02:48:52 +0000 (11:48 +0900)]
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.

8 years agoEdit copyright years.
Kyotaro Horiguchi [Fri, 15 Jan 2016 02:47:17 +0000 (11:47 +0900)]
Edit copyright years.

8 years agoChange for new syntax items in 9.5.
Kyotaro Horiguchi [Fri, 15 Jan 2016 02:44:37 +0000 (11:44 +0900)]
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.

8 years agoFollow a change of error message.
Kyotaro Horiguchi [Fri, 15 Jan 2016 00:27:24 +0000 (09:27 +0900)]
Follow a change of error message.

Context message of PL/pgSQL is changed so this commit refrects it to
exted/pg_hint_plan.out.

8 years agoFollowed the changes of 9.5.0 release.
Kyotaro Horiguchi [Fri, 15 Jan 2016 00:28:29 +0000 (09:28 +0900)]
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).

8 years agoMade compatible with 9.5a1
Kyotaro Horiguchi [Mon, 17 Aug 2015 09:33:38 +0000 (18:33 +0900)]
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.

8 years agoMade compatible with 9.5a1
Kyotaro Horiguchi [Mon, 17 Aug 2015 09:33:38 +0000 (18:33 +0900)]
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.

9 years agoFixed a bug related to SQL statements in PL/pgSQL functions.
Kyotaro Horiguchi [Mon, 22 Dec 2014 08:34:15 +0000 (17:34 +0900)]
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.

9 years agoCatch up the changes of pg_stat_statements.c
Kyotaro Horiguchi [Mon, 22 Dec 2014 02:07:09 +0000 (11:07 +0900)]
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
maintenance.

9 years agoSet additional parameter of set_config_option().
Kyotaro Horiguchi [Tue, 16 Dec 2014 10:00:50 +0000 (19:00 +0900)]
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.

9 years agoFix regression test according to the changes of PostgreSQL.
Kyotaro Horiguchi [Tue, 16 Dec 2014 10:12:59 +0000 (19:12 +0900)]
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.

9 years agoPrepare for 1.1.2
Kyotaro Horiguchi [Wed, 17 Dec 2014 02:20:21 +0000 (11:20 +0900)]
Prepare for 1.1.2

9 years agoRemove unnecessary tracker code from documentations.
Kyotaro Horiguchi [Fri, 19 Dec 2014 07:10:46 +0000 (16:10 +0900)]
Remove unnecessary tracker code from documentations.

9 years agoAdded English documentation.
Kyotaro Horiguchi [Fri, 19 Dec 2014 06:43:36 +0000 (15:43 +0900)]
Added English documentation.

9 years agoSome fix and addition to the japaneses document.
Kyotaro Horiguchi [Fri, 19 Dec 2014 06:05:58 +0000 (15:05 +0900)]
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.

9 years agoFix regression test according to the changes of PostgreSQL.
Kyotaro Horiguchi [Tue, 16 Dec 2014 10:12:59 +0000 (19:12 +0900)]
Fix regression test according to the changes of PostgreSQL.

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

9 years agoRemoved a stale comment.
Kyotaro Horiguchi [Tue, 16 Dec 2014 09:45:22 +0000 (18:45 +0900)]
Removed a stale comment.

9 years agoFix to remove plpgsql query string on non-local exit.
Kyotaro Horiguchi [Tue, 16 Dec 2014 05:45:13 +0000 (14:45 +0900)]
Fix to remove plpgsql query string on non-local exit.

Pl/pgsql query string stored internally squatted after an execution
error then pg_hint_plan afterward read it for hints and ignores really
given ones. This commit makes it erased at the end of transaction.

9 years agoFix about unexpectedly living plpgsql query string.
Kyotaro Horiguchi [Tue, 16 Dec 2014 04:20:02 +0000 (13:20 +0900)]
Fix about unexpectedly living plpgsql query string.

pg_hint_plan forgot to erase plpgsql query strings when it is NOT a
static statement, so it continued to read hints from the remenbered
wrong query string after using dynamic execution of a statement. This
commit makes it to be erased for any types of pl/pgsql statement.

9 years agoEnhance debug output.
Kyotaro Horiguchi [Tue, 16 Dec 2014 09:31:12 +0000 (18:31 +0900)]
Enhance debug output.

Added new debug output levels detailed and verbose. These let you see
more verbose information about what pg_hint_plan does internally.

9 years agoRevert "Add new join method hint "NestLoop_NM" which means force nested loop"
Kyotaro Horiguchi [Wed, 17 Dec 2014 01:09:32 +0000 (10:09 +0900)]
Revert "Add new join method hint "NestLoop_NM" which means force nested loop"

This reverts commit 7f6e3ce1326751c36676653ef1e81893296860b6.

9 years agoAdd new join method hint "NestLoop_NM" which means force nested loop
Kyotaro Horiguchi [Thu, 18 Sep 2014 05:23:15 +0000 (14:23 +0900)]
Add new join method hint "NestLoop_NM" which means force nested loop
but inhibit materialize of the inner relation.

9 years agoFix a bug that index restriction by name doesn't work for UPDATEs on
Kyotaro Horiguchi [Wed, 17 Sep 2014 08:13:57 +0000 (17:13 +0900)]
Fix a bug that index restriction by name doesn't work for UPDATEs on
inheritance parent.

Inheritance planner doesn't claim for the inheritance parent relation,
so pg_hint_plan_get_relation_info cannot have the chance to prepare
the index spec information for chlid relations. This change make the
function to try to find parent relation even if it is called for the
children with inhparent == false from the first.

9 years agoRemove unused struct member.
Kyotaro Horiguchi [Wed, 17 Sep 2014 08:10:18 +0000 (17:10 +0900)]
Remove unused struct member.

9 years agoRPM automation
Kyotaro Horiguchi [Fri, 5 Sep 2014 04:35:55 +0000 (13:35 +0900)]
RPM automation

9 years agoChange verision to 1.1.1. Change target version to 9.4.
Kyotaro Horiguchi [Thu, 4 Sep 2014 09:04:56 +0000 (18:04 +0900)]
Change verision to 1.1.1. Change target version to 9.4.

9 years agoMake codes copied from PostgreSQL catch up to 9.4
Kyotaro Horiguchi [Thu, 4 Sep 2014 08:55:38 +0000 (17:55 +0900)]
Make codes copied from PostgreSQL catch up to 9.4

9 years agoInterim support for 9.4beta2. pg_stat_statements.c is replaced with the latest versio...
Kyotaro Horiguchi [Thu, 4 Sep 2014 02:03:08 +0000 (11:03 +0900)]
Interim support for 9.4beta2. pg_stat_statements.c is replaced with the latest version. Regtests are rearranged and stabilized.

9 years agoMerge branch 'master' into PG93
Kyotaro Horiguchi [Fri, 5 Sep 2014 03:34:28 +0000 (12:34 +0900)]
Merge branch 'master' into PG93

10 years agoリグレッションテストを出力メッセージの変更に対応させた。
Takashi Suzuki [Fri, 24 Jan 2014 04:07:00 +0000 (13:07 +0900)]
リグレッションテストを出力メッセージの変更に対応させた。

10 years agohint_reportの出力メッセージを大文字始まりで統一した。
Takashi Suzuki [Fri, 24 Jan 2014 02:18:04 +0000 (11:18 +0900)]
hint_reportの出力メッセージを大文字始まりで統一した。

10 years agoコメントやメッセージを修正した。
Takashi Suzuki [Tue, 21 Jan 2014 02:43:05 +0000 (11:43 +0900)]
コメントやメッセージを修正した。

10 years agoコピーライトを更新した
Takashi Suzuki [Fri, 17 Jan 2014 02:49:38 +0000 (11:49 +0900)]
コピーライトを更新した

10 years agoRowsで外部ファイルを扱う試験を環境に依存しないようにした。
Takashi Suzuki [Fri, 17 Jan 2014 02:29:44 +0000 (11:29 +0900)]
Rowsで外部ファイルを扱う試験を環境に依存しないようにした。

外部ファイルのアドレスを特定の文字列に置き換えることで、環境に依存
しないようにした。

10 years agoRows関連試験の予測結果を、全試験を流した場合のものに変更した。
Takashi Suzuki [Fri, 17 Jan 2014 01:59:42 +0000 (10:59 +0900)]
Rows関連試験の予測結果を、全試験を流した場合のものに変更した。

10 years agoRowsヒント句のメッセージ出力(R-3-6-*)の試験を追加した。
Takashi Suzuki [Fri, 17 Jan 2014 01:52:44 +0000 (10:52 +0900)]
Rowsヒント句のメッセージ出力(R-3-6-*)の試験を追加した。

10 years agoRowsヒント句の同じテーブル組合せ(R-3-5-*)の試験を追加した。
Takashi Suzuki [Fri, 17 Jan 2014 01:38:30 +0000 (10:38 +0900)]
Rowsヒント句の同じテーブル組合せ(R-3-5-*)の試験を追加した。

10 years agoRowsヒント句の継承テーブル関連(R-3-4-*)の試験を追加した。
Takashi Suzuki [Fri, 17 Jan 2014 01:27:22 +0000 (10:27 +0900)]
Rowsヒント句の継承テーブル関連(R-3-4-*)の試験を追加した。

10 years agoRowsヒント句の比率指定(R-3-3-*)の試験を追加した。
Takashi Suzuki [Fri, 17 Jan 2014 01:15:56 +0000 (10:15 +0900)]
Rowsヒント句の比率指定(R-3-3-*)の試験を追加した。

10 years agoRowsヒント句の増減値指定(R-3-2-*)の試験を追加した。
Takashi Suzuki [Thu, 16 Jan 2014 08:12:42 +0000 (17:12 +0900)]
Rowsヒント句の増減値指定(R-3-2-*)の試験を追加した。

10 years agoRowsヒント句の絶対値指定(R-3-1-*)の試験を追加した。
Takashi Suzuki [Thu, 16 Jan 2014 07:44:21 +0000 (16:44 +0900)]
Rowsヒント句の絶対値指定(R-3-1-*)の試験を追加した。

10 years agobug fix #3
Takashi Suzuki [Thu, 16 Jan 2014 07:43:38 +0000 (16:43 +0900)]
bug fix #3

10 years agoR-2-4-*の試験とR-2-5-*の試験を追加した。
Takashi Suzuki [Thu, 16 Jan 2014 06:57:30 +0000 (15:57 +0900)]
R-2-4-*の試験とR-2-5-*の試験を追加した。

10 years agoRowsヒント句のRULEまたはVIEWの試験(R-2-3-*)を追加した。
Takashi Suzuki [Thu, 16 Jan 2014 06:52:16 +0000 (15:52 +0900)]
Rowsヒント句のRULEまたはVIEWの試験(R-2-3-*)を追加した。

10 years agoバグ修正にそって試験および予想結果を修正した。
Takashi Suzuki [Thu, 16 Jan 2014 05:08:55 +0000 (14:08 +0900)]
バグ修正にそって試験および予想結果を修正した。

10 years agobug fix #2
Takashi Suzuki [Thu, 16 Jan 2014 05:02:23 +0000 (14:02 +0900)]
bug fix #2

件数補正のときに、全ての結合パスにおいて部分集合となってしまい、他
のRowsヒント句適用後に見積もり件数を再計算してしまった。。

理由
  Rowsヒント句に存在しないテーブル組合せを指定すると、pg_hint_plan
  内部で空のテーブル集合として扱っていたため。

10 years agoRowsヒント句の件数の書式に関する記述を事実から要請に変更した。
Takashi Suzuki [Wed, 15 Jan 2014 09:41:04 +0000 (18:41 +0900)]
Rowsヒント句の件数の書式に関する記述を事実から要請に変更した。

10 years ago試験R-1-6-7の予測結果を正しい形に修正した。
Takashi Suzuki [Wed, 15 Jan 2014 08:43:52 +0000 (17:43 +0900)]
試験R-1-6-7の予測結果を正しい形に修正した。

10 years ago1ブロックあたりのテーブル数(R-2-2-*)の試験を追加した。
Takashi Suzuki [Wed, 15 Jan 2014 08:42:11 +0000 (17:42 +0900)]
1ブロックあたりのテーブル数(R-2-2-*)の試験を追加した。

ただし、不合格

10 years ago複数の問合せブロックに関する試験(R-2-1-*)を追加した。
Takashi Suzuki [Wed, 15 Jan 2014 08:21:18 +0000 (17:21 +0900)]
複数の問合せブロックに関する試験(R-2-1-*)を追加した。

ただし、不合格

10 years agocore.cの各関数をPG93向けに更新した。
Takashi Suzuki [Wed, 15 Jan 2014 08:11:02 +0000 (17:11 +0900)]
core.cの各関数をPG93向けに更新した。

10 years agoマニュアルにRowsヒント句の仕様の一部と具体例を挿入した。
Takashi Suzuki [Wed, 15 Jan 2014 06:47:35 +0000 (15:47 +0900)]
マニュアルにRowsヒント句の仕様の一部と具体例を挿入した。

記入内容
・Rowsヒント句の補正の件数や倍率をstrtodで補正していること。
理由
・16進数でも指定可能なため。

10 years agoRowsヒント句の引数の条件(R-1-*)の試験を追加した。
Takashi Suzuki [Tue, 14 Jan 2014 02:02:30 +0000 (11:02 +0900)]
Rowsヒント句の引数の条件(R-1-*)の試験を追加した。

10 years ago機能試験表との試験番号のずれをなおした。
Takashi Suzuki [Thu, 9 Jan 2014 04:58:37 +0000 (13:58 +0900)]
機能試験表との試験番号のずれをなおした。

10 years agoスキャン方式試験の予測結果がSQLの変更に沿っていなかったため修正した
Takashi Suzuki [Tue, 24 Dec 2013 07:17:04 +0000 (16:17 +0900)]
スキャン方式試験の予測結果がSQLの変更に沿っていなかったため修正した

10 years agoスキャン方式試験のコメントが一部不適切だったため修正した。
Takashi Suzuki [Tue, 24 Dec 2013 07:05:03 +0000 (16:05 +0900)]
スキャン方式試験のコメントが一部不適切だったため修正した。

10 years agoスキャン方式試験の番号のずれを修正した。
Takashi Suzuki [Tue, 24 Dec 2013 07:00:56 +0000 (16:00 +0900)]
スキャン方式試験の番号のずれを修正した。

10 years agoFix test numbers.
Shigeru HANADA [Tue, 24 Dec 2013 05:02:40 +0000 (14:02 +0900)]
Fix test numbers.

10 years agoPG9.3でのコスト値の変動を反映。
Shigeru HANADA [Mon, 9 Dec 2013 08:23:49 +0000 (17:23 +0900)]
PG9.3でのコスト値の変動を反映。

10 years agoPG92ブランチで追加したコメントに追従。
Shigeru HANADA [Mon, 9 Dec 2013 07:43:26 +0000 (16:43 +0900)]
PG92ブランチで追加したコメントに追従。

10 years agoRowsヒントの追加に伴いリグレッションテスト項目の予想結果を追加。
Shigeru HANADA [Mon, 9 Dec 2013 07:41:34 +0000 (16:41 +0900)]
Rowsヒントの追加に伴いリグレッションテスト項目の予想結果を追加。

9.2版からのコピーなので、細かいコスト値は正確ではない。

10 years agoPG92との差分から生成したパッチを適用。
Shigeru HANADA [Mon, 9 Dec 2013 07:35:02 +0000 (16:35 +0900)]
PG92との差分から生成したパッチを適用。

ただし、PG9.3対応として加えた修正はそのまま残した。

10 years agoAdd *.o to ignore file list.
Shigeru HANADA [Mon, 9 Dec 2013 05:19:48 +0000 (14:19 +0900)]
Add *.o to ignore file list.

10 years agospecファイル中の依存ファイル名を修正した。
Takashi Suzuki [Tue, 12 Nov 2013 07:43:05 +0000 (16:43 +0900)]
specファイル中の依存ファイル名を修正した。

RPM版インストール時の依存ファイル名に誤りがあったため

10 years agoCopyrightの未更新部分を更新した。
Takashi Suzuki [Thu, 7 Nov 2013 05:00:40 +0000 (14:00 +0900)]
Copyrightの未更新部分を更新した。

10 years agoコピーライトと一部の流用関数に更新漏れがあったため、修正した。
Takashi Suzuki [Thu, 31 Oct 2013 08:44:34 +0000 (17:44 +0900)]
コピーライトと一部の流用関数に更新漏れがあったため、修正した。