Re: [HACKERS] psql & regress tests

From: wieck(at)debis(dot)com (Jan Wieck)
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: wieck(at)debis(dot)com, pgman(at)candle(dot)pha(dot)pa(dot)us, peter_e(at)gmx(dot)net, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] psql & regress tests
Date: 1999-11-19 14:48:35
Message-ID: m11opL1-0003kGC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

> wieck(at)debis(dot)com (Jan Wieck) writes:
> > Bruce Momjian wrote:
> >> Now that we know numeric is working, can we make the test run faster in
> >> the default mode?
>
> > It is already down to 100 digits after the decimal point. I
> > don't want to lower it too much, but maybe 30 or 50 are
> > enough too - no?
>
> Since multiply and so on are presumably O(N^2), cutting the precision
> to 30 might cut the runtime by almost a factor of 10.
>
> Jan probably has a better idea than the rest of us whether a test of
> 100, or 30, or 10 digits is likely to expose bugs that would not be
> exposed by a test with less precision --- that depends on whether the

I created a new default numeric test using numbers of range
10,10 as input only. It doesn't save that much of time as you
expect, but you're right anyways.

Will commit it later, together with the new parallel test
suite.

BTW: The parallel problems I encountered aren't anything.
Starting the postmaster with -D... isn't the same as setting
PGDATA environment - as it IMHO should be. It happened that I
killed the test-install postmaster, started with -D pointing
into my temp dirs, with SIGKILL. It corrupted the pg_control
file of my default installation :-}

And if you do not have an initialized data directory at the
compiled in default location, postmaster doesn't startup with
-D at all.

Vadim, could you take a look at it?

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-11-19 15:07:44 Re: [HACKERS] pg_dump bug
Previous Message Bruce Momjian 1999-11-19 12:36:30 Re: [HACKERS] Getting OID in psql of recent insert