• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

firtst release


Commit MetaInfo

Révisionb2102f707ed4dda9713ebd144c95800252d21c33 (tree)
l'heure2013-08-05 11:40:19
AuteurTakashi Suzuki <suzuki.takashi@metr...>
CommiterTakashi Suzuki

Message de Log

[スキャン方式]試験のSQLファイルの試験番号を更新し、No.S-3-10の試験のSQLを追加した。

Change Summary

Modification

--- a/sql/ut-S.sql
+++ b/sql/ut-S.sql
@@ -829,28 +829,28 @@ EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = 1;
829829 EXPLAIN (COSTS true) SELECT * FROM s1.t1 WHERE t1.c1 = 1;
830830
831831 ----
832----- No. S-3-7 query structure
832+---- No. S-3-6 query structure
833833 ----
834834
835835 EXPLAIN (COSTS false) SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1 AND t1.ctid = '(1,1)';
836836
837--- No. S-3-7-1
837+-- No. S-3-6-1
838838 /*+SeqScan(t1)*/
839839 EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE c1 = 100;
840840
841--- No. S-3-7-2
841+-- No. S-3-6-2
842842 /*+SeqScan(t1)BitmapScan(t2)*/
843843 EXPLAIN (COSTS false) SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1 AND t1.ctid = '(1,1)';
844844
845--- No. S-3-7-3
845+-- No. S-3-6-3
846846 /*+SeqScan(t1)*/
847847 EXPLAIN (COSTS false) SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1 AND t1.ctid = '(1,1)';
848848
849849 ----
850----- No. S-3-8 query structure
850+---- No. S-3-7 query structure
851851 ----
852852
853--- No. S-3-8-1
853+-- No. S-3-7-1
854854 EXPLAIN (COSTS false)
855855 WITH c1 (c1) AS (
856856 SELECT max(b1t1.c1) FROM s1.t1 b1t1 WHERE b1t1.c1 = 1)
@@ -868,7 +868,7 @@ SELECT max(b2t1.c1) FROM s1.t1 b2t1 WHERE b2t1.c1 = 1
868868 ) FROM s1.t1 b3t1 WHERE b3t1.c1 = (
869869 SELECT max(b4t1.c1) FROM s1.t1 b4t1 WHERE b4t1.c1 = 1);
870870
871--- No. S-3-8-2
871+-- No. S-3-7-2
872872 EXPLAIN (COSTS false)
873873 WITH cte1 (c1) AS (
874874 SELECT max(b1t1.c1) FROM s1.t1 b1t1 JOIN s1.t2 b1t2 ON(b1t1.c1 = b1t2.c1) WHERE b1t1.c1 = 1)
@@ -887,7 +887,7 @@ SELECT max(b2t1.c1) FROM s1.t1 b2t1 JOIN s1.t2 b2t2 ON(b2t1.c1 = b2t2.c1) WHERE
887887 ) FROM s1.t1 b3t1 JOIN s1.t2 b3t2 ON(b3t1.c1 = b3t2.c1) JOIN cte1 ON(b3t1.c1 = cte1.c1) WHERE b3t1.c1 = (
888888 SELECT max(b4t1.c1) FROM s1.t1 b4t1 JOIN s1.t2 b4t2 ON(b4t1.c1 = b4t2.c1) WHERE b4t1.c1 = 1);
889889
890--- No. S-3-8-3
890+-- No. S-3-7-3
891891 EXPLAIN (COSTS false)
892892 WITH cte1 (c1) AS (
893893 SELECT max(b1t1.c1) FROM s1.t1 b1t1 JOIN s1.t2 b1t2 ON(b1t1.c1 = b1t2.c1) WHERE b1t1.c1 = 1)
@@ -907,195 +907,200 @@ SELECT max(b2t1.c1) FROM s1.t1 b2t1 WHERE b2t1.c1 = 1
907907 SELECT max(b4t1.c1) FROM s1.t1 b4t1 WHERE b4t1.c1 = 1);
908908
909909 ----
910----- No. S-3-9 inheritance table select type
910+---- No. S-3-8 inheritance table select type
911911 ----
912912
913--- No. S-3-9-1
913+-- No. S-3-8-1
914914 EXPLAIN (COSTS false) SELECT * FROM ONLY s1.p1 WHERE c1 = 1;
915915 /*+IndexScan(p1)*/
916916 EXPLAIN (COSTS false) SELECT * FROM ONLY s1.p1 WHERE c1 = 1;
917917
918--- No. S-3-9-2
918+-- No. S-3-8-2
919919 EXPLAIN (COSTS false) SELECT * FROM s1.p1 WHERE c1 = 1;
920920 /*+IndexScan(p1)*/
921921 EXPLAIN (COSTS false) SELECT * FROM s1.p1 WHERE c1 = 1;
922922
923923 ----
924----- No. S-3-10 inheritance table number
924+---- No. S-3-9 inheritance table number
925925 ----
926926
927--- No. S-3-10-1
927+-- No. S-3-9-1
928928 EXPLAIN (COSTS false) SELECT * FROM s1.p1 WHERE c1 = 1;
929929 /*+IndexScan(p1)*/
930930 EXPLAIN (COSTS false) SELECT * FROM s1.p1 WHERE c1 = 1;
931931
932--- No. S-3-10-2
932+-- No. S-3-9-2
933933 EXPLAIN (COSTS false) SELECT * FROM s1.p2 WHERE c1 = 1;
934934 /*+IndexScan(p2)*/
935935 EXPLAIN (COSTS false) SELECT * FROM s1.p2 WHERE c1 = 1;
936936
937937 ----
938----- No. S-3-11 inheritance table specified table
938+---- No. S-3-10 inheritance table specified table
939939 ----
940940
941941 EXPLAIN (COSTS false) SELECT * FROM s1.p2 WHERE c1 = 1;
942942
943--- No. S-3-11-1
943+-- No. S-3-10-1
944944 /*+IndexScan(p2)*/
945945 EXPLAIN (COSTS false) SELECT * FROM s1.p2 WHERE c1 = 1;
946946
947--- No. S-3-11-2
947+-- No. S-3-10-2
948948 /*+IndexScan(p2c1)*/
949949 EXPLAIN (COSTS false) SELECT * FROM s1.p2 WHERE c1 = 1;
950950
951--- No. S-3-11-3
952-/*+IndexScan(p2 p2_pkey p2c1_pkey p2c1c1_pkey)*/
953-EXPLAIN (COSTS false) SELECT * FROM s1.p2 WHERE c1 = 1;
951+-- No. S-3-10-3
952+EXPLAIN SELECT c4 FROM s1.p1 WHERE c2 * 2 < 100 AND c1 < 10;
953+/*+IndexScan(p1 p1_parent)*/
954+EXPLAIN SELECT c4 FROM s1.p1 WHERE c2 * 2 < 100 AND c1 < 10;
954955
955--- No. S-3-11-4
956+-- No. S-3-10-4
957+/*+IndexScan(p1 p1_i2)*/
958+EXPLAIN SELECT c2 FROM s1.p1 WHERE c2 = 1;
959+
960+-- No. S-3-10-5
956961 /*+IndexScan(p2 p2c1_pkey)*/
957962 EXPLAIN (COSTS true) SELECT * FROM s1.p2 WHERE c1 = 1;
958963
959964 ----
960----- No. S-3-12 specified same table
965+---- No. S-3-11 specified same table
961966 ----
962967
963--- No. S-3-12-1
968+-- No. S-3-11-1
964969 /*+IndexScan(ti1) BitmapScan(ti1)*/
965970 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
966971
967--- No. S-3-12-2
972+-- No. S-3-11-2
968973 /*+IndexScan(ti1 ti1_pkey) BitmapScan(ti1 ti1_btree)*/
969974 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
970975
971--- No. S-3-12-3
976+-- No. S-3-11-3
972977 /*+BitmapScan(ti1) IndexScan(ti1) BitmapScan(ti1)*/
973978 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
974979
975--- No. S-3-12-4
980+-- No. S-3-11-4
976981 /*+BitmapScan(ti1 ti1_hash) IndexScan(ti1 ti1_pkey) BitmapScan(ti1 ti1_btree)*/
977982 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
978983
979984 ----
980----- No. S-3-13 message output
985+---- No. S-3-12 message output
981986 ----
982987
983--- No. S-3-13-1
988+-- No. S-3-12-1
984989 /*+SeqScan(ti1)*/
985990 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
986991
987--- No. S-3-13-2
992+-- No. S-3-12-2
988993 /*+SeqScan(ti1 ti1_pkey)*/
989994 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
990995
991--- No. S-3-13-3
996+-- No. S-3-12-3
992997 /*+SeqScan(ti1 ti1_pkey ti1_btree)*/
993998 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
994999
995--- No. S-3-13-4
1000+-- No. S-3-12-4
9961001 /*+IndexScan(ti1)*/
9971002 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
9981003
999--- No. S-3-13-5
1004+-- No. S-3-12-5
10001005 /*+IndexScan(ti1 ti1_pkey)*/
10011006 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10021007
1003--- No. S-3-13-6
1008+-- No. S-3-12-6
10041009 /*+IndexScan(ti1 ti1_pkey ti1_btree)*/
10051010 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10061011
1007--- No. S-3-13-7
1012+-- No. S-3-12-7
10081013 /*+BitmapScan(ti1)*/
10091014 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10101015
1011--- No. S-3-13-8
1016+-- No. S-3-12-8
10121017 /*+BitmapScan(ti1 ti1_pkey)*/
10131018 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10141019
1015--- No. S-3-13-9
1020+-- No. S-3-12-9
10161021 /*+BitmapScan(ti1 ti1_pkey ti1_btree)*/
10171022 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10181023
1019--- No. S-3-13-10
1024+-- No. S-3-12-10
10201025 /*+TidScan(ti1)*/
10211026 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10221027
1023--- No. S-3-13-11
1028+-- No. S-3-12-11
10241029 /*+TidScan(ti1 ti1_pkey)*/
10251030 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10261031
1027--- No. S-3-13-12
1032+-- No. S-3-12-12
10281033 /*+TidScan(ti1 ti1_pkey ti1_btree)*/
10291034 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10301035
1031--- No. S-3-13-13
1036+-- No. S-3-12-13
10321037 /*+NoSeqScan(ti1)*/
10331038 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10341039
1035--- No. S-3-13-14
1040+-- No. S-3-12-14
10361041 /*+NoSeqScan(ti1 ti1_pkey)*/
10371042 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10381043
1039--- No. S-3-13-15
1044+-- No. S-3-12-15
10401045 /*+NoSeqScan(ti1 ti1_pkey ti1_btree)*/
10411046 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10421047
1043--- No. S-3-13-16
1048+-- No. S-3-12-16
10441049 /*+NoIndexScan(ti1)*/
10451050 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10461051
1047--- No. S-3-13-17
1052+-- No. S-3-12-17
10481053 /*+NoIndexScan(ti1 ti1_pkey)*/
10491054 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10501055
1051--- No. S-3-13-18
1056+-- No. S-3-12-18
10521057 /*+NoIndexScan(ti1 ti1_pkey ti1_btree)*/
10531058 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10541059
1055--- No. S-3-13-19
1060+-- No. S-3-12-19
10561061 /*+NoBitmapScan(ti1)*/
10571062 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10581063
1059--- No. S-3-13-20
1064+-- No. S-3-12-20
10601065 /*+NoBitmapScan(ti1 ti1_pkey)*/
10611066 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10621067
1063--- No. S-3-13-21
1068+-- No. S-3-12-21
10641069 /*+NoBitmapScan(ti1 ti1_pkey ti1_btree)*/
10651070 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10661071
1067--- No. S-3-13-22
1072+-- No. S-3-12-22
10681073 /*+NoTidScan(ti1)*/
10691074 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10701075
1071--- No. S-3-13-23
1076+-- No. S-3-12-23
10721077 /*+NoTidScan(ti1 ti1_pkey)*/
10731078 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10741079
1075--- No. S-3-13-24
1080+-- No. S-3-12-24
10761081 /*+NoTidScan(ti1 ti1_pkey ti1_btree)*/
10771082 EXPLAIN (COSTS false) SELECT * FROM s1.ti1 WHERE c1 = 1 AND ctid = '(1,1)';
10781083
1079--- No. S-3-13-25
1084+-- No. S-3-12-25
10801085 /*+IndexOnlyScan(ti1)*/
10811086 EXPLAIN (COSTS false) SELECT c1 FROM s1.ti1 WHERE c1 >= 1;
10821087
1083--- No. S-3-13-26
1088+-- No. S-3-12-26
10841089 /*+IndexOnlyScan(ti1 ti1_pkey)*/
10851090 EXPLAIN (COSTS false) SELECT c1 FROM s1.ti1 WHERE c1 >= 1;
10861091
1087--- No. S-3-13-27
1092+-- No. S-3-12-27
10881093 /*+IndexOnlyScan(ti1 ti1_pkey ti1_btree)*/
10891094 EXPLAIN (COSTS false) SELECT c1 FROM s1.ti1 WHERE c1 >= 1;
10901095
1091--- No. S-3-13-28
1096+-- No. S-3-12-28
10921097 /*+NoIndexOnlyScan(ti1)*/
10931098 EXPLAIN (COSTS false) SELECT c1 FROM s1.ti1 WHERE c1 = 1;
10941099
1095--- No. S-3-13-29
1100+-- No. S-3-12-29
10961101 /*+NoIndexOnlyScan(ti1 ti1_pkey)*/
10971102 EXPLAIN (COSTS false) SELECT c1 FROM s1.ti1 WHERE c1 = 1;
10981103
1099--- No. S-3-13-30
1104+-- No. S-3-12-30
11001105 /*+NoIndexOnlyScan(ti1 ti1_pkey ti1_btree)*/
11011106 EXPLAIN (COSTS false) SELECT c1 FROM s1.ti1 WHERE c1 = 1;
--- a/sql/ut-init.sql
+++ b/sql/ut-init.sql
@@ -30,6 +30,7 @@ CREATE TABLE s1.t3 (LIKE s1.t1 INCLUDING ALL);
3030 CREATE TABLE s1.t4 (LIKE s1.t1 INCLUDING ALL);
3131 CREATE TABLE s2.t1 (LIKE s1.t1 INCLUDING ALL);
3232 CREATE TABLE s1.p1 (LIKE s1.t1 INCLUDING ALL);
33+CREATE UNIQUE INDEX p1_parent ON s1.p1 USING btree (c4 COLLATE "ja_JP" varchar_ops ASC NULLS LAST, (c1 * 2 < 100)) WHERE c1 < 10;
3334 CREATE TABLE s1.p2 (LIKE s1.t1 INCLUDING ALL);
3435 CREATE TABLE s1.p1c1 (LIKE s1.p1 INCLUDING ALL, CHECK (c1 <= 100)) INHERITS(s1.p1);
3536 CREATE TABLE s1.p1c2 (LIKE s1.p1 INCLUDING ALL, CHECK (c1 > 100 AND c1 <= 200)) INHERITS(s1.p1);
@@ -76,6 +77,7 @@ CREATE INDEX t3_i1 ON s1.t3 (c1);
7677 CREATE INDEX t4_i1 ON s1.t4 (c1);
7778 CREATE INDEX p1_i ON s1.p1 (c1);
7879 CREATE INDEX p2_i ON s1.p2 (c1);
80+CREATE INDEX p1_i2 ON s1.p1 (c2);
7981 CREATE INDEX p1c1_i ON s1.p1c1 (c1);
8082 CREATE INDEX p1c2_i ON s1.p1c2 (c1);
8183 CREATE INDEX p1c3_i ON s1.p1c3 (c1);