Re: pg_regress --temp-keep - Mailing list pgsql-patches
From | Bruce Momjian |
---|---|
Subject | Re: pg_regress --temp-keep |
Date | |
Msg-id | 200410151605.i9FG5si07013@candle.pha.pa.us Whole thread Raw |
In response to | pg_regress --temp-keep (Reini Urban <rurban@x-ray.at>) |
Responses |
Re: pg_regress --temp-keep
|
List | pgsql-patches |
Uh, why would someone use this option? --------------------------------------------------------------------------- Reini Urban wrote: > add boolean option --temp-keep to pg_regress to keep the existing > tmp_check installation, instead of overwriting it with a fresh make > install. Useful to test minor modifications in the current tmp_check > installation. > -- > Reini Urban > http://xarch.tu-graz.ac.at/home/rurban/ > *** src/test/regress/pg_regress.sh.orig Wed Sep 22 21:11:19 2004 > --- src/test/regress/pg_regress.sh Fri Oct 15 12:38:00 2004 > *************** > *** 21,26 **** > --- 21,27 ---- > --schedule=FILE use test ordering schedule from FILE > (may be used multiple times to concatenate) > --temp-install[=DIR] create a temporary installation (in DIR) > + --temp-keep keep existing temporary installation > > Options for \`temp-install' mode: > --top-builddir=DIR (relative) path to top level build directory > *************** > *** 90,95 **** > --- 91,97 ---- > unset debug > unset top_builddir > unset temp_install > + unset temp_keep > unset multibyte > > dbname=regression > *************** > *** 127,132 **** > --- 129,137 ---- > --temp-install=*) > temp_install=`expr "x$1" : "x--temp-install=\(.*\)"` > shift;; > + --temp-keep) > + temp_keep=yes > + shift;; > --max-connections=*) > maxconnections=`expr "x$1" : "x--max-connections=\(.*\)"` > shift;; > *************** > *** 358,389 **** > ;; > esac > > ! if [ -d "$temp_install" ]; then > message "removing existing temp installation" > rm -rf "$temp_install" > ! fi > > ! message "creating temporary installation" > ! if [ ! -d "$LOGDIR" ]; then > mkdir -p "$LOGDIR" || { (exit 2); exit; } > ! fi > ! $GMAKE -C "$top_builddir" DESTDIR="$temp_install/install" install with_perl=no with_python=no >"$LOGDIR/install.log"2>&1 > > ! if [ $? -ne 0 ] > ! then > echo > echo "$me: installation failed" > echo "Examine $LOGDIR/install.log for the reason." > echo > (exit 2); exit > ! fi > > ! # fix conversion shared objs path > ! conv=$datadir/conversion_create.sql > ! backup=$conv.bak > ! mv $conv $backup > ! sed -e "s@\$libdir@$pkglibdir@g" $backup > $conv > ! rm $backup > > message "initializing database system" > [ "$debug" = yes ] && initdb_options='--debug' > --- 363,398 ---- > ;; > esac > > ! if [ "$temp_keep" = "yes" ]; then > ! message "keeping existing temp installation" > ! else > ! if [ -d "$temp_install" ]; then > message "removing existing temp installation" > rm -rf "$temp_install" > ! fi > > ! message "creating temporary installation" > ! if [ ! -d "$LOGDIR" ]; then > mkdir -p "$LOGDIR" || { (exit 2); exit; } > ! fi > ! $GMAKE -C "$top_builddir" DESTDIR="$temp_install/install" install with_perl=no with_python=no >"$LOGDIR/install.log"2>&1 > > ! if [ $? -ne 0 ] > ! then > echo > echo "$me: installation failed" > echo "Examine $LOGDIR/install.log for the reason." > echo > (exit 2); exit > ! fi > > ! # fix conversion shared objs path > ! conv=$datadir/conversion_create.sql > ! backup=$conv.bak > ! mv $conv $backup > ! sed -e "s@\$libdir@$pkglibdir@g" $backup > $conv > ! rm $backup > ! fi # eof temp_keep > > message "initializing database system" > [ "$debug" = yes ] && initdb_options='--debug' > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
pgsql-patches by date: