regression.FreeBSD
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:35k
源码类别:

数据库系统

开发平台:

Unix_Linux

  1. *** expected/float8.out Thu Mar 19 00:49:38 1998
  2. --- results/float8.out Sun Mar 22 15:36:24 1998
  3. ***************
  4. *** 9,17 ****
  5.   QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e400');
  6.   ERROR:  Bad float8 input format '-10e400'
  7.   QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('10e-400');
  8. - ERROR:  Bad float8 input format '10e-400'
  9.   QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e-400');
  10. - ERROR:  Bad float8 input format '-10e-400'
  11.   QUERY: SELECT '' AS five, FLOAT8_TBL.*;
  12.   five|f1                  
  13.   ----+--------------------
  14. --- 9,15 ----
  15. ***************
  16. *** 20,26 ****
  17.       |-34.84              
  18.       |1.2345678901234e+200
  19.       |1.2345678901234e-200
  20. ! (5 rows)
  21.   
  22.   QUERY: SELECT '' AS four, f.* FROM FLOAT8_TBL f WHERE f.f1 <> '1004.3';
  23.   four|f1                  
  24. --- 18,26 ----
  25.       |-34.84              
  26.       |1.2345678901234e+200
  27.       |1.2345678901234e-200
  28. !     |0                   
  29. !     |0                   
  30. ! (7 rows)
  31.   
  32.   QUERY: SELECT '' AS four, f.* FROM FLOAT8_TBL f WHERE f.f1 <> '1004.3';
  33.   four|f1                  
  34. ***************
  35. *** 29,35 ****
  36.       |-34.84              
  37.       |1.2345678901234e+200
  38.       |1.2345678901234e-200
  39. ! (4 rows)
  40.   
  41.   QUERY: SELECT '' AS one, f.* FROM FLOAT8_TBL f WHERE f.f1 = '1004.3';
  42.   one|    f1
  43. --- 29,37 ----
  44.       |-34.84              
  45.       |1.2345678901234e+200
  46.       |1.2345678901234e-200
  47. !     |0                   
  48. !     |0                   
  49. ! (6 rows)
  50.   
  51.   QUERY: SELECT '' AS one, f.* FROM FLOAT8_TBL f WHERE f.f1 = '1004.3';
  52.   one|    f1
  53. ***************
  54. *** 43,49 ****
  55.        |                   0
  56.        |              -34.84
  57.        |1.2345678901234e-200
  58. ! (3 rows)
  59.   
  60.   QUERY: SELECT '' AS three, f.* FROM FLOAT8_TBL f WHERE  f.f1 < '1004.3';
  61.   three|                  f1
  62. --- 45,53 ----
  63.        |                   0
  64.        |              -34.84
  65.        |1.2345678901234e-200
  66. !      |                   0
  67. !      |                   0
  68. ! (5 rows)
  69.   
  70.   QUERY: SELECT '' AS three, f.* FROM FLOAT8_TBL f WHERE  f.f1 < '1004.3';
  71.   three|                  f1
  72. ***************
  73. *** 51,57 ****
  74.        |                   0
  75.        |              -34.84
  76.        |1.2345678901234e-200
  77. ! (3 rows)
  78.   
  79.   QUERY: SELECT '' AS four, f.* FROM FLOAT8_TBL f WHERE '1004.3' >= f.f1;
  80.   four|                  f1
  81. --- 55,63 ----
  82.        |                   0
  83.        |              -34.84
  84.        |1.2345678901234e-200
  85. !      |                   0
  86. !      |                   0
  87. ! (5 rows)
  88.   
  89.   QUERY: SELECT '' AS four, f.* FROM FLOAT8_TBL f WHERE '1004.3' >= f.f1;
  90.   four|                  f1
  91. ***************
  92. *** 60,66 ****
  93.       |              1004.3
  94.       |              -34.84
  95.       |1.2345678901234e-200
  96. ! (4 rows)
  97.   
  98.   QUERY: SELECT '' AS four, f.* FROM FLOAT8_TBL f WHERE  f.f1 <= '1004.3';
  99.   four|                  f1
  100. --- 66,74 ----
  101.       |              1004.3
  102.       |              -34.84
  103.       |1.2345678901234e-200
  104. !     |                   0
  105. !     |                   0
  106. ! (6 rows)
  107.   
  108.   QUERY: SELECT '' AS four, f.* FROM FLOAT8_TBL f WHERE  f.f1 <= '1004.3';
  109.   four|                  f1
  110. ***************
  111. *** 69,75 ****
  112.       |              1004.3
  113.       |              -34.84
  114.       |1.2345678901234e-200
  115. ! (4 rows)
  116.   
  117.   QUERY: SELECT '' AS three, f.f1, f.f1 * '-10' AS x
  118.      FROM FLOAT8_TBL f
  119. --- 77,85 ----
  120.       |              1004.3
  121.       |              -34.84
  122.       |1.2345678901234e-200
  123. !     |                   0
  124. !     |                   0
  125. ! (6 rows)
  126.   
  127.   QUERY: SELECT '' AS three, f.f1, f.f1 * '-10' AS x
  128.      FROM FLOAT8_TBL f
  129. ***************
  130. *** 127,133 ****
  131.       |-34.84              |34.84               
  132.       |1.2345678901234e+200|1.2345678901234e+200
  133.       |1.2345678901234e-200|1.2345678901234e-200
  134. ! (5 rows)
  135.   
  136.   QUERY: SELECT '' AS five, f.f1, %f.f1 AS trunc_f1
  137.      FROM FLOAT8_TBL f;
  138. --- 137,145 ----
  139.       |-34.84              |34.84               
  140.       |1.2345678901234e+200|1.2345678901234e+200
  141.       |1.2345678901234e-200|1.2345678901234e-200
  142. !     |0                   |0                   
  143. !     |0                   |0                   
  144. ! (7 rows)
  145.   
  146.   QUERY: SELECT '' AS five, f.f1, %f.f1 AS trunc_f1
  147.      FROM FLOAT8_TBL f;
  148. ***************
  149. *** 138,144 ****
  150.       |-34.84              |-34                 
  151.       |1.2345678901234e+200|1.2345678901234e+200
  152.       |1.2345678901234e-200|0                   
  153. ! (5 rows)
  154.   
  155.   QUERY: SELECT '' AS five, f.f1, f.f1 % AS round_f1
  156.      FROM FLOAT8_TBL f;
  157. --- 150,158 ----
  158.       |-34.84              |-34                 
  159.       |1.2345678901234e+200|1.2345678901234e+200
  160.       |1.2345678901234e-200|0                   
  161. !     |0                   |0                   
  162. !     |0                   |0                   
  163. ! (7 rows)
  164.   
  165.   QUERY: SELECT '' AS five, f.f1, f.f1 % AS round_f1
  166.      FROM FLOAT8_TBL f;
  167. ***************
  168. *** 149,155 ****
  169.       |-34.84              |-35                 
  170.       |1.2345678901234e+200|1.2345678901234e+200
  171.       |1.2345678901234e-200|0                   
  172. ! (5 rows)
  173.   
  174.   QUERY: SELECT '' AS three, f.f1, |/f.f1 AS sqrt_f1
  175.      FROM FLOAT8_TBL f
  176. --- 163,171 ----
  177.       |-34.84              |-35                 
  178.       |1.2345678901234e+200|1.2345678901234e+200
  179.       |1.2345678901234e-200|0                   
  180. !     |0                   |0                   
  181. !     |0                   |0                   
  182. ! (7 rows)
  183.   
  184.   QUERY: SELECT '' AS three, f.f1, |/f.f1 AS sqrt_f1
  185.      FROM FLOAT8_TBL f
  186. ***************
  187. *** 179,185 ****
  188.       |-34.84              |-3.26607421344208   
  189.       |1.2345678901234e+200|4.97933859234765e+66
  190.       |1.2345678901234e-200|2.3112042409018e-67 
  191. ! (5 rows)
  192.   
  193.   QUERY: SELECT '' AS five, FLOAT8_TBL.*;
  194.   five|f1                  
  195. --- 195,203 ----
  196.       |-34.84              |-3.26607421344208   
  197.       |1.2345678901234e+200|4.97933859234765e+66
  198.       |1.2345678901234e-200|2.3112042409018e-67 
  199. !     |0                   |0                   
  200. !     |0                   |0                   
  201. ! (7 rows)
  202.   
  203.   QUERY: SELECT '' AS five, FLOAT8_TBL.*;
  204.   five|f1                  
  205. ***************
  206. *** 189,203 ****
  207.       |-34.84              
  208.       |1.2345678901234e+200
  209.       |1.2345678901234e-200
  210. ! (5 rows)
  211.   
  212.   QUERY: UPDATE FLOAT8_TBL
  213.      SET f1 = FLOAT8_TBL.f1 * '-1'
  214.      WHERE FLOAT8_TBL.f1 > '0.0';
  215.   QUERY: SELECT '' AS bad, f.f1 * '1e200' from FLOAT8_TBL f;
  216. ! ERROR:  Bad float8 input format -- overflow
  217.   QUERY: SELECT '' AS bad, f.f1 ^ '1e200' from FLOAT8_TBL f;
  218. ! ERROR:  pow() result is out of range
  219.   QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 = '0.0' ;
  220.   ERROR:  can't take log of zero
  221.   QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 < '0.0' ;
  222. --- 207,223 ----
  223.       |-34.84              
  224.       |1.2345678901234e+200
  225.       |1.2345678901234e-200
  226. !     |0                   
  227. !     |0                   
  228. ! (7 rows)
  229.   
  230.   QUERY: UPDATE FLOAT8_TBL
  231.      SET f1 = FLOAT8_TBL.f1 * '-1'
  232.      WHERE FLOAT8_TBL.f1 > '0.0';
  233.   QUERY: SELECT '' AS bad, f.f1 * '1e200' from FLOAT8_TBL f;
  234. ! ERROR:  floating point exception! The last floating point operation either exceeded legal ranges or was a divide by zero
  235.   QUERY: SELECT '' AS bad, f.f1 ^ '1e200' from FLOAT8_TBL f;
  236. ! ERROR:  Bad float8 input format -- overflow
  237.   QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 = '0.0' ;
  238.   ERROR:  can't take log of zero
  239.   QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 < '0.0' ;
  240. ***************
  241. *** 207,216 ****
  242.   ---+--------------------
  243.      |                   1
  244.      |7.39912306090513e-16
  245.      |                   0
  246.      |                   0
  247.      |                   1
  248. ! (5 rows)
  249.   
  250.   QUERY: SELECT '' AS bad, f.f1 / '0.0' from FLOAT8_TBL f;
  251.   ERROR:  float8div: divide by zero error
  252. --- 227,238 ----
  253.   ---+--------------------
  254.      |                   1
  255.      |7.39912306090513e-16
  256. +    |                   1
  257. +    |                   1
  258.      |                   0
  259.      |                   0
  260.      |                   1
  261. ! (7 rows)
  262.   
  263.   QUERY: SELECT '' AS bad, f.f1 / '0.0' from FLOAT8_TBL f;
  264.   ERROR:  float8div: divide by zero error
  265. ***************
  266. *** 219,226 ****
  267.   ----+---------------------
  268.       |0                    
  269.       |-34.84               
  270.       |-1004.3              
  271.       |-1.2345678901234e+200
  272.       |-1.2345678901234e-200
  273. ! (5 rows)
  274.   
  275. --- 241,250 ----
  276.   ----+---------------------
  277.       |0                    
  278.       |-34.84               
  279. +     |0                    
  280. +     |0                    
  281.       |-1004.3              
  282.       |-1.2345678901234e+200
  283.       |-1.2345678901234e-200
  284. ! (7 rows)
  285.   
  286. ----------------------
  287. *** expected/numerology.out Thu Mar 19 00:49:56 1998
  288. --- results/numerology.out Sun Mar 22 15:36:25 1998
  289. ***************
  290. *** 23,28 ****
  291. --- 23,31 ----
  292.   QUERY: INSERT INTO TEMP_INT4 (f1)
  293.     SELECT int4(f1) FROM FLOAT8_TBL
  294.     WHERE (f1 > -2147483647) AND (f1 < 2147483647);
  295. + ERROR:  There is no operator '>' for types 'float8' and 'int4'
  296. +  You will either have to retype this query using an explicit cast,
  297. +  or you will have to define the operator using CREATE OPERATOR
  298.   QUERY: INSERT INTO TEMP_INT4 (f1)
  299.     SELECT int4(f1) FROM INT2_TBL;
  300.   QUERY: SELECT '' AS nine, f1 FROM TEMP_INT4
  301. ***************
  302. *** 31,44 ****
  303.   ----+------
  304.       |-32767
  305.       | -1234
  306. -     | -1004
  307. -     |   -35
  308. -     |     0
  309. -     |     0
  310.       |     0
  311.       |  1234
  312.       | 32767
  313. ! (9 rows)
  314.   
  315.   QUERY: CREATE TABLE TEMP_INT2 (f1 INT2);
  316.   QUERY: INSERT INTO TEMP_INT2 (f1)
  317. --- 34,43 ----
  318.   ----+------
  319.       |-32767
  320.       | -1234
  321.       |     0
  322.       |  1234
  323.       | 32767
  324. ! (5 rows)
  325.   
  326.   QUERY: CREATE TABLE TEMP_INT2 (f1 INT2);
  327.   QUERY: INSERT INTO TEMP_INT2 (f1)
  328. ***************
  329. *** 56,62 ****
  330.       |    0
  331.       |    0
  332.       |    0
  333. ! (5 rows)
  334.   
  335.   QUERY: CREATE TABLE TEMP_GROUP (f1 INT4, f2 INT4, f3 FLOAT8);
  336.   QUERY: INSERT INTO TEMP_GROUP
  337. --- 55,63 ----
  338.       |    0
  339.       |    0
  340.       |    0
  341. !     |    0
  342. !     |    0
  343. ! (7 rows)
  344.   
  345.   QUERY: CREATE TABLE TEMP_GROUP (f1 INT4, f2 INT4, f3 FLOAT8);
  346.   QUERY: INSERT INTO TEMP_GROUP
  347. ----------------------
  348. *** expected/geometry.out Thu Mar 19 00:49:41 1998
  349. --- results/geometry.out Sun Mar 22 15:36:29 1998
  350. ***************
  351. *** 100,106 ****
  352.         |(5.1,34.5)|[(1,2),(3,4)]                |(3,4)                               
  353.         |(-5,-12)  |[(1,2),(3,4)]                |(1,2)                               
  354.         |(10,10)   |[(1,2),(3,4)]                |(3,4)                               
  355. !       |(0,0)     |[(0,0),(6,6)]                |(-0,0)                              
  356.         |(-10,0)   |[(0,0),(6,6)]                |(0,0)                               
  357.         |(-3,4)    |[(0,0),(6,6)]                |(0,0)                               
  358.         |(5.1,34.5)|[(0,0),(6,6)]                |(6,6)                               
  359. --- 100,106 ----
  360.         |(5.1,34.5)|[(1,2),(3,4)]                |(3,4)                               
  361.         |(-5,-12)  |[(1,2),(3,4)]                |(1,2)                               
  362.         |(10,10)   |[(1,2),(3,4)]                |(3,4)                               
  363. !       |(0,0)     |[(0,0),(6,6)]                |(0,0)                               
  364.         |(-10,0)   |[(0,0),(6,6)]                |(0,0)                               
  365.         |(-3,4)    |[(0,0),(6,6)]                |(0,0)                               
  366.         |(5.1,34.5)|[(0,0),(6,6)]                |(6,6)                               
  367. ***************
  368. *** 113,119 ****
  369.         |(-5,-12)  |[(10,-10),(-3,-4)]           |(-3,-4)                             
  370.         |(10,10)   |[(10,-10),(-3,-4)]           |(-3,-4)                             
  371.         |(0,0)     |[(-1000000,200),(300000,-40)]|(0.0028402365895872,15.384614860264)
  372. !       |(-10,0)   |[(-1000000,200),(300000,-40)]|(-9.99715942258202,15.3864610140473)
  373.         |(-3,4)    |[(-1000000,200),(300000,-40)]|(-2.99789812267519,15.3851688427303)
  374.         |(5.1,34.5)|[(-1000000,200),(300000,-40)]|(5.09647083221496,15.3836744976925) 
  375.         |(-5,-12)  |[(-1000000,200),(300000,-40)]|(-4.99494420845634,15.3855375281616)
  376. --- 113,119 ----
  377.         |(-5,-12)  |[(10,-10),(-3,-4)]           |(-3,-4)                             
  378.         |(10,10)   |[(10,-10),(-3,-4)]           |(-3,-4)                             
  379.         |(0,0)     |[(-1000000,200),(300000,-40)]|(0.0028402365895872,15.384614860264)
  380. !       |(-10,0)   |[(-1000000,200),(300000,-40)]|(-9.99715942258202,15.3864610140472)
  381.         |(-3,4)    |[(-1000000,200),(300000,-40)]|(-2.99789812267519,15.3851688427303)
  382.         |(5.1,34.5)|[(-1000000,200),(300000,-40)]|(5.09647083221496,15.3836744976925) 
  383.         |(-5,-12)  |[(-1000000,200),(300000,-40)]|(-4.99494420845634,15.3855375281616)
  384. ***************
  385. *** 130,140 ****
  386.   six|box                                                                       
  387.   ---+--------------------------------------------------------------------------
  388.      |(2.12132034355964,2.12132034355964),(-2.12132034355964,-2.12132034355964) 
  389. !    |(71.7106781186548,72.7106781186548),(-69.7106781186548,-68.7106781186548) 
  390. !    |(4.53553390593274,6.53553390593274),(-2.53553390593274,-0.535533905932738)
  391. !    |(3.12132034355964,4.12132034355964),(-1.12132034355964,-0.121320343559643)
  392.      |(107.071067811865,207.071067811865),(92.9289321881345,192.928932188135)   
  393. !    |(170.710678118655,70.7106781186548),(29.2893218813452,-70.7106781186548)  
  394.   (6 rows)
  395.   
  396.   QUERY: SELECT '' AS twentyfour, b.f1 + p.f1 AS translation
  397. --- 130,140 ----
  398.   six|box                                                                       
  399.   ---+--------------------------------------------------------------------------
  400.      |(2.12132034355964,2.12132034355964),(-2.12132034355964,-2.12132034355964) 
  401. !    |(71.7106781186547,72.7106781186547),(-69.7106781186547,-68.7106781186547) 
  402. !    |(4.53553390593274,6.53553390593274),(-2.53553390593274,-0.535533905932737)
  403. !    |(3.12132034355964,4.12132034355964),(-1.12132034355964,-0.121320343559642)
  404.      |(107.071067811865,207.071067811865),(92.9289321881345,192.928932188135)   
  405. !    |(170.710678118655,70.7106781186547),(29.2893218813453,-70.7106781186547)  
  406.   (6 rows)
  407.   
  408.   QUERY: SELECT '' AS twentyfour, b.f1 + p.f1 AS translation
  409. ***************
  410. *** 205,215 ****
  411.             |(0,0),(0,0)                
  412.             |(0,0),(0,0)                
  413.             |(0,0),(0,0)                
  414. !           |(-0,0),(-20,-20)           
  415.             |(-10,-10),(-30,-30)        
  416.             |(-25,-25),(-25,-35)        
  417.             |(-30,-30),(-30,-30)        
  418. !           |(-0,2),(-14,0)             
  419.             |(-7,3),(-21,1)             
  420.             |(-17.5,2.5),(-21.5,-0.5)   
  421.             |(-21,3),(-21,3)            
  422. --- 205,215 ----
  423.             |(0,0),(0,0)                
  424.             |(0,0),(0,0)                
  425.             |(0,0),(0,0)                
  426. !           |(0,0),(-20,-20)            
  427.             |(-10,-10),(-30,-30)        
  428.             |(-25,-25),(-25,-35)        
  429.             |(-30,-30),(-30,-30)        
  430. !           |(0,2),(-14,0)              
  431.             |(-7,3),(-21,1)             
  432.             |(-17.5,2.5),(-21.5,-0.5)   
  433.             |(-21,3),(-21,3)            
  434. ***************
  435. *** 217,223 ****
  436.             |(-29.4,118.8),(-88.2,39.6) 
  437.             |(-73.5,104.1),(-108,99)    
  438.             |(-88.2,118.8),(-88.2,118.8)
  439. !           |(14,-0),(0,-34)            
  440.             |(21,-17),(7,-51)           
  441.             |(29.5,-42.5),(17.5,-47.5)  
  442.             |(21,-51),(21,-51)          
  443. --- 217,223 ----
  444.             |(-29.4,118.8),(-88.2,39.6) 
  445.             |(-73.5,104.1),(-108,99)    
  446.             |(-88.2,118.8),(-88.2,118.8)
  447. !           |(14,0),(0,-34)             
  448.             |(21,-17),(7,-51)           
  449.             |(29.5,-42.5),(17.5,-47.5)  
  450.             |(21,-51),(21,-51)          
  451. ***************
  452. *** 232,242 ****
  453.      WHERE (p.f1 <-> '(0,0)'::point) >= 1;
  454.   twenty|rotation                                                                         
  455.   ------+---------------------------------------------------------------------------------
  456. !       |(0,-0),(-0.2,-0.2)                                                               
  457.         |(-0.1,-0.1),(-0.3,-0.3)                                                          
  458.         |(-0.25,-0.25),(-0.25,-0.35)                                                      
  459.         |(-0.3,-0.3),(-0.3,-0.3)                                                          
  460. !       |(0.08,-0),(0,-0.56)                                                              
  461.         |(0.12,-0.28),(0.04,-0.84)                                                        
  462.         |(0.26,-0.7),(0.1,-0.82)                                                          
  463.         |(0.12,-0.84),(0.12,-0.84)                                                        
  464. --- 232,242 ----
  465.      WHERE (p.f1 <-> '(0,0)'::point) >= 1;
  466.   twenty|rotation                                                                         
  467.   ------+---------------------------------------------------------------------------------
  468. !       |(0,0),(-0.2,-0.2)                                                                
  469.         |(-0.1,-0.1),(-0.3,-0.3)                                                          
  470.         |(-0.25,-0.25),(-0.25,-0.35)                                                      
  471.         |(-0.3,-0.3),(-0.3,-0.3)                                                          
  472. !       |(0.08,0),(0,-0.56)                                                               
  473.         |(0.12,-0.28),(0.04,-0.84)                                                        
  474.         |(0.26,-0.7),(0.1,-0.82)                                                          
  475.         |(0.12,-0.84),(0.12,-0.84)                                                        
  476. ***************
  477. *** 244,250 ****
  478.         |(0.0976764836465887,-0.0241724631246608),(0.0325588278821962,-0.0725173893739825)
  479.         |(0.109762715208919,-0.0562379754328844),(0.0813970697054906,-0.0604311578116521) 
  480.         |(0.0976764836465887,-0.0725173893739825),(0.0976764836465887,-0.0725173893739825)
  481. !       |(-0,0.0828402366863905),(-0.201183431952663,0)                                   
  482.         |(-0.100591715976331,0.124260355029586),(-0.301775147928994,0.0414201183431953)   
  483.         |(-0.251479289940828,0.103550295857988),(-0.322485207100592,0.0739644970414201)   
  484.         |(-0.301775147928994,0.124260355029586),(-0.301775147928994,0.124260355029586)    
  485. --- 244,250 ----
  486.         |(0.0976764836465887,-0.0241724631246608),(0.0325588278821962,-0.0725173893739825)
  487.         |(0.109762715208919,-0.0562379754328844),(0.0813970697054906,-0.0604311578116521) 
  488.         |(0.0976764836465887,-0.0725173893739825),(0.0976764836465887,-0.0725173893739825)
  489. !       |(0,0.0828402366863905),(-0.201183431952663,0)                                    
  490.         |(-0.100591715976331,0.124260355029586),(-0.301775147928994,0.0414201183431953)   
  491.         |(-0.251479289940828,0.103550295857988),(-0.322485207100592,0.0739644970414201)   
  492.         |(-0.301775147928994,0.124260355029586),(-0.301775147928994,0.124260355029586)    
  493. ***************
  494. *** 410,434 ****
  495.   QUERY: SELECT '' AS six, polygon(f1)
  496.      FROM CIRCLE_TBL;
  497.   six|polygon                                                                                                                                                                                                                                                                             
  498. ! ---+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  499. !    |((-3,0),(-2.59807621135332,1.5),(-1.5,2.59807621135332),(-1.83690953073357e-16,3),(1.5,2.59807621135332),(2.59807621135332,1.5),(3,3.67381906146713e-16),(2.59807621135332,-1.5),(1.5,-2.59807621135332),(5.5107285922007e-16,-3),(-1.5,-2.59807621135332),(-2.59807621135332,-1.5))
  500. !    |((-99,2),(-85.6025403784439,52),(-49,88.6025403784439),(0.999999999999994,102),(51,88.6025403784439),(87.6025403784439,52),(101,2.00000000000001),(87.6025403784439,-48),(51,-84.6025403784438),(1.00000000000002,-98),(-49,-84.6025403784439),(-85.6025403784438,-48))             
  501. !    |((-4,3),(-3.33012701892219,5.5),(-1.5,7.33012701892219),(1,8),(3.5,7.33012701892219),(5.33012701892219,5.5),(6,3),(5.33012701892219,0.500000000000001),(3.5,-1.33012701892219),(1,-2),(-1.5,-1.33012701892219),(-3.33012701892219,0.499999999999998))                               
  502. !    |((-2,2),(-1.59807621135332,3.5),(-0.5,4.59807621135332),(1,5),(2.5,4.59807621135332),(3.59807621135332,3.5),(4,2),(3.59807621135332,0.500000000000001),(2.5,-0.598076211353315),(1,-1),(-0.5,-0.598076211353316),(-1.59807621135332,0.499999999999999))                             
  503. !    |((90,200),(91.3397459621556,205),(95,208.660254037844),(100,210),(105,208.660254037844),(108.660254037844,205),(110,200),(108.660254037844,195),(105,191.339745962156),(100,190),(95,191.339745962156),(91.3397459621556,195))                                                      
  504. !    |((0,0),(13.3974596215561,50),(50,86.6025403784439),(100,100),(150,86.6025403784439),(186.602540378444,50),(200,1.22460635382238e-14),(186.602540378444,-50),(150,-86.6025403784438),(100,-100),(50,-86.6025403784439),(13.3974596215562,-50))                                       
  505.   (6 rows)
  506.   
  507.   QUERY: SELECT '' AS six, polygon(8, f1)
  508.      FROM CIRCLE_TBL;
  509.   six|polygon                                                                                                                                                                                                                                 
  510. ! ---+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  511. !    |((-3,0),(-2.12132034355964,2.12132034355964),(-1.83690953073357e-16,3),(2.12132034355964,2.12132034355964),(3,3.67381906146713e-16),(2.12132034355964,-2.12132034355964),(5.5107285922007e-16,-3),(-2.12132034355964,-2.12132034355964))
  512. !    |((-99,2),(-69.7106781186548,72.7106781186548),(0.999999999999994,102),(71.7106781186547,72.7106781186548),(101,2.00000000000001),(71.7106781186548,-68.7106781186547),(1.00000000000002,-98),(-69.7106781186547,-68.7106781186548))     
  513. !    |((-4,3),(-2.53553390593274,6.53553390593274),(1,8),(4.53553390593274,6.53553390593274),(6,3),(4.53553390593274,-0.535533905932737),(1,-2),(-2.53553390593274,-0.535533905932738))                                                       
  514. !    |((-2,2),(-1.12132034355964,4.12132034355964),(1,5),(3.12132034355964,4.12132034355964),(4,2),(3.12132034355964,-0.121320343559642),(1,-1),(-1.12132034355964,-0.121320343559643))                                                       
  515. !    |((90,200),(92.9289321881345,207.071067811865),(100,210),(107.071067811865,207.071067811865),(110,200),(107.071067811865,192.928932188135),(100,190),(92.9289321881345,192.928932188135))                                                
  516. !    |((0,0),(29.2893218813452,70.7106781186548),(100,100),(170.710678118655,70.7106781186548),(200,1.22460635382238e-14),(170.710678118655,-70.7106781186547),(100,-100),(29.2893218813453,-70.7106781186548))                               
  517.   (6 rows)
  518.   
  519.   QUERY: SELECT '' AS six, circle(f1, 50.0)
  520. --- 410,434 ----
  521.   QUERY: SELECT '' AS six, polygon(f1)
  522.      FROM CIRCLE_TBL;
  523.   six|polygon                                                                                                                                                                                                                                                                                                                                                                                    
  524. ! ---+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  525. !    |((-3,0),(-2.59807621135076,1.50000000000442),(-1.49999999999116,2.59807621135842),(1.53102359078377e-11,3),(1.50000000001768,2.59807621134311),(2.59807621136607,1.4999999999779),(3,-3.06204718156754e-11),(2.59807621133545,-1.50000000003094),(1.49999999996464,-2.59807621137373),(-4.59307077235131e-11,-3),(-1.5000000000442,-2.5980762113278),(-2.59807621138138,-1.49999999995138))
  526. !    |((-99,2),(-85.6025403783588,52.0000000001473),(-48.9999999997054,88.602540378614),(1.00000000051034,102),(51.0000000005893,88.6025403781036),(87.6025403788692,51.9999999992634),(101,1.99999999897932),(87.6025403778485,-48.0000000010313),(50.9999999988214,-84.6025403791243),(0.999999998468976,-98),(-49.0000000014732,-84.6025403775933),(-85.6025403793795,-47.9999999983795))     
  527. !    |((-4,3),(-3.33012701891794,5.50000000000737),(-1.49999999998527,7.3301270189307),(1.00000000002552,8),(3.50000000002946,7.33012701890518),(5.33012701894346,5.49999999996317),(6,2.99999999994897),(5.33012701889242,0.499999999948437),(3.49999999994107,-1.33012701895622),(0.999999999923449,-2),(-1.50000000007366,-1.33012701887967),(-3.33012701896897,0.500000000081028))           
  528. !    |((-2,2),(-1.59807621135076,3.50000000000442),(-0.499999999991161,4.59807621135842),(1.00000000001531,5),(2.50000000001768,4.59807621134311),(3.59807621136607,3.4999999999779),(4,1.99999999996938),(3.59807621133545,0.499999999969062),(2.49999999996464,-0.598076211373729),(0.999999999954069,-1),(-0.500000000044197,-0.598076211327799),(-1.59807621138138,0.500000000048616))       
  529. !    |((90,200),(91.3397459621641,205.000000000015),(95.0000000000295,208.660254037861),(100.000000000051,210),(105.000000000059,208.66025403781),(108.660254037887,204.999999999926),(110,199.999999999898),(108.660254037785,194.999999999897),(104.999999999882,191.339745962088),(99.9999999998469,190),(94.9999999998527,191.339745962241),(91.3397459620621,195.000000000162))             
  530. !    |((0,0),(13.3974596216412,50.0000000001473),(50.0000000002946,86.602540378614),(100.00000000051,100),(150.000000000589,86.6025403781036),(186.602540378869,49.9999999992634),(200,-1.02068239385585e-09),(186.602540377848,-50.0000000010313),(149.999999998821,-86.6025403791243),(99.999999998469,-100),(49.9999999985268,-86.6025403775933),(13.3974596206205,-49.9999999983795))        
  531.   (6 rows)
  532.   
  533.   QUERY: SELECT '' AS six, polygon(8, f1)
  534.      FROM CIRCLE_TBL;
  535.   six|polygon                                                                                                                                                                                                                                  
  536. ! ---+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  537. !    |((-3,0),(-2.12132034355423,2.12132034356506),(1.53102359078377e-11,3),(2.12132034357588,2.1213203435434),(3,-3.06204718156754e-11),(2.12132034353258,-2.12132034358671),(-4.59307077235131e-11,-3),(-2.12132034359753,-2.12132034352175))
  538. !    |((-99,2),(-69.7106781184743,72.7106781188352),(1.00000000051034,102),(71.710678119196,72.7106781181134),(101,1.99999999897932),(71.7106781177526,-68.7106781195569),(0.999999998468976,-98),(-69.7106781199178,-68.7106781173917))       
  539. !    |((-4,3),(-2.53553390592372,6.53553390594176),(1.00000000002552,8),(4.5355339059598,6.53553390590567),(6,2.99999999994897),(4.53553390588763,-0.535533905977846),(0.999999999923449,-2),(-2.53553390599589,-0.535533905869586))           
  540. !    |((-2,2),(-1.12132034355423,4.12132034356506),(1.00000000001531,5),(3.12132034357588,4.1213203435434),(4,1.99999999996938),(3.12132034353258,-0.121320343586707),(0.999999999954069,-1),(-1.12132034359753,-0.121320343521752))           
  541. !    |((90,200),(92.9289321881526,207.071067811884),(100.000000000051,210),(107.07106781192,207.071067811811),(110,199.999999999898),(107.071067811775,192.928932188044),(99.9999999998469,190),(92.9289321880082,192.928932188261))           
  542. !    |((0,0),(29.2893218815257,70.7106781188352),(100.00000000051,100),(170.710678119196,70.7106781181134),(200,-1.02068239385585e-09),(170.710678117753,-70.7106781195569),(99.999999998469,-100),(29.2893218800822,-70.7106781173917))       
  543.   (6 rows)
  544.   
  545.   QUERY: SELECT '' AS six, circle(f1, 50.0)
  546. ***************
  547. *** 467,477 ****
  548.      WHERE (p1.f1 <-> c1.f1) > 0
  549.      ORDER BY distance, circle, point using <<;
  550.   twentyfour|circle        |point     |         distance
  551. ! ----------+--------------+----------+-----------------
  552. !           |<(100,0),100> |(5.1,34.5)|0.976531926977964
  553.             |<(1,2),3>     |(-3,4)    | 1.47213595499958
  554.             |<(0,0),3>     |(-3,4)    |                2
  555. !           |<(100,0),100> |(-3,4)    | 3.07764064044151
  556.             |<(100,0),100> |(-5,-12)  | 5.68348972285122
  557.             |<(1,3),5>     |(-10,0)   | 6.40175425099138
  558.             |<(1,3),5>     |(10,10)   | 6.40175425099138
  559. --- 467,477 ----
  560.      WHERE (p1.f1 <-> c1.f1) > 0
  561.      ORDER BY distance, circle, point using <<;
  562.   twentyfour|circle        |point     |        distance
  563. ! ----------+--------------+----------+----------------
  564. !           |<(100,0),100> |(5.1,34.5)|0.97653192697797
  565.             |<(1,2),3>     |(-3,4)    |1.47213595499958
  566.             |<(0,0),3>     |(-3,4)    |               2
  567. !           |<(100,0),100> |(-3,4)    |3.07764064044152
  568.             |<(100,0),100> |(-5,-12)  |5.68348972285122
  569.             |<(1,3),5>     |(-10,0)   |6.40175425099138
  570.             |<(1,3),5>     |(10,10)   |6.40175425099138
  571. ***************
  572. *** 483,489 ****
  573.             |<(0,0),3>     |(10,10)   |  11.142135623731
  574.             |<(1,3),5>     |(-5,-12)  | 11.1554944214035
  575.             |<(1,2),3>     |(-5,-12)  | 12.2315462117278
  576. !           |<(1,3),5>     |(5.1,34.5)| 26.7657047773224
  577.             |<(1,2),3>     |(5.1,34.5)|  29.757594539282
  578.             |<(0,0),3>     |(5.1,34.5)| 31.8749193547455
  579.             |<(100,200),10>|(5.1,34.5)| 180.778038568384
  580. --- 483,489 ----
  581.             |<(0,0),3>     |(10,10)   | 11.142135623731
  582.             |<(1,3),5>     |(-5,-12)  |11.1554944214035
  583.             |<(1,2),3>     |(-5,-12)  |12.2315462117278
  584. !           |<(1,3),5>     |(5.1,34.5)|26.7657047773223
  585.             |<(1,2),3>     |(5.1,34.5)| 29.757594539282
  586.             |<(0,0),3>     |(5.1,34.5)|31.8749193547455
  587.             |<(100,200),10>|(5.1,34.5)|180.778038568384
  588. ----------------------
  589. *** expected/tinterval.out Thu Mar 19 00:50:31 1998
  590. --- results/tinterval.out Sun Mar 22 15:36:32 1998
  591. ***************
  592. *** 110,129 ****
  593.      ORDER BY interval1, interval2;
  594.   fourteen|interval1                                                      |interval2                                                      
  595.   --------+---------------------------------------------------------------+---------------------------------------------------------------
  596. -         |["-infinity" "infinity"]                                       |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]
  597. -         |["-infinity" "infinity"]                                       |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
  598.           |["-infinity" "infinity"]                                       |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  599.           |["-infinity" "infinity"]                                       |["Thu Feb 15 12:15:03 1990 PST" "current"]                     
  600. !         |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]|["-infinity" "infinity"]                                       
  601. !         |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["-infinity" "infinity"]                                       
  602. !         |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]|["-infinity" "infinity"]                                       
  603.           |["Thu Feb 15 12:15:03 1990 PST" "current"]                     |["-infinity" "infinity"]                                       
  604.           |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]
  605.           |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]|["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  606.           |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
  607. -         |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["Thu Feb 15 12:15:03 1990 PST" "current"]                     
  608.           |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]|["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  609. !         |["Thu Feb 15 12:15:03 1990 PST" "current"]                     |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  610.   (14 rows)
  611.   
  612.   QUERY: SELECT '' AS five, t1.f1
  613. --- 110,129 ----
  614.      ORDER BY interval1, interval2;
  615.   fourteen|interval1                                                      |interval2                                                      
  616.   --------+---------------------------------------------------------------+---------------------------------------------------------------
  617.           |["-infinity" "infinity"]                                       |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  618. +         |["-infinity" "infinity"]                                       |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
  619.           |["-infinity" "infinity"]                                       |["Thu Feb 15 12:15:03 1990 PST" "current"]                     
  620. !         |["-infinity" "infinity"]                                       |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]
  621.           |["Thu Feb 15 12:15:03 1990 PST" "current"]                     |["-infinity" "infinity"]                                       
  622. +         |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["Thu Feb 15 12:15:03 1990 PST" "current"]                     
  623. +         |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["-infinity" "infinity"]                                       
  624. +         |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]|["-infinity" "infinity"]                                       
  625.           |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]
  626. +         |["Thu Feb 15 12:15:03 1990 PST" "current"]                     |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  627.           |["Sat May 10 23:59:12 1947 PST" "Sun Jan 14 03:14:21 1973 PST"]|["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  628.           |["epoch" "Mon May 01 00:30:30 1995 PDT"]                       |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
  629.           |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]|["epoch" "Mon May 01 00:30:30 1995 PDT"]                       
  630. !         |["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]|["-infinity" "infinity"]                                       
  631.   (14 rows)
  632.   
  633.   QUERY: SELECT '' AS five, t1.f1
  634. ----------------------
  635. *** expected/random.out Thu Mar 19 00:50:07 1998
  636. --- results/random.out Sun Mar 22 15:38:52 1998
  637. ***************
  638. *** 7,18 ****
  639.   QUERY: SELECT count(*) FROM onek where oidrand(onek.oid, 10);
  640.   count
  641.   -----
  642. !    92
  643.   (1 row)
  644.   
  645.   QUERY: SELECT count(*) FROM onek where oidrand(onek.oid, 10);
  646.   count
  647.   -----
  648. !    98
  649.   (1 row)
  650.   
  651. --- 7,18 ----
  652.   QUERY: SELECT count(*) FROM onek where oidrand(onek.oid, 10);
  653.   count
  654.   -----
  655. !   107
  656.   (1 row)
  657.   
  658.   QUERY: SELECT count(*) FROM onek where oidrand(onek.oid, 10);
  659.   count
  660.   -----
  661. !   115
  662.   (1 row)
  663.   
  664. ----------------------