mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Cleanups for large objects, so file is trucated on open, fix for
solaris/spare shared libararies, new error message for postmaster startup, and makefile cleanups.
This commit is contained in:
parent
1b70585d4b
commit
58fffea03c
12
INSTALL
12
INSTALL
@ -119,7 +119,7 @@ PostgreSQL:
|
||||
|
||||
To check for disk space, use command "df -k".
|
||||
|
||||
4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-v6.3.2.tar.gz from the
|
||||
4) Ftp file ftp://ftp.postgresql.org/pub/postgresql-6.3.2.tar.gz from the
|
||||
Internet. Store it in your home directory.
|
||||
|
||||
5) Some platforms use flex. If your system uses flex then make sure
|
||||
@ -161,7 +161,7 @@ PostgreSQL:
|
||||
step. Type (with the gunzip line and the following line typed as one
|
||||
line):
|
||||
cd
|
||||
gunzip -c postgresql-v6.3.2.tar.gz |
|
||||
gunzip -c postgresql-6.3.2.tar.gz |
|
||||
tar xvf - src/bin/pg_dump/pg_dumpall
|
||||
chmod a+x src/bin/pg_dump/pg_dumpall
|
||||
src/bin/pg_dump/pg_dumpall > db.out
|
||||
@ -227,7 +227,7 @@ PostgreSQL:
|
||||
|
||||
10) Unzip and untar the new source file. Type
|
||||
cd /usr/src/pgsql
|
||||
gunzip -c ~/postgresql-v6.3.2.tar.gz | tar xvf -
|
||||
gunzip -c ~/postgresql-6.3.2.tar.gz | tar xvf -
|
||||
|
||||
11) Configure the source code for your system. It is this step at which
|
||||
you can specify your actual source path and installation paths for
|
||||
@ -487,7 +487,7 @@ PostgreSQL:
|
||||
root:bin.
|
||||
#!/bin/sh
|
||||
[ -x /usr/local/pgsql/bin/postmaster ] && {
|
||||
su -l pgsql -c 'exec /usr/local/pgsql/bin/postmaster
|
||||
su -l postgres -c 'exec /usr/local/pgsql/bin/postmaster
|
||||
-D/usr/local/pgsql/data
|
||||
-S -o -F > /usr/local/pgsql/errlog' &
|
||||
echo -n ' pgsql'
|
||||
@ -552,7 +552,7 @@ PostgreSQL:
|
||||
rm -rf /usr/local/pgsql_6_0
|
||||
# Also delete old database directory tree if it is not in
|
||||
# /usr/local/pgsql_6_0/data
|
||||
rm ~/postgresql-v6.3.2.tar.gz
|
||||
rm ~/postgresql-6.3.2.tar.gz
|
||||
|
||||
26) You will probably want to print out the documentation. Here is how
|
||||
you might do it if you have Ghostscript on your system and are
|
||||
@ -579,7 +579,7 @@ PostgreSQL:
|
||||
supported platforms. We therefore ask you to let us know if you did
|
||||
or did not get PostgreSQL to work on you system. Please send a
|
||||
mail message to pgsql-ports@postgresql.org telling us the following:
|
||||
- The version of PostgreSQL (v6.3.2, 6.2.1, beta 970703, etc.).
|
||||
- The version of PostgreSQL (6.3.2, 6.2.1, beta 970703, etc.).
|
||||
- Your operating system (i.e. RedHat v4.0 Linux v2.0.26).
|
||||
- Your hardware (SPARC, i486, etc.).
|
||||
- Did you compile, install and run the regression tests cleanly?
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.19 1998/01/07 21:03:12 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.20 1998/05/12 21:43:58 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* This should be moved to a more appropriate place. It is here
|
||||
@ -344,7 +344,7 @@ lo_export(Oid lobjId, text *filename)
|
||||
*/
|
||||
oumask = umask((mode_t) 0);
|
||||
StrNCpy(fnamebuf, VARDATA(filename), VARSIZE(filename) - VARHDRSZ + 1);
|
||||
fd = open(fnamebuf, O_CREAT | O_WRONLY, 0666);
|
||||
fd = open(fnamebuf, O_CREAT | O_WRONLY | O_TRUNC, 0666);
|
||||
umask(oumask);
|
||||
if (fd < 0)
|
||||
{ /* error */
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.18 1998/04/30 14:25:13 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.19 1998/05/12 21:43:59 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -31,11 +31,10 @@
|
||||
#include "tcop/tcopprot.h" /* for PostgresMain() */
|
||||
|
||||
#define NOROOTEXEC "\
|
||||
\n\"root\" execution of the PostgreSQL backend is not permitted\n\n\
|
||||
It is highly recommended that the backend be started under it's own userid\n\
|
||||
to prevent possible system security compromise. This can be accomplished\n\
|
||||
by placing the following command in the PostgreSQL startup script.\n\n\
|
||||
echo \"postmaster >/var/log/pglog 2>&1 &\" | su - postgres\n\n"
|
||||
\n\"root\" execution of the PostgreSQL backend is not permitted.\n\n\
|
||||
The backend must be started under it's own userid to prevent\n\
|
||||
a possible system security compromise. See the INSTALL file for\n\
|
||||
more information on how to properly start the postmaster.\n\n"
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.13 1998/04/27 14:54:50 scrappy Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.14 1998/05/12 21:44:01 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -31,7 +31,7 @@ endif
|
||||
install-shlib-dep :=
|
||||
shlib :=
|
||||
|
||||
LIBPQ = -L $(SRCDIR)/interfaces/libpq -lpq
|
||||
LIBPQ = -L$(SRCDIR)/interfaces/libpq -lpq
|
||||
|
||||
ifeq ($(PORTNAME), linux)
|
||||
LINUX_ELF=@LINUX_ELF@
|
||||
@ -59,6 +59,13 @@ ifeq ($(PORTNAME), i386_solaris)
|
||||
CFLAGS += $(CFLAGS_SL)
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), sparc_solaris)
|
||||
install-shlib-dep := install-shlib
|
||||
shlib := libpgtcl.so.1
|
||||
LDFLAGS_SL = -G
|
||||
CFLAGS += $(CFLAGS_SL)
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), univel)
|
||||
install-shlib-dep := install-shlib
|
||||
shlib := libpgtcl.so.1
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.17 1998/05/06 23:51:06 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.18 1998/05/12 21:44:02 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -53,6 +53,12 @@ ifeq ($(PORTNAME), i386_solaris)
|
||||
LDFLAGS_SL = -G -z text
|
||||
CFLAGS += $(CFLAGS_SL)
|
||||
endif
|
||||
ifeq ($(PORTNAME), sparc_solaris)
|
||||
install-shlib-dep := install-shlib
|
||||
shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
||||
LDFLAGS_SL = -G
|
||||
CFLAGS += $(CFLAGS_SL)
|
||||
endif
|
||||
ifeq ($(PORTNAME), univel)
|
||||
install-shlib-dep := install-shlib
|
||||
shlib := libpq.so.1
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.11 1997/09/18 20:22:49 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.12 1998/05/12 21:44:03 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -449,7 +449,7 @@ lo_export(PGconn *conn, Oid lobjId, char *filename)
|
||||
/*
|
||||
* open the file to be written to
|
||||
*/
|
||||
fd = open(filename, O_CREAT | O_WRONLY, 0666);
|
||||
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0666);
|
||||
if (fd < 0)
|
||||
{ /* error */
|
||||
sprintf(conn->errorMessage,
|
||||
|
@ -1,6 +1,6 @@
|
||||
.\" This is -*-nroff-*-
|
||||
.\" XXX standard disclaimer belongs here....
|
||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.23 1998/01/26 01:42:53 scrappy Exp $
|
||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.24 1998/05/12 21:44:05 momjian Exp $
|
||||
.TH PSQL UNIX 1/20/96 PostgreSQL PostgreSQL
|
||||
.SH NAME
|
||||
psql - run the interactive query front-end
|
||||
@ -298,7 +298,8 @@ Establish a connection to a new database. The previous connection is closed.
|
||||
Perform a frontend copy. This is an operation that runs a SQL COPY command,
|
||||
but instead of the backend reading or writing a specified file, and
|
||||
consequently requiring special user privilege, psql reads or writes the
|
||||
file and routes the data to or from the backend.
|
||||
file and routes the data to or from the backend. The default TAB
|
||||
delimiter is used.
|
||||
.IP "\ed [\fItable\fR]"
|
||||
List tables in the database, or if
|
||||
.IR table
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.7 1997/09/25 16:35:50 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.8 1998/05/12 21:44:07 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -168,7 +168,7 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
|
||||
/*
|
||||
* open the file to be written to
|
||||
*/
|
||||
fd = open(filename, O_CREAT | O_WRONLY, 0666);
|
||||
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0666);
|
||||
if (fd < 0)
|
||||
{ /* error */
|
||||
fprintf(stderr, "can't open unix file\"%s\"",
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.6 1997/09/25 16:35:52 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.7 1998/05/12 21:44:08 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -164,7 +164,7 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
|
||||
/*
|
||||
* open the file to be written to
|
||||
*/
|
||||
fd = open(filename, O_CREAT | O_WRONLY, 0666);
|
||||
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0666);
|
||||
if (fd < 0)
|
||||
{ /* error */
|
||||
fprintf(stderr, "can't open unix file\"%s\"",
|
||||
|
Loading…
Reference in New Issue
Block a user