head	1.18;
access;
symbols
	REL7_4_29:1.9
	REL8_0_25:1.12
	REL8_1_21:1.12
	REL8_2_17:1.13
	REL8_3_11:1.15
	REL8_4_4:1.17
	REL7_4_28:1.9
	REL8_0_24:1.12
	REL8_1_20:1.12
	REL8_2_16:1.13
	REL8_3_10:1.15
	REL8_4_3:1.17
	REL7_4_27:1.9
	REL8_0_23:1.12
	REL8_1_19:1.12
	REL8_2_15:1.13
	REL8_3_9:1.15
	REL8_4_2:1.17
	REL7_4_26:1.9
	REL8_0_22:1.12
	REL8_1_18:1.12
	REL8_2_14:1.13
	REL8_3_8:1.15
	REL8_4_1:1.17
	REL8_4_STABLE:1.17.0.2
	REL8_4_0:1.17
	REL8_4_RC2:1.17
	REL8_4_RC1:1.17
	REL8_4_BETA2:1.17
	REL8_4_BETA1:1.17
	REL7_4_25:1.9
	REL8_0_21:1.12
	REL8_1_17:1.12
	REL8_2_13:1.13
	REL8_3_7:1.15
	REL7_4_24:1.9
	REL8_0_20:1.12
	REL8_1_16:1.12
	REL8_2_12:1.13
	REL8_3_6:1.15
	REL7_4_23:1.9
	REL8_0_19:1.12
	REL8_1_15:1.12
	REL8_2_11:1.13
	REL8_3_5:1.15
	REL7_4_22:1.9
	REL8_0_18:1.12
	REL8_1_14:1.12
	REL8_2_10:1.13
	REL8_3_4:1.15
	REL7_4_21:1.9
	REL8_0_17:1.12
	REL8_1_13:1.12
	REL8_2_9:1.13
	REL8_3_3:1.15
	REL7_4_20:1.9
	REL8_0_16:1.12
	REL8_1_12:1.12
	REL8_2_8:1.13
	REL8_3_2:1.15
	REL8_2_7:1.13
	REL8_3_1:1.15
	REL8_3_STABLE:1.15.0.2
	REL8_3_0:1.15
	REL8_3_RC2:1.15
	REL7_3_21:1.9
	REL7_4_19:1.9
	REL8_0_15:1.12
	REL8_1_11:1.12
	REL8_2_6:1.13
	REL8_3_RC1:1.15
	REL8_3_BETA4:1.14
	REL8_3_BETA3:1.14
	REL8_3_BETA2:1.14
	REL8_3_BETA1:1.14
	REL7_3_20:1.9
	REL7_4_18:1.9
	REL8_0_14:1.12
	REL8_1_10:1.12
	REL8_2_5:1.13
	REL7_3_19:1.9
	REL7_4_17:1.9
	REL8_0_13:1.12
	REL8_1_9:1.12
	REL8_2_4:1.13
	REL8_0_12:1.12
	REL8_1_8:1.12
	REL8_2_3:1.13
	REL7_3_18:1.9
	REL7_4_16:1.9
	REL8_0_11:1.12
	REL8_1_7:1.12
	REL8_2_2:1.13
	REL8_0_10:1.12
	REL8_1_6:1.12
	REL8_2_1:1.13
	REL7_4_15:1.9
	REL7_3_17:1.9
	REL8_2_STABLE:1.13.0.2
	REL8_2_0:1.13
	REL8_2_RC1:1.13
	REL8_2_BETA3:1.13
	REL8_2_BETA2:1.13
	REL8_1_5:1.12
	REL8_0_9:1.12
	REL7_4_14:1.9
	REL7_3_16:1.9
	REL8_2_BETA1:1.13
	REL7_3_15:1.9
	REL7_4_13:1.9
	REL8_0_8:1.12
	REL8_1_4:1.12
	REL7_3_14:1.9
	REL7_4_12:1.9
	REL8_0_7:1.12
	REL8_1_3:1.12
	REL7_3_13:1.9
	REL7_4_11:1.9
	REL8_0_6:1.12
	REL8_1_2:1.12
	REL7_3_12:1.9
	REL7_4_10:1.9
	REL8_0_5:1.12
	REL8_1_1:1.12
	REL8_1_STABLE:1.12.0.6
	REL8_1_0:1.12
	REL8_1_0RC1:1.12
	REL8_1_0BETA4:1.12
	REL8_1_0BETA3:1.12
	REL7_3_11:1.9
	REL7_4_9:1.9
	REL8_0_4:1.12
	REL8_1_0BETA2:1.12
	REL8_1_0BETA1:1.12
	REL7_2_8:1.9
	REL7_3_10:1.9
	REL7_4_8:1.9
	REL8_0_3:1.12
	REL8_0_2:1.12
	REL7_2_7:1.9
	REL7_3_9:1.9
	REL7_4_7:1.9
	REL8_0_1:1.12
	REL8_0_STABLE:1.12.0.4
	REL8_0_0:1.12.0.2
	REL8_0_0RC5:1.12
	REL8_0_0RC4:1.12
	REL8_0_0RC3:1.12
	REL8_0_0RC2:1.11
	REL8_0_0RC1:1.11
	REL8_0_0BETA5:1.11
	REL8_0_0BETA4:1.11
	REL7_4_6:1.9
	REL7_3_8:1.9
	REL7_2_6:1.9
	REL8_0_0BETA3:1.11
	REL8_0_0BETA2:1.10
	REL7_2_5:1.9
	REL7_4_5:1.9
	REL7_3_7:1.9
	REL7_4_4:1.9
	REL8_0_0BETA1:1.10
	REL7_4_3:1.9
	REL7_4_2:1.9
	REL7_3_6:1.9
	REL7_4_1:1.9
	REL7_3_5:1.9
	REL7_4:1.9
	REL7_4_RC2:1.9
	REL7_4_STABLE:1.9.0.10
	REL7_4_RC1:1.9
	REL7_4_BETA5:1.9
	REL7_4_BETA4:1.9
	REL7_4_BETA3:1.9
	REL7_4_BETA2:1.9
	WIN32_DEV:1.9.0.8
	REL7_4_BETA1:1.9
	REL7_3_4:1.9
	REL7_3_2:1.9
	REL7_2_4:1.9
	REL7_3_STABLE:1.9.0.6
	REL7_2_3:1.9
	REL7_2_STABLE:1.9.0.4
	REL7_2:1.9
	REL7_2_RC2:1.9
	REL7_2_RC1:1.9
	REL7_2_BETA5:1.9
	REL7_2_BETA4:1.9
	REL7_2_BETA3:1.9
	REL7_2_BETA2:1.9
	REL7_2_BETA1:1.9
	REL7_1_2:1.9
	REL7_1_STABLE:1.9.0.2
	REL7_1_BETA:1.8
	REL7_1_BETA3:1.8
	REL7_1_BETA2:1.8
	REL7_1:1.9
	REL7_0_PATCHES:1.5.0.6
	REL7_0:1.5
	REL6_5_PATCHES:1.5.0.4
	REL6_5:1.5
	REL6_4:1.5.0.2
	release-6-3:1.5
	REL2_0B:1.3.0.2
	REL2_0:1.3
	Release_2_0_0:1.1.1.1
	Release_1_0_3:1.1.1.1.0.2
	Release_2_0:1.1.1.1
	Release_1_0_2:1.1.1.1
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.18
date	2009.08.15.16.16.00;	author tgl;	state dead;
branches;
next	1.17;

