Re: pgbench - Mailing list pgsql-general
From | Tatsuo Ishii |
---|---|
Subject | Re: pgbench |
Date | |
Msg-id | 20060304.175839.132930647.t-ishii@sraoss.co.jp Whole thread Raw |
In response to | pgbench ("Orr, Steve" <sorr@rightnow.com>) |
List | pgsql-general |
pgbench comes with PostgreSQL source code distribution and must be compiled under PostgreSQL source tree. I'm not familiar with MacOS but I guess there may be pre-compiled package. Anyone can help him? -- Tatsuo Ishii SRA OSS, Inc. Japan > I have just received my new MacBook (1.83Gz. Duo) and wanted to do > some benchmark testing of Postgres using your Pgbench, however I ma > getting errors while compiling. > > I could probably fix some of these (define TRUE & RAND_MAX) I am not > sure what RAND_MAX is on other systems and as far as the exit(1)? > again not sure why. Any help would be appreciated. > > > here is the output: > > macbook:~/Desktop/pgbench-1.1 jeffruss$ make > gcc -O2 -I/usr/local/pgsql/include -c -o pgbench.o pgbench.c > pgbench.c:24:22: error: postgres.h: No such file or directory > pgbench.c: In function 'getrand': > pgbench.c:94: error: 'RAND_MAX' undeclared (first use in this function) > pgbench.c:94: error: (Each undeclared identifier is reported only once > pgbench.c:94: error: for each function it appears in.) > pgbench.c: In function 'doOne': > pgbench.c:131: error: 'TRUE' undeclared (first use in this function) > pgbench.c:216: warning: incompatible implicit declaration of built-in > function 'strcpy' > pgbench.c: In function 'doSelectOnly': > pgbench.c:267: error: 'TRUE' undeclared (first use in this function) > pgbench.c: In function 'init': > pgbench.c:355: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:362: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:370: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:378: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:389: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:397: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:407: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:415: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:420: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:426: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:434: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c: In function 'main': > pgbench.c:523: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:532: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:537: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:545: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:552: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:557: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:565: warning: assignment makes pointer from integer without > a cast > pgbench.c:573: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:588: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:595: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:600: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:609: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:616: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:626: error: 'uint' undeclared (first use in this function) > pgbench.c:626: error: parse error before 'tv1' > pgbench.c:637: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:659: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:671: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:688: warning: incompatible implicit declaration of built-in > function 'exit' > pgbench.c:695: warning: incompatible implicit declaration of built-in > function 'exit' > make: *** [pgbench.o] Error 1
pgsql-general by date: