Thread: BUG #3503: Benchmark scripts broken

BUG #3503: Benchmark scripts broken

From
"Justin Hibbits"
Date:
The following bug has been logged online:

Bug reference:      3503
Logged by:          Justin Hibbits
Email address:      justin.hibbits@baesystems.com
PostgreSQL version: 8.2.4
Operating system:   Linux
Description:        Benchmark scripts broken
Details:

It appears that the benchmark script src/test/bench/create.sh is broken, in
that it tries to execute "postgres -D${1} postgres", which is invalid
according to postgres.

Re: BUG #3503: Benchmark scripts broken

From
Bruce Momjian
Date:
Justin Hibbits wrote:
>
> The following bug has been logged online:
>
> Bug reference:      3503
> Logged by:          Justin Hibbits
> Email address:      justin.hibbits@baesystems.com
> PostgreSQL version: 8.2.4
> Operating system:   Linux
> Description:        Benchmark scripts broken
> Details:
>
> It appears that the benchmark script src/test/bench/create.sh is broken, in
> that it tries to execute "postgres -D${1} postgres", which is invalid
> according to postgres.

Fixed in several place, e.g.:

    echo "drop database bench" | postgres -D"$1" postgres > /dev/null

This fix will be in 8.3.

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +