Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008, 06:13 PM
Zdenek Kotala
 
Posts: n/a
Default Regression test fails when BLCKSZ is 1kB

I compiled postgreSQL with 1kB block size and regresion test fails. Main problem
is that output is correct but in different order. See attachment.

I think affected test should contain order by keyword.

Any comments?

Zdenek

*** ./expected/join.out Wed Jan 9 21:42:28 2008
--- ./results/join.out Mon Apr 21 13:50:53 2008
***************
*** 214,226 ****
WHERE t1.a = t2.d;
xxx | a | e
-----+---+----
- | 0 |
| 1 | -1
| 2 | 2
- | 2 | 4
| 3 | -3
| 5 | -5
| 5 | -5
(7 rows)

--
--- 214,226 ----
WHERE t1.a = t2.d;
xxx | a | e
-----+---+----
| 1 | -1
| 2 | 2
| 3 | -3
+ | 2 | 4
| 5 | -5
| 5 | -5
+ | 0 |
(7 rows)

--
***************
*** 1569,1581 ****
FROM J1_TBL INNER JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
- | 0 | | zero |
| 1 | 4 | one | -1
| 2 | 3 | two | 2
- | 2 | 3 | two | 4
| 3 | 2 | three | -3
| 5 | 0 | five | -5
| 5 | 0 | five | -5
(7 rows)

-- Same as above, slightly different syntax
--- 1569,1581 ----
FROM J1_TBL INNER JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
| 1 | 4 | one | -1
| 2 | 3 | two | 2
| 3 | 2 | three | -3
+ | 2 | 3 | two | 4
| 5 | 0 | five | -5
| 5 | 0 | five | -5
+ | 0 | | zero |
(7 rows)

-- Same as above, slightly different syntax
***************
*** 1583,1595 ****
FROM J1_TBL JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
- | 0 | | zero |
| 1 | 4 | one | -1
| 2 | 3 | two | 2
- | 2 | 3 | two | 4
| 3 | 2 | three | -3
| 5 | 0 | five | -5
| 5 | 0 | five | -5
(7 rows)

SELECT '' AS "xxx", *
--- 1583,1595 ----
FROM J1_TBL JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
| 1 | 4 | one | -1
| 2 | 3 | two | 2
| 3 | 2 | three | -3
+ | 2 | 3 | two | 4
| 5 | 0 | five | -5
| 5 | 0 | five | -5
+ | 0 | | zero |
(7 rows)

SELECT '' AS "xxx", *
***************
*** 1625,1637 ****
FROM J1_TBL NATURAL JOIN J2_TBL;
xxx | i | j | t | k
-----+---+---+-------+----
- | 0 | | zero |
| 1 | 4 | one | -1
| 2 | 3 | two | 2
- | 2 | 3 | two | 4
| 3 | 2 | three | -3
| 5 | 0 | five | -5
| 5 | 0 | five | -5
(7 rows)

SELECT '' AS "xxx", *
--- 1625,1637 ----
FROM J1_TBL NATURAL JOIN J2_TBL;
xxx | i | j | t | k
-----+---+---+-------+----
| 1 | 4 | one | -1
| 2 | 3 | two | 2
| 3 | 2 | three | -3
+ | 2 | 3 | two | 4
| 5 | 0 | five | -5
| 5 | 0 | five | -5
+ | 0 | | zero |
(7 rows)

SELECT '' AS "xxx", *
***************
*** 1638,1650 ****
FROM J1_TBL t1 (a, b, c) NATURAL JOIN J2_TBL t2 (a, d);
xxx | a | b | c | d
-----+---+---+-------+----
- | 0 | | zero |
| 1 | 4 | one | -1
| 2 | 3 | two | 2
- | 2 | 3 | two | 4
| 3 | 2 | three | -3
| 5 | 0 | five | -5
| 5 | 0 | five | -5
(7 rows)

SELECT '' AS "xxx", *
--- 1638,1650 ----
FROM J1_TBL t1 (a, b, c) NATURAL JOIN J2_TBL t2 (a, d);
xxx | a | b | c | d
-----+---+---+-------+----
| 1 | 4 | one | -1
| 2 | 3 | two | 2
| 3 | 2 | three | -3
+ | 2 | 3 | two | 4
| 5 | 0 | five | -5
| 5 | 0 | five | -5
+ | 0 | | zero |
(7 rows)

SELECT '' AS "xxx", *
***************
*** 1651,1659 ****
FROM J1_TBL t1 (a, b, c) NATURAL JOIN J2_TBL t2 (d, a);
xxx | a | b | c | d
-----+---+---+------+---
- | 0 | | zero |
| 2 | 3 | two | 2
| 4 | 1 | four | 2
(3 rows)

-- mismatch number of columns
--- 1651,1659 ----
FROM J1_TBL t1 (a, b, c) NATURAL JOIN J2_TBL t2 (d, a);
xxx | a | b | c | d
-----+---+---+------+---
| 2 | 3 | two | 2
| 4 | 1 | four | 2
+ | 0 | | zero |
(3 rows)

-- mismatch number of columns
***************
*** 1662,1674 ****
FROM J1_TBL t1 (a, b) NATURAL JOIN J2_TBL t2 (a);
xxx | a | b | t | k
-----+---+---+-------+----
- | 0 | | zero |
| 1 | 4 | one | -1
| 2 | 3 | two | 2
- | 2 | 3 | two | 4
| 3 | 2 | three | -3
| 5 | 0 | five | -5
| 5 | 0 | five | -5
(7 rows)

--
--- 1662,1674 ----
FROM J1_TBL t1 (a, b) NATURAL JOIN J2_TBL t2 (a);
xxx | a | b | t | k
-----+---+---+-------+----
| 1 | 4 | one | -1
| 2 | 3 | two | 2
| 3 | 2 | three | -3
+ | 2 | 3 | two | 4
| 5 | 0 | five | -5
| 5 | 0 | five | -5
+ | 0 | | zero |
(7 rows)

--
***************
*** 1678,1690 ****
FROM J1_TBL JOIN J2_TBL ON (J1_TBL.i = J2_TBL.i);
xxx | i | j | t | i | k
-----+---+---+-------+---+----
- | 0 | | zero | 0 |
| 1 | 4 | one | 1 | -1
| 2 | 3 | two | 2 | 2
- | 2 | 3 | two | 2 | 4
| 3 | 2 | three | 3 | -3
| 5 | 0 | five | 5 | -5
| 5 | 0 | five | 5 | -5
(7 rows)

SELECT '' AS "xxx", *
--- 1678,1690 ----
FROM J1_TBL JOIN J2_TBL ON (J1_TBL.i = J2_TBL.i);
xxx | i | j | t | i | k
-----+---+---+-------+---+----
| 1 | 4 | one | 1 | -1
| 2 | 3 | two | 2 | 2
| 3 | 2 | three | 3 | -3
+ | 2 | 3 | two | 2 | 4
| 5 | 0 | five | 5 | -5
| 5 | 0 | five | 5 | -5
+ | 0 | | zero | 0 |
(7 rows)

SELECT '' AS "xxx", *
***************
*** 1691,1699 ****
FROM J1_TBL JOIN J2_TBL ON (J1_TBL.i = J2_TBL.k);
xxx | i | j | t | i | k
-----+---+---+------+---+---
- | 0 | | zero | | 0
| 2 | 3 | two | 2 | 2
| 4 | 1 | four | 2 | 4
(3 rows)

--
--- 1691,1699 ----
FROM J1_TBL JOIN J2_TBL ON (J1_TBL.i = J2_TBL.k);
xxx | i | j | t | i | k
-----+---+---+------+---+---
| 2 | 3 | two | 2 | 2
| 4 | 1 | four | 2 | 4
+ | 0 | | zero | | 0
(3 rows)

--
***************
*** 1762,1774 ****
FROM J1_TBL RIGHT OUTER JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
- | 0 | | zero |
| 1 | 4 | one | -1
| 2 | 3 | two | 2
- | 2 | 3 | two | 4
| 3 | 2 | three | -3
| 5 | 0 | five | -5
| 5 | 0 | five | -5
| | | |
| | | | 0
(9 rows)
--- 1762,1774 ----
FROM J1_TBL RIGHT OUTER JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
| 1 | 4 | one | -1
| 2 | 3 | two | 2
| 3 | 2 | three | -3
+ | 2 | 3 | two | 4
| 5 | 0 | five | -5
| 5 | 0 | five | -5
+ | 0 | | zero |
| | | |
| | | | 0
(9 rows)
***************
*** 1777,1789 ****
FROM J1_TBL RIGHT JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
- | 0 | | zero |
| 1 | 4 | one | -1
| 2 | 3 | two | 2
- | 2 | 3 | two | 4
| 3 | 2 | three | -3
| 5 | 0 | five | -5
| 5 | 0 | five | -5
| | | |
| | | | 0
(9 rows)
--- 1777,1789 ----
FROM J1_TBL RIGHT JOIN J2_TBL USING (i);
xxx | i | j | t | k
-----+---+---+-------+----
| 1 | 4 | one | -1
| 2 | 3 | two | 2
| 3 | 2 | three | -3
+ | 2 | 3 | two | 4
| 5 | 0 | five | -5
| 5 | 0 | five | -5
+ | 0 | | zero |
| | | |
| | | | 0
(9 rows)

================================================== ====================

*** ./expected/arrays.out Thu Mar 20 22:42:48 2008
--- ./results/arrays.out Mon Apr 21 13:50:52 2008
***************
*** 139,146 ****
a | b | c
---------------+-----------------------+-------------------
{16,25,3,4,5} | {{{113,142},{1,147}}} | {}
- {16,25,23} | {{3,4},{4,5}} | {foobar,new_word}
[4:4]={NULL} | {3,4} | {foo,new_word}
(3 rows)

--
--- 139,146 ----
a | b | c
---------------+-----------------------+-------------------
{16,25,3,4,5} | {{{113,142},{1,147}}} | {}
[4:4]={NULL} | {3,4} | {foo,new_word}
+ {16,25,23} | {{3,4},{4,5}} | {foobar,new_word}
(3 rows)

--

================================================== ====================

*** ./expected/misc.out Mon Apr 21 13:50:12 2008
--- ./results/misc.out Mon Apr 21 13:50:55 2008
***************
*** 356,361 ****
--- 356,362 ----
e | 18 | | |
e | | hi elisa | |
e | | | -4 |
+ f | 25 | | -9 |
f | 19 | hi claire | -5 |
f | 20 | hi mike | -6 |
f | 21 | hi marcel | |
***************
*** 362,368 ****
f | 22 | | -7 |
f | | hi keith | -8 |
f | 24 | hi marc | |
- f | 25 | | -9 |
f | 26 | | |
f | | hi allison | -10 |
f | | hi jeff | |
--- 363,368 ----
***************
*** 416,421 ****
--- 416,422 ----
e | 18 |
e | |
e | |
+ f | 25 |
f | 19 |
f | 20 |
f | 21 |
***************
*** 422,428 ****
f | 22 |
f | |
f | 24 |
- f | 25 |
f | 26 |
f | |
f | |
--- 423,428 ----

================================================== ====================