1.17
date	2009.01.01.17.24.04;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	2008.03.18.16.24.50;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2008.01.01.19.46.00;	author momjian;	state Exp;
branches;
next	1.14;

1.14
date	2007.01.05.22.20.03;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	2006.03.05.15.59.11;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	2004.12.31.22.03.56;	author pgsql;	state Exp;
branches;
next	1.11;

1.11
date	2004.09.01.17.25.40;	author tgl;	state Exp;
branches;
next	1.10;

1.10
date	2003.11.29.19.52.14;	author pgsql;	state Exp;
branches;
next	1.9;

1.9
date	2001.02.20.19.20.29;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2000.10.20.21.04.19;	author petere;	state Exp;
branches;
next	1.7;

1.7
date	2000.08.31.16.12.20;	author petere;	state Exp;
branches;
next	1.6;

1.6
date	2000.06.17.00.10.28;	author petere;	state Exp;
branches;
next	1.5;

1.5
date	98.01.04.19.12.48;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	97.07.28.23.57.20;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	96.11.13.10.35.59;	author bryanh;	state Exp;
branches;
next	1.2;

1.2
date	96.11.12.11.42.49;	author bryanh;	state Exp;
branches;
next	1.1;

1.1
date	96.07.09.06.22.21;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.07.09.06.22.21;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Remove Wisconsin benchmark files.

This test is clearly not being used anymore, since it's been broken for
long periods of time without anyone noticing.  Per discussion, it's not
worth keeping in our source tree.
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for the Wisconsin Benchmark
#
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
# Portions Copyright (c) 1994-5, Regents of the University of California
#
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/test/bench/Makefile,v 1.17 2009/01/01 17:24:04 momjian Exp $
#
#-------------------------------------------------------------------------

subdir = src/test/bench
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

CREATEFILES= create.sql bench.sql
OUTFILES= bench.out bench.out.perquery


all: $(CREATEFILES)
	rm -f $(OUTFILES)

create.sql: create.source
	rm -f $@@; \
	C=`pwd`; \
	sed -e "s:_CWD_:$$C:g"  < $< > $@@

bench.sql: 
	x=1; \
	for i in `ls query[0-9][0-9]`; do \
	  echo "select $$x as x" >> bench.sql && \
	  cat $$i >> bench.sql && \
	  x=`expr $$x + 1` || exit; \
	done

runtest: $(OUTFILES)

bench.out: $(CREATEFILES)
	$(SHELL) ./create.sh $$PGDATA && \
	$(SHELL) ./runwisc.sh $$PGDATA > $@@
	@@echo "RESULTS OF BENCHMARK ARE SAVED IN FILE bench.out";

bench.out.perquery: bench.out
	$(SHELL) ./perquery <bench.out > $@@
	@@echo "BREAKDOWN OF BENCHMARK IS SAVED IN FILE bench.out.perquery";

clean:
	rm -f $(OUTFILES) $(CREATEFILES)
@


1.17
log
@Update copyright for 2009.
@
text
@d11 1
a11 1
#    $PostgreSQL: pgsql/src/test/bench/Makefile,v 1.16 2008/03/18 16:24:50 petere Exp $
@


1.16
log
@Catch all errors in for and while loops in makefiles.  Don't ignore any
errors in any commands, including in various clean targets that have so far
been handled inconsistently.  make -i is available to ignore all errors in
a consistent and official way.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
d11 1
a11 1
#    $PostgreSQL: pgsql/src/test/bench/Makefile,v 1.15 2008/01/01 19:46:00 momjian Exp $
@


1.15
log
@Update copyrights in source tree to 2008.
@
text
@d11 1
a11 1
#    $PostgreSQL: pgsql/src/test/bench/Makefile,v 1.14 2007/01/05 22:20:03 momjian Exp $
d34 3
a36 3
	  echo "select $$x as x" >> bench.sql; \
	  cat $$i >> bench.sql; \
	  x=`expr $$x + 1`; \
@


1.14
log
@Update CVS HEAD for 2007 copyright.  Back branches are typically not
back-stamped for this.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
d11 1
a11 1
#    $PostgreSQL: pgsql/src/test/bench/Makefile,v 1.13 2006/03/05 15:59:11 momjian Exp $
@


1.13
log
@Update copyright for 2006.  Update scripts.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
d11 1
a11 1
#    $PostgreSQL: pgsql/src/test/bench/Makefile,v 1.12 2004/12/31 22:03:56 pgsql Exp $
@


1.12
log
@
Tag appropriate files for rc3

Also performed an initial run through of upgrading our Copyright date to
extend to 2005 ... first run here was very simple ... change everything
where: grep 1996-2004 && the word 'Copyright' ... scanned through the
generated list with 'less' first, and after, to make sure that I only
picked up the right entries ...
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
d11 1
a11 1
#    $PostgreSQL: pgsql/src/test/bench/Makefile,v 1.11 2004/09/01 17:25:40 tgl Exp $
@


1.11
log
@Whack Wisconsin benchmark around until it actually works again.
It's still useless because it tests a standalone backend, but at least
the bit rot is repaired.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
d11 1
a11 1
#    $PostgreSQL: pgsql-server/src/test/bench/Makefile,v 1.10 2003/11/29 19:52:14 pgsql Exp $
@


1.10
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d6 2
a7 1
# Copyright (c) 1994-5, Regents of the University of California
d11 1
a11 1
#    $PostgreSQL: /cvsroot/pgsql-server/src/test/bench/Makefile,v 1.9 2001/02/20 19:20:29 petere Exp $
a21 3
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
override CFLAGS += $(CFLAGS_SL)

a26 3
	if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \
	if [ -z "$$USER" ]; then USER=`whoami`; fi; \
	if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \
d29 1
a29 4
	sed -e "s:_CWD_:$$C:g" \
	    -e "s:_OBJWD_:$$C:g" \
	    -e "s:_SLSUFF_:$(SLSUFF):g" \
	    -e "s/_USER_/$$USER/g" < $< > $@@
d43 1
a43 1
	$(SHELL) ./runwisc.sh $$PGDATA >bench.out 2>&1
d47 2
a48 3
	$(SHELL) ./perquery <bench.out 2>&1 > $@@
	@@echo "BREAKDOWN OF BENCHMARK IS SAVED IN FILE" \
	  "bench.out.perquery";
@


1.9
log
@Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/bench/Makefile,v 1.8 2000/10/20 21:04:19 petere Exp $
@


1.8
log
@Add support for VPATH builds, that is, building somewhere else than in the
source directory.  This involves mostly makefiles using $(srcdir) when they
might have used ".".  (Regression tests don't work with this, yet.)

Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS).  Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/bench/Makefile,v 1.7 2000/08/31 16:12:20 petere Exp $
d21 1
a21 1
override CPPFLAGS += -I$(libpq_srcdir)
@


1.7
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/bench/Makefile,v 1.6 2000/06/17 00:10:28 petere Exp $
d21 2
a22 1
CFLAGS+= -I$(libpq_srcdir) $(CFLAGS_SL)
@


1.6
log
@Remove fmgrstamp-h business -- not needed and confusing

Add options to configure to automatically build for Kerberos
support; no more editing of make files.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/bench/Makefile,v 1.5 1998/01/04 19:12:48 scrappy Exp $
d14 3
a16 2
SRCDIR= ../..
include ../../Makefile.global
d21 1
a21 1
CFLAGS+= -I$(LIBPQDIR) $(CFLAGS_SL)
@


1.5
log
@Various fixes NETBSD/sparc related

From: Tom I Helbekkmo <tih@@Hamartun.Priv.NO>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/bench/Makefile,v 1.4 1997/07/28 23:57:20 momjian Exp $
a21 7
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif
@


1.4
log
@Makefile fix from Tatsuo Ishii.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/bench/Makefile,v 1.3 1996/11/13 10:35:59 bryanh Exp $
d21 8
@


1.3
log
@Eliminate MKDIR, srcdir, objdir.  Centralize setting of LIBPQDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/bench/Makefile,v 1.1.1.1 1996/07/09 06:22:21 scrappy Exp $
d47 2
a48 2
	$(SHELL) ./create.sh && \
	$(SHELL) ./runwisc.sh >bench.out 2>&1
@


1.2
log
@End of the make file simplifications.
@
text
@a14 1
LIBPQDIR= $(SRCDIR)/libpq
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/test/bench/Makefile,v 1.1.1.1 1996/07/09 05:32:43 scrappy Exp $
d14 3
a16 3
MKDIR=	../../mk
include $(MKDIR)/postgres.mk

d19 1
d21 1
a21 1
include $(MKDIR)/postgres.user.mk
d23 2
d26 10
a35 2
OUTFILES= bench.out bench.out.perquery
CLEANFILES+= $(CREATEFILES) $(OUTFILES)
a37 1
	cat > $(objdir)/$@@ < /dev/null
d40 3
a42 3
		echo "select $$x as x" >> $(objdir)/$@@; \
		cat $$i >> $(objdir)/$@@; \
		x=`expr $$x + 1`; \
d45 1
a45 14
bench2.pq: 
	cat > ${.TARGET} < /dev/null
	C=`pwd`; cd ${.CURDIR}; \
	for i in 1 2 3 4 5 6; do \
		echo "select timeofday();" >> $$C/${.TARGET}; \
	done; \
	x=1; \
	for i in `ls query[0-9][0-9]`; do \
		echo "select $$x as x;" >> $$C/${.TARGET}; \
		echo "select timeofday();" >> $$C/${.TARGET}; \
		cat $$i >> $$C/${.TARGET}; \
		echo "select timeofday();" >> $$C/${.TARGET}; \
		x=`expr $$x + 1`; \
	done
d49 2
a50 2
	$(SHELL) ./runwisc.sh > $(objdir)/$@@ 2>&1
	@@echo "RESULTS OF BENCHMARK ARE SAVED IN ${MAKEOBJDIR}/bench.out";
d53 3
a55 5
	$(SHELL) ./perquery < $(objdir)/bench.out 2>&1 > $@@
	@@echo "BREAKDOWN OF BENCHMARK IS SAVED IN ${MAKEOBJDIR}/bench.out.perquery";

all:: $(CREATEFILES)
	rm -f $(OUTFILES)
d57 2
a58 1
runtest: ${OUTFILES}
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
