firtst release
Revision | cbe257d9f599aaf64b4f565a2f4ce018c868f21a (tree) |
---|---|
Time | 2020-02-20 20:53:24 |
Author | Kyotaro Horiguchi <horikyota.ntt@gmai...> |
Commiter | Kyotaro Horiguchi |
Support PG12.
As the prepparation for making PG12 branch, change PG version to 12
and adjust for the latest PG12.
@@ -22,8 +22,8 @@ PG_CONFIG = pg_config | ||
22 | 22 | PGXS := $(shell $(PG_CONFIG) --pgxs) |
23 | 23 | include $(PGXS) |
24 | 24 | |
25 | -STARBALL11 = pg_hint_plan11-$(HINTPLANVER).tar.gz | |
26 | -STARBALLS = $(STARBALL11) | |
25 | +STARBALL12 = pg_hint_plan12-$(HINTPLANVER).tar.gz | |
26 | +STARBALLS = $(STARBALL12) | |
27 | 27 | |
28 | 28 | TARSOURCES = Makefile *.c *.h COPYRIGHT* \ |
29 | 29 | pg_hint_plan--*.sql \ |
@@ -37,7 +37,7 @@ endif | ||
37 | 37 | |
38 | 38 | installcheck: $(REGRESSION_EXPECTED) |
39 | 39 | |
40 | -rpms: rpm11 | |
40 | +rpms: rpm12 | |
41 | 41 | |
42 | 42 | # pg_hint_plan.c includes core.c and make_join_rel.c |
43 | 43 | pg_hint_plan.o: core.c make_join_rel.c # pg_stat_statements.c |
@@ -52,7 +52,7 @@ $(STARBALLS): $(TARSOURCES) | ||
52 | 52 | tar -chzf $@ $(addprefix $(subst .tar.gz,,$@)/, $^) |
53 | 53 | rm $(subst .tar.gz,,$@) |
54 | 54 | |
55 | -rpm11: $(STARBALL11) | |
56 | - MAKE_ROOT=`pwd` rpmbuild -bb SPECS/pg_hint_plan11.spec | |
55 | +rpm12: $(STARBALL12) | |
56 | + MAKE_ROOT=`pwd` rpmbuild -bb SPECS/pg_hint_plan12.spec | |
57 | 57 | |
58 | 58 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # SPEC file for pg_store_plans |
2 | 2 | # Copyright(C) 2020 NIPPON TELEGRAPH AND TELEPHONE CORPORATION |
3 | 3 | |
4 | -%define _pgdir /usr/pgsql-11 | |
4 | +%define _pgdir /usr/pgsql-12 | |
5 | 5 | %define _bindir %{_pgdir}/bin |
6 | 6 | %define _libdir %{_pgdir}/lib |
7 | 7 | %define _datadir %{_pgdir}/share |
@@ -14,8 +14,8 @@ | ||
14 | 14 | %endif |
15 | 15 | |
16 | 16 | ## Set general information for pg_store_plans. |
17 | -Summary: Optimizer hint on PostgreSQL 11 | |
18 | -Name: pg_hint_plan11 | |
17 | +Summary: Optimizer hint on PostgreSQL 12 | |
18 | +Name: pg_hint_plan12 | |
19 | 19 | Version: 1.3.4 |
20 | 20 | Release: 1%{?dist} |
21 | 21 | License: BSD |
@@ -26,8 +26,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) | ||
26 | 26 | Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION |
27 | 27 | |
28 | 28 | ## We use postgresql-devel package |
29 | -BuildRequires: postgresql11-devel | |
30 | -Requires: postgresql11-server | |
29 | +BuildRequires: postgresql12-devel | |
30 | +Requires: postgresql12-server | |
31 | 31 | |
32 | 32 | ## Description for "pg_hint_plan" |
33 | 33 | %description |
@@ -35,19 +35,19 @@ Requires: postgresql11-server | ||
35 | 35 | pg_hint_plan provides capability to tweak execution plans to be |
36 | 36 | executed on PostgreSQL. |
37 | 37 | |
38 | -Note that this package is available for only PostgreSQL 11. | |
38 | +Note that this package is available for only PostgreSQL 12. | |
39 | 39 | |
40 | 40 | %package llvmjit |
41 | -Requires: postgresql11-server, postgresql11-llvmjit | |
42 | -Requires: pg_hint_plan11 = 1.3.4 | |
43 | -Summary: Just-in-time compilation support for pg_hint_plan11 | |
41 | +Requires: postgresql12-server, postgresql12-llvmjit | |
42 | +Requires: pg_hint_plan12 = 1.3.4 | |
43 | +Summary: Just-in-time compilation support for pg_hint_plan12 | |
44 | 44 | |
45 | 45 | %description llvmjit |
46 | -Just-in-time compilation support for pg_hint_plan11 | |
46 | +Just-in-time compilation support for pg_hint_plan12 | |
47 | 47 | |
48 | 48 | ## pre work for build pg_hint_plan |
49 | 49 | %prep |
50 | -PATH=/usr/pgsql-11/bin:$PATH | |
50 | +PATH=/usr/pgsql-12/bin:$PATH | |
51 | 51 | if [ "${MAKE_ROOT}" != "" ]; then |
52 | 52 | pushd ${MAKE_ROOT} |
53 | 53 | make clean %{name}-%{version}.tar.gz |
@@ -58,7 +58,7 @@ if [ ! -d %{_rpmdir} ]; then mkdir -p %{_rpmdir}; fi | ||
58 | 58 | |
59 | 59 | ## Set variables for build environment |
60 | 60 | %build |
61 | -PATH=/usr/pgsql-11/bin:$PATH | |
61 | +PATH=/usr/pgsql-12/bin:$PATH | |
62 | 62 | make USE_PGXS=1 %{?_smp_mflags} |
63 | 63 | |
64 | 64 | ## Set variables for install |
@@ -4708,8 +4708,8 @@ error hint: | ||
4708 | 4708 | |
4709 | 4709 | \o |
4710 | 4710 | \! sql/maskout.sh results/ut-J.tmpout |
4711 | - QUERY PLAN | |
4712 | --------------------------------------------------------------------------- | |
4711 | + QUERY PLAN | |
4712 | +------------------------------------------------------------------------------- | |
4713 | 4713 | Hash Full Join (cost={inf}..{inf} rows=1000 width=xxx) |
4714 | 4714 | Hash Cond: (t1.c1 = t2.c1) |
4715 | 4715 | -> Seq Scan on t1 (cost=xxx..xxx rows=1000 width=xxx) |
@@ -3761,8 +3761,9 @@ error hint: | ||
3761 | 3761 | c4 | text | | | |
3762 | 3762 | Indexes: |
3763 | 3763 | "ti1_pkey" PRIMARY KEY, btree (c1) |
3764 | - "ti1_btree" btree (c1) | |
3765 | 3764 | "ti1_c2_key" UNIQUE CONSTRAINT, btree (c2) |
3765 | + "ti1_uniq" UNIQUE, btree (c1) | |
3766 | + "ti1_btree" btree (c1) | |
3766 | 3767 | "ti1_expr" btree ((c1 < 100)) |
3767 | 3768 | "ti1_gin" gin (c1) |
3768 | 3769 | "ti1_gist" gist (c1) |
@@ -3774,7 +3775,6 @@ Indexes: | ||
3774 | 3775 | "ti1_multi" btree (c1, c2, c3, c4) |
3775 | 3776 | "ti1_pred" btree (lower(c4)) |
3776 | 3777 | "ti1_ts" gin (to_tsvector('english'::regconfig, c4)) |
3777 | - "ti1_uniq" UNIQUE, btree (c1) | |
3778 | 3778 | |
3779 | 3779 | EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 < 100 AND c2 = 1 AND lower(c4) = '1' AND to_tsvector('english', c4) @@ 'a & b' AND ctid = '(1,1)'; |
3780 | 3780 | QUERY PLAN |
@@ -4487,8 +4487,8 @@ error hint: | ||
4487 | 4487 | |
4488 | 4488 | \o |
4489 | 4489 | \! sql/maskout.sh results/ut-S.tmpout |
4490 | - QUERY PLAN | |
4491 | ------------------------------------------------------------------------- | |
4490 | + QUERY PLAN | |
4491 | +------------------------------------------------------------------------------- | |
4492 | 4492 | Seq Scan on ti1 (cost={inf}..{inf} rows=1 width=xxx) |
4493 | 4493 | Filter: (c1 = 100) |
4494 | 4494 |
@@ -4505,8 +4505,8 @@ error hint: | ||
4505 | 4505 | |
4506 | 4506 | \o |
4507 | 4507 | \! sql/maskout.sh results/ut-S.tmpout |
4508 | - QUERY PLAN | |
4509 | ------------------------------------------------------------------------- | |
4508 | + QUERY PLAN | |
4509 | +------------------------------------------------------------------------------- | |
4510 | 4510 | Seq Scan on ti1 (cost={inf}..{inf} rows=1 width=xxx) |
4511 | 4511 | Filter: (c1 = 100) |
4512 | 4512 |
@@ -4523,8 +4523,8 @@ error hint: | ||
4523 | 4523 | |
4524 | 4524 | \o |
4525 | 4525 | \! sql/maskout.sh results/ut-S.tmpout |
4526 | - QUERY PLAN | |
4527 | ------------------------------------------------------------------------ | |
4526 | + QUERY PLAN | |
4527 | +------------------------------------------------------------------------------- | |
4528 | 4528 | Seq Scan on ti1 (cost={inf}..{inf} rows=1 width=xxx) |
4529 | 4529 | Filter: (c1 = 100) |
4530 | 4530 |
@@ -4541,8 +4541,8 @@ error hint: | ||
4541 | 4541 | |
4542 | 4542 | \o |
4543 | 4543 | \! sql/maskout.sh results/ut-S.tmpout |
4544 | - QUERY PLAN | |
4545 | ------------------------------------------------------------------------- | |
4544 | + QUERY PLAN | |
4545 | +------------------------------------------------------------------------------- | |
4546 | 4546 | Seq Scan on ti1 (cost={inf}..{inf} rows=1 width=xxx) |
4547 | 4547 | Filter: (c1 = 100) |
4548 | 4548 |
@@ -4559,8 +4559,8 @@ error hint: | ||
4559 | 4559 | |
4560 | 4560 | \o |
4561 | 4561 | \! sql/maskout.sh results/ut-S.tmpout |
4562 | - QUERY PLAN | |
4563 | ------------------------------------------------------------------------- | |
4562 | + QUERY PLAN | |
4563 | +------------------------------------------------------------------------------- | |
4564 | 4564 | Seq Scan on ti1 (cost={inf}..{inf} rows=1 width=xxx) |
4565 | 4565 | Filter: (c1 = 100) |
4566 | 4566 |
@@ -4577,8 +4577,8 @@ error hint: | ||
4577 | 4577 | |
4578 | 4578 | \o |
4579 | 4579 | \! sql/maskout.sh results/ut-S.tmpout |
4580 | - QUERY PLAN | |
4581 | ------------------------------------------------------------------------ | |
4580 | + QUERY PLAN | |
4581 | +------------------------------------------------------------------------------- | |
4582 | 4582 | Seq Scan on ti1 (cost={inf}..{inf} rows=1 width=xxx) |
4583 | 4583 | Filter: (c1 = 100) |
4584 | 4584 |
@@ -4601,8 +4601,8 @@ error hint: | ||
4601 | 4601 | |
4602 | 4602 | \o |
4603 | 4603 | \! sql/maskout.sh results/ut-S.tmpout |
4604 | - QUERY PLAN | |
4605 | ------------------------------------------------------------------------ | |
4604 | + QUERY PLAN | |
4605 | +------------------------------------------------------------------------------- | |
4606 | 4606 | Seq Scan on t1 (cost={inf}..{inf} rows=1 width=xxx) |
4607 | 4607 | Filter: (c1 = 1) |
4608 | 4608 |
@@ -5277,8 +5277,8 @@ error hint: | ||
5277 | 5277 | |
5278 | 5278 | \o |
5279 | 5279 | \! sql/maskout.sh results/ut-S.tmpout |
5280 | - QUERY PLAN | |
5281 | ------------------------------------------------------------------------------- | |
5280 | + QUERY PLAN | |
5281 | +------------------------------------------------------------------------------- | |
5282 | 5282 | Append (cost=xxx..xxx rows=4 width=xxx) |
5283 | 5283 | -> Index Scan using p1_i2 on p1 (cost=xxx..xxx rows=1 width=xxx) |
5284 | 5284 | Index Cond: (c2 = 1) |
@@ -1241,7 +1241,7 @@ error hint: | ||
1241 | 1241 | |
1242 | 1242 | \o |
1243 | 1243 | \! sql/maskout2.sh results/ut-W.tmpout |
1244 | - QUERY PLAN | |
1244 | + QUERY PLAN | |
1245 | 1245 | --(snip..) |
1246 | 1246 | Append |
1247 | 1247 | -> Result |