*** ./expected/polymorphism.out Fri Jan 11 19:39:41 2008
--- ./results/polymorphism.out Mon Apr 21 13:51:03 2008
***************
*** 355,362 ****
select f3, myaggp01a(*) from t group by f3;
f3 | myaggp01a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 355,362 ----
select f3, myaggp01a(*) from t group by f3;
f3 | myaggp01a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 363,370 ****
select f3, myaggp03a(*) from t group by f3;
f3 | myaggp03a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 363,370 ----
select f3, myaggp03a(*) from t group by f3;
f3 | myaggp03a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 371,378 ****
select f3, myaggp03b(*) from t group by f3;
f3 | myaggp03b
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 371,378 ----
select f3, myaggp03b(*) from t group by f3;
f3 | myaggp03b
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 379,386 ****
select f3, myaggp05a(f1) from t group by f3;
f3 | myaggp05a
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 379,386 ----
select f3, myaggp05a(f1) from t group by f3;
f3 | myaggp05a
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)

***************
*** 387,394 ****
select f3, myaggp06a(f1) from t group by f3;
f3 | myaggp06a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 387,394 ----
select f3, myaggp06a(f1) from t group by f3;
f3 | myaggp06a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 395,402 ****
select f3, myaggp08a(f1) from t group by f3;
f3 | myaggp08a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 395,402 ----
select f3, myaggp08a(f1) from t group by f3;
f3 | myaggp08a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 403,410 ****
select f3, myaggp09a(f1) from t group by f3;
f3 | myaggp09a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 403,410 ----
select f3, myaggp09a(f1) from t group by f3;
f3 | myaggp09a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 411,418 ****
select f3, myaggp09b(f1) from t group by f3;
f3 | myaggp09b
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 411,418 ----
select f3, myaggp09b(f1) from t group by f3;
f3 | myaggp09b
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 419,426 ****
select f3, myaggp10a(f1) from t group by f3;
f3 | myaggp10a
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 419,426 ----
select f3, myaggp10a(f1) from t group by f3;
f3 | myaggp10a
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)

***************
*** 427,434 ****
select f3, myaggp10b(f1) from t group by f3;
f3 | myaggp10b
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 427,434 ----
select f3, myaggp10b(f1) from t group by f3;
f3 | myaggp10b
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)

***************
*** 435,442 ****
select f3, myaggp20a(f1) from t group by f3;
f3 | myaggp20a
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 435,442 ----
select f3, myaggp20a(f1) from t group by f3;
f3 | myaggp20a
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)

***************
*** 443,450 ****
select f3, myaggp20b(f1) from t group by f3;
f3 | myaggp20b
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 443,450 ----
select f3, myaggp20b(f1) from t group by f3;
f3 | myaggp20b
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)

***************
*** 451,458 ****
select f3, myaggn01a(*) from t group by f3;
f3 | myaggn01a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 451,458 ----
select f3, myaggn01a(*) from t group by f3;
f3 | myaggn01a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 459,466 ****
select f3, myaggn01b(*) from t group by f3;
f3 | myaggn01b
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 459,466 ----
select f3, myaggn01b(*) from t group by f3;
f3 | myaggn01b
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 467,474 ****
select f3, myaggn03a(*) from t group by f3;
f3 | myaggn03a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 467,474 ----
select f3, myaggn03a(*) from t group by f3;
f3 | myaggn03a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 475,482 ****
select f3, myaggn05a(f1) from t group by f3;
f3 | myaggn05a
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 475,482 ----
select f3, myaggn05a(f1) from t group by f3;
f3 | myaggn05a
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)

***************
*** 483,490 ****
select f3, myaggn05b(f1) from t group by f3;
f3 | myaggn05b
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 483,490 ----
select f3, myaggn05b(f1) from t group by f3;
f3 | myaggn05b
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)

***************
*** 491,498 ****
select f3, myaggn06a(f1) from t group by f3;
f3 | myaggn06a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 491,498 ----
select f3, myaggn06a(f1) from t group by f3;
f3 | myaggn06a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 499,506 ****
select f3, myaggn06b(f1) from t group by f3;
f3 | myaggn06b
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 499,506 ----
select f3, myaggn06b(f1) from t group by f3;
f3 | myaggn06b
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 507,514 ****
select f3, myaggn08a(f1) from t group by f3;
f3 | myaggn08a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 507,514 ----
select f3, myaggn08a(f1) from t group by f3;
f3 | myaggn08a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 515,522 ****
select f3, myaggn08b(f1) from t group by f3;
f3 | myaggn08b
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 515,522 ----
select f3, myaggn08b(f1) from t group by f3;
f3 | myaggn08b
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 523,530 ****
select f3, myaggn09a(f1) from t group by f3;
f3 | myaggn09a
----+-----------
- b | {}
c | {}
a | {}
(3 rows)

