mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Put in a new FAQ
Merged in Dr. George's src/bin tree (possibly broke monitor/psql in process)
This commit is contained in:
@ -7,24 +7,29 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.1.1.1 1996/07/09 06:22:11 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.2 1996/07/23 03:01:58 scrappy Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MKDIR=../mk
|
||||||
|
-include $(MKDIR)/../Makefile.global
|
||||||
|
|
||||||
#
|
#
|
||||||
# C programs
|
# C programs
|
||||||
#
|
#
|
||||||
SUBDIR= monitor pg_id pg_version psql pg_dump
|
SUBDIR= monitor pg_id pg_version psql pg_dump
|
||||||
|
|
||||||
|
#
|
||||||
|
# Shell scripts
|
||||||
|
#
|
||||||
|
SUBDIR+= cleardbdir createdb createuser destroydb destroyuser initdb
|
||||||
|
|
||||||
|
#
|
||||||
|
# TCL/TK programs
|
||||||
|
#
|
||||||
ifeq ($(USE_TCL), true)
|
ifeq ($(USE_TCL), true)
|
||||||
SUBDIR += pgtclsh
|
SUBDIR += pgtclsh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
include $(MKDIR)/postgres.subdir.mk
|
||||||
# Shell scripts
|
|
||||||
#
|
|
||||||
SUBDIR+= cleardbdir createdb createuser destroydb destroyuser initdb
|
|
||||||
|
|
||||||
|
|
||||||
include ../mk/postgres.subdir.mk
|
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.3 1996/07/20 07:33:36 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.4 1996/07/23 03:03:19 scrappy Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -33,10 +33,6 @@ FILESDIR=$PGDATA/files
|
|||||||
PATH=$BINDIR:$PATH
|
PATH=$BINDIR:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
# OPENLINK Added an fsync option to postmaster
|
|
||||||
# REQUIRES: pg95 compiled with -DOPENLINK_PATCHES, see README_OPENLINK
|
|
||||||
# FSYNC=-F
|
|
||||||
|
|
||||||
CMDNAME=`basename $0`
|
CMDNAME=`basename $0`
|
||||||
|
|
||||||
# ----------------
|
# ----------------
|
||||||
@ -63,9 +59,9 @@ done
|
|||||||
# ----------------
|
# ----------------
|
||||||
if test "$debug" -eq 1
|
if test "$debug" -eq 1
|
||||||
then
|
then
|
||||||
BACKENDARGS="-boot -C $FSYNC -d"
|
BACKENDARGS="-boot -C -F -d"
|
||||||
else
|
else
|
||||||
BACKENDARGS="-boot -C $FSYNC -Q"
|
BACKENDARGS="-boot -C -F -Q"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -220,9 +216,7 @@ then
|
|||||||
echo "vacuuming template1"
|
echo "vacuuming template1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "vacuum" | postgres $FSYNC -Q template1 > /dev/null
|
echo "vacuum" | postgres -F -Q template1 > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f /tmp/create.$$
|
rm -f /tmp/create.$$
|
||||||
|
|
||||||
sync
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.4 1996/07/23 02:26:41 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.5 1996/07/23 03:03:24 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -20,7 +20,7 @@
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef PORTNAME_sparc_solaris
|
#if defined(PORTNAME_sparc_solaris) || defined(PORTNAME_i386_solaris)
|
||||||
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
|
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
|
||||||
#ifdef PORTNAME_sparc_solaris
|
#if defined(PORTNAME_sparc_solaris) || defined(PORTNAME_i386_solaris)
|
||||||
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
|
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
|
||||||
#ifdef PORTNAME_sparc_solaris
|
#if defined(PORTNAME_sparc_solaris) || defined(PORTNAME_i386_solaris)
|
||||||
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.1.1.1 1996/07/09 06:22:15 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.2 1996/07/23 03:03:36 scrappy Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ MKDIR= ../../mk
|
|||||||
include $(MKDIR)/postgres.mk
|
include $(MKDIR)/postgres.mk
|
||||||
include ../Makefile.global
|
include ../Makefile.global
|
||||||
|
|
||||||
CFLAGS+= -I$(TCL_INCDIR) -I$(TK_INCDIR)
|
CFLAGS+= -I$(TCL_INCDIR) -I$(TK_INCDIR) -I$(X11_INCDIR) -I$(srcdir)/libpgtcl
|
||||||
|
|
||||||
# try to find libpgtcl.a in either directory
|
# try to find libpgtcl.a in either directory
|
||||||
LIBPGTCL= -L$(srcdir)/libpgtcl/$(objdir) -L$(LIBDIR) -lpgtcl
|
LIBPGTCL= -L$(srcdir)/libpgtcl/$(objdir) -L$(LIBDIR) -lpgtcl
|
||||||
@ -26,7 +26,7 @@ pgtclsh: $(objdir)/pgtclAppInit.o
|
|||||||
|
|
||||||
pgtksh: $(objdir)/pgtkAppInit.o
|
pgtksh: $(objdir)/pgtkAppInit.o
|
||||||
$(CC) $(CDEBUG) -o $(objdir)/$(@F) $(objdir)/pgtkAppInit.o \
|
$(CC) $(CDEBUG) -o $(objdir)/$(@F) $(objdir)/pgtkAppInit.o \
|
||||||
$(LIBPGTCL) $(LIBPQ) -L$(TCL_LIBDIR) -L$(TK_LIBDIR) \
|
$(LIBPGTCL) $(LIBPQ) -L$(TCL_LIBDIR) -L$(TK_LIBDIR) -L$(X11_LIBDIR) \
|
||||||
$(TK_LIB) $(TCL_LIB) -lX11 -lm $(LD_ADD)
|
$(TK_LIB) $(TCL_LIB) -lX11 -lm $(LD_ADD)
|
||||||
|
|
||||||
install:: localobj pgtclsh pgtksh
|
install:: localobj pgtclsh pgtksh
|
||||||
|
@ -109,6 +109,11 @@ Tcl_AppInit(interp)
|
|||||||
* then no user-specific startup file will be run under any conditions.
|
* then no user-specific startup file will be run under any conditions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if (TCL_MAJOR_VERSION <= 7) && (TCL_MINOR_VERSION < 5)
|
||||||
tcl_RcFileName = "~/.tclshrc";
|
tcl_RcFileName = "~/.tclshrc";
|
||||||
|
#else
|
||||||
|
Tcl_SetVar(interp, "tcl_rcFileName", "~/.tclshrc", TCL_GLOBAL_ONLY);
|
||||||
|
#endif
|
||||||
|
|
||||||
return TCL_OK;
|
return TCL_OK;
|
||||||
}
|
}
|
||||||
|
@ -112,6 +112,11 @@ Tcl_AppInit(interp)
|
|||||||
* then no user-specific startup file will be run under any conditions.
|
* then no user-specific startup file will be run under any conditions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if (TCL_MAJOR_VERSION <= 7) && (TCL_MINOR_VERSION < 5)
|
||||||
tcl_RcFileName = "~/.wishrc";
|
tcl_RcFileName = "~/.wishrc";
|
||||||
|
#else
|
||||||
|
Tcl_SetVar(interp, "tcl_rcFileName", "~/.wishrc", TCL_GLOBAL_ONLY);
|
||||||
|
#endif
|
||||||
|
|
||||||
return TCL_OK;
|
return TCL_OK;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user