From a7c64c7dc6c132d63b4246b63db3d0bc2cce3e3e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 16 Jul 2005 20:11:12 +0000 Subject: [PATCH] cube_1 variant is needed in 7.4 branch, per results from buildfarm machine 'kudu'. --- contrib/cube/expected/cube_1.out | 248 +++++++++++++++++++++++++++++++ 1 file changed, 248 insertions(+) diff --git a/contrib/cube/expected/cube_1.out b/contrib/cube/expected/cube_1.out index 73a7c2f115..f5ee88064c 100644 --- a/contrib/cube/expected/cube_1.out +++ b/contrib/cube/expected/cube_1.out @@ -594,6 +594,254 @@ SELECT '[(-1,-1,-1),(1,1,1)]'::cube && '[(2,1,1),(2,2,2)]'::cube AS bool; f (1 row) +-- "overlap on the left" / "overlap on the right" +-- (these operators are not useful at all but R-tree seems to be +-- sensitive to their presence) +-- +SELECT '1'::cube &< '0'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '1'::cube &< '1'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '1'::cube &< '2'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube &< '0'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube &< '1'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube &< '(0),(0.5)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube &< '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube &< '(0),(2)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube &< '(1),(2)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube &< '(2),(3)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '0'::cube &> '1'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '1'::cube &> '1'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '2'::cube &> '1'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '0'::cube &> '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '1'::cube &> '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(0.5)' &> '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube &> '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(2)'::cube &> '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(1),(2)'::cube &> '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(2),(3)'::cube &> '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +-- "left" / "right" +-- (these operators are not useful but for 1-D or 2-D cubes, but R-tree +-- seems to want them defined) +-- +SELECT '1'::cube << '0'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '1'::cube << '1'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '1'::cube << '2'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube << '0'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube << '1'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube << '(0),(0.5)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube << '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube << '(0),(2)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube << '(1),(2)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(1)'::cube << '(2),(3)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '0'::cube >> '1'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '1'::cube >> '1'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '2'::cube >> '1'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '0'::cube >> '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '1'::cube >> '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(0),(0.5)' >> '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(1)'::cube >> '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(0),(2)'::cube >> '(0),(1)'::cube AS bool; + bool +------ + f +(1 row) + +SELECT '(1),(2)'::cube >> '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + +SELECT '(2),(3)'::cube >> '(0),(1)'::cube AS bool; + bool +------ + t +(1 row) + -- "contained in" (the left operand is the cube entirely enclosed by -- the right operand): -- -- 2.39.5