--- 523,530 ----
select f3, myaggn09a(f1) from t group by f3;
f3 | myaggn09a
----+-----------
c | {}
+ b | {}
a | {}
(3 rows)

***************
*** 531,538 ****
select f3, myaggn10a(f1) from t group by f3;
f3 | myaggn10a
----+-----------
- b | {1,2,3}
c | {1,2}
a | {1,2,3}
(3 rows)

--- 531,538 ----
select f3, myaggn10a(f1) from t group by f3;
f3 | myaggn10a
----+-----------
c | {1,2}
+ b | {1,2,3}
a | {1,2,3}
(3 rows)


================================================== ====================



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 06:13 PM
Peter Eisentraut
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

Am Montag, 21. April 2008 schrieb Zdenek Kotala:
> I compiled postgreSQL with 1kB block size and regresion test fails. Main
> problem is that output is correct but in different order. See attachment.


This was previously reported:
http://archives.postgresql.org/pgsql...1/msg00901.php

> I think affected test should contain order by keyword.


For previously established reasons, we don't want to add ORDER BY clauses to
every test that might fail under exceptional circumstances so we test all
plan types equally. I think very small block sizes are fairly exceptional,
unless you have a reason up your sleeve why they are a good idea.

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 06:13 PM
Pavan Deolasee
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

On Mon, Apr 21, 2008 at 5:55 PM, Peter Eisentraut <peter_e@gmx.net> wrote:

>
> For previously established reasons, we don't want to add ORDER BY clauses to
> every test that might fail under exceptional circumstances so we test all
> plan types equally. I think very small block sizes are fairly exceptional,
> unless you have a reason up your sleeve why they are a good idea.
>


Now that we have autovacuum on by default, we might get into random
failures because of re-ordering. Though I don't seem to recall anybody
complaining yet, it could just be that we are lucky or our regression
suite don't have long enough running tests to give autovacuum chance
to recycle some of the dead tuples.

Thanks,
Pavan


--
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-24-2008, 06:13 PM
Tom Lane
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

"Pavan Deolasee" <pavan.deolasee@gmail.com> writes:
> Now that we have autovacuum on by default, we might get into random
> failures because of re-ordering. Though I don't seem to recall anybody
> complaining yet, it could just be that we are lucky or our regression
> suite don't have long enough running tests to give autovacuum chance
> to recycle some of the dead tuples.


No, the reason you don't see that is that plain VACUUM doesn't move
tuples around.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-24-2008, 06:13 PM
Zdenek Kotala
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

Peter Eisentraut napsal(a):
> Am Montag, 21. April 2008 schrieb Zdenek Kotala:
>> I compiled postgreSQL with 1kB block size and regresion test fails. Main
>> problem is that output is correct but in different order. See attachment.

>
> This was previously reported:
> http://archives.postgresql.org/pgsql...1/msg00901.php
>
>> I think affected test should contain order by keyword.

>
> For previously established reasons, we don't want to add ORDER BY clauses to
> every test that might fail under exceptional circumstances so we test all
> plan types equally. I think very small block sizes are fairly exceptional,
> unless you have a reason up your sleeve why they are a good idea.


I'm only testing behavior with different block size and I think it is not good
idea to support only 8kB for regtest. When 4kB is used then PG fails in Join
regresion test and with 16kB, 32kB it fails because:

