Thread: isolation test output format

isolation test output format

From
Andy Fan
Date:
Hi:

I'm using the isolation test to write some tests, and then I found the
output is unclear some time.
for example:

a              b              c
1988-12-14 01:03:031988-12-13 22:03:03-011988-12-14

Actually what I want is there are some spaces among the fields. like:

a              b              c
1988-12-14 01:03:03  1988-12-13 22:03:03-01  1988-12-14

The simplest reproduce case is:

setup
{
    CREATE TABLE c_tm(a timestamp, b timestamptz, c date);
}

session "s1"
step "s1inserttm"
{
    INSERT INTO c_tm VALUES('1988-12-14 01:03:03 +2', '1988-12-14
01:03:03 +2', '1988-12-14 01:03:03 +2');
}

step "s1read"
{
    SELECT * FROM c_tm;
}

Is there any simple way to improve this?

-- 
Best Regards
Andy Fan



Re: isolation test output format

From
Tom Lane
Date:
Andy Fan <zhihui.fan1213@gmail.com> writes:
> I'm using the isolation test to write some tests, and then I found the
> output is unclear some time.
> for example:

> a              b              c
> 1988-12-14 01:03:031988-12-13 22:03:03-011988-12-14

Are you using recent sources?  The isolationtester's output hasn't
looked like that since June (4a054069a et al).

            regards, tom lane



Re: isolation test output format

From
Andy Fan
Date:
> Are you using recent sources?  The isolationtester's output hasn't
> looked like that since June (4a054069a et al).
>
>                         regards, tom lane

I am coding with "Stamp 14beta2" which are very close to have 4a054069a.
I have tried the newer version, the issue here is fixed perfectly.  Thanks
for that!


-- 
Best Regards
Andy Fan