*** ./expected/bitmapops.out Fri Apr 11 00:25:26 2008
--- ./results/bitmapops.out Mon Apr 21 15:30:18 2008
***************
*** 20,25 ****
--- 20,26 ----
set enable_seqscan=false;
-- Lower work_mem to trigger use of lossy bitmaps
set work_mem = 64;
+ ERROR: 64 is outside the valid range for parameter "work_mem" (256 .. 2097151)
-- Test bitmap-and.
SELECT count(*) FROM bmscantest WHERE a = 1 AND b = 1;
count


Zdenek

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-24-2008, 06:13 PM
Peter Eisentraut
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

Am Montag, 21. April 2008 schrieb Zdenek Kotala:
> I'm only testing behavior with different block size and I think it is not
> good idea to support only 8kB for regtest. When 4kB is used then PG fails
> in Join regresion test and with 16kB, 32kB it fails because:
>
> *** ./expected/bitmapops.out Fri Apr 11 00:25:26 2008
> --- ./results/bitmapops.out Mon Apr 21 15:30:18 2008
> ***************
> *** 20,25 ****
> --- 20,26 ----
> set enable_seqscan=false;
> -- Lower work_mem to trigger use of lossy bitmaps
> set work_mem = 64;
> + ERROR: 64 is outside the valid range for parameter "work_mem" (256 ..
> 2097151) -- Test bitmap-and.
> SELECT count(*) FROM bmscantest WHERE a = 1 AND b = 1;
> count


This should probably be fixed by using a unit specification on work_mem. Do
you want to prepare a patch?

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-24-2008, 06:13 PM
Martijn van Oosterhout
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

On Mon, Apr 21, 2008 at 02:25:31PM +0200, Peter Eisentraut wrote:
> > I think affected test should contain order by keyword.

>
> For previously established reasons, we don't want to add ORDER BY clausesto
> every test that might fail under exceptional circumstances so we test all
> plan types equally. I think very small block sizes are fairly exceptional,
> unless you have a reason up your sleeve why they are a good idea.


I wonder if it would be feasable to, whenever a regression test fails
to sort both files and compare again. This should tell you if the
difference are *only* rearrangement automatically, without having to
eyeball the output.

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIDL3gIB7bNG8LQkwRAiJ3AJwJkrnJCigUafGj2Yusye pjWLq7RQCfV2vy
Eru1NRcrhpxnIpG9QA4ZGrY=
=MsAR
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-24-2008, 06:13 PM
Peter Eisentraut
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

Am Montag, 21. April 2008 schrieb Martijn van Oosterhout:
> I wonder if it would be feasable to, whenever a regression test fails
> to sort both files and compare again. This should tell you if the
> difference are *only* rearrangement automatically, without having to
> eyeball the output.


That sounds like it should be worth a try.

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-24-2008, 06:13 PM
Andrew Dunstan
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB



Peter Eisentraut wrote:
> Am Montag, 21. April 2008 schrieb Martijn van Oosterhout:
>
>> I wonder if it would be feasable to, whenever a regression test fails
>> to sort both files and compare again. This should tell you if the
>> difference are *only* rearrangement automatically, without having to
>> eyeball the output.
>>

>
> That sounds like it should be worth a try.
>


I think we need first to identify cases where we don't care that much
about output order. Teaching pg-regress the new check shouldn't be very
hard.

cheers

andrew



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-24-2008, 06:13 PM
Tom Lane
 
Posts: n/a
Default Re: Regression test fails when BLCKSZ is 1kB

Peter Eisentraut <peter_e@gmx.net> writes:
> Am Montag, 21. April 2008 schrieb Martijn van Oosterhout:
>> I wonder if it would be feasable to, whenever a regression test fails
>> to sort both files and compare again. This should tell you if the
>> difference are *only* rearrangement automatically, without having to
>> eyeball the output.


> That sounds like it should be worth a try.


That sounds like a pretty bad idea, since it would treat ordering
differences as insignificant even when they aren't --- for example,
an ordering difference in the output of a query that *has* an
ORDER BY is usually a bug.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338