updated install file

updated date/time types doc
fixed small psql bug
removed libpq code that lower-cased db names
make notice when long identifier is truncated
This commit is contained in:
Peter Eisentraut 2000-01-23 01:27:39 +00:00
parent 978d2385a8
commit 49581f9848
6 changed files with 438 additions and 702 deletions

32
INSTALL
View File

@ -1,9 +1,3 @@
Chapter 0. Installation
Table of Contents
Before you start
Installation Procedure
Installation instructions for PostgreSQL 7.0.
Commands were tested on RedHat Linux version 5.2 using the bash shell.
@ -58,7 +52,6 @@ Considering today's prices for hard disks, getting a large and fast hard
disk should probably be in your plans before putting a database into
production use.
---------------------------------------------------------------------------
Installation Procedure
@ -79,7 +72,7 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
(although you can). You will be told when you need to login as the
database superuser.
2. If you are not upgrading an existing system then skip to .
2. If you are not upgrading an existing system then skip to step 4.
You now need to back up your existing database. To dump your fairly
recent post-6.0 database installation, type
@ -103,6 +96,7 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
backup. If necessary, bring down postmaster, edit the permissions in file
/usr/local/pgsql/data/pg_hba.conf to allow only you on, then bring
postmaster back up.
3. If you are upgrading an existing system then kill the database server
now. Type
@ -140,11 +134,13 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
make choices about what gets installed. Change into the src
subdirectory and type:
$ ./configure [ options ]
$ ./configure
For a complete list of options, type:
followed by any options you might want to give it. For a first
installation you should be able to do fine without any. For a complete
list of options, type:
./configure --help
./configure --help
Some of the more commonly used ones are:
@ -231,12 +227,15 @@ For a fresh install or upgrading from previous releases of PostgreSQL:
The -D option specifies the location where the data will be stored. You
can use any path you want, it does not have to be under the
installation directory. Just make sure that the superuser account can
write to it (or create it) before starting initdb.
write to the directory (or create it) before starting initdb. (If you
have already been doing the installation up to now as the PostgreSQL
superuser, you may have to log in as root temporarily to create the
data directory.)
9. The previous step should have told you how to start up the database
server. Do so now.
$ /usr/local/pgsql/initdb/postmaster -D /usr/local/pgsql/data
$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
This will start the server in the foreground. To make it detach to the
background, use the -S.
@ -270,7 +269,12 @@ suggestions.
$ cd /usr/src/pgsql/postgresql-7.0/doc
$ gmake install
This will install files under /usr/local/pgsql/doc.
This will install files under /usr/local/pgsql/doc and
/usr/local/pgsql/man. To enable your system to find the man
documentation, you need to add a line like the following to a shell
startup file:
MANPATH=$MANPATH:/usr/local/pgsql/man
The documentation is also available in Postscript format. If you have a
Postscript printer, or have your machine already set up to accept

File diff suppressed because it is too large Load Diff

View File

@ -209,11 +209,13 @@ you can specify your actual installation path for the build process
and make choices about what gets installed. Change into the <filename>src</filename>
subdirectory and type:
<ProgramListing>
$ ./configure [ <replaceable>options</replaceable> ]
$ ./configure
</ProgramListing>
followed by any options you might want to give it. For a first installation
you should be able to do fine without any.
For a complete list of options, type:
<ProgramListing>
./configure --help
./configure --help
</ProgramListing>
Some of the more commonly used ones are:
<VariableList>
@ -359,7 +361,9 @@ $ /usr/local/pgsql/initdb -D /usr/local/pgsql/data
The <option>-D</option> option specifies the location where the data will be
stored. You can use any path you want, it does not have to be under
the installation directory. Just make sure that the superuser account
can write to it (or create it) before starting <command>initdb</command>.
can write to the directory (or create it) before starting <command>initdb</command>.
(If you have already been doing the installation up to now as the <productname>PostgreSQL</productname>
superuser, you may have to log in as root temporarily to create the data directory.)
</Para>
</Step>
@ -368,7 +372,7 @@ can write to it (or create it) before starting <command>initdb</command>.
The previous step should have told you how to start up the database server.
Do so now.
<programlisting>
$ /usr/local/pgsql/initdb/postmaster -D /usr/local/pgsql/data
$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
</programlisting>
This will start the server in the foreground. To make it detach to
the background, use the <option>-S</option>.
@ -420,7 +424,13 @@ You probably want to install the <application>man</application> and
$ cd /usr/src/pgsql/postgresql-7.0/doc
$ gmake install
</ProgramListing>
This will install files under <filename>/usr/local/pgsql/doc</filename>.
This will install files under <filename>/usr/local/pgsql/doc</filename>
and <filename>/usr/local/pgsql/man</filename>. To enable your system
to find the <application>man</application> documentation, you need to
add a line like the following to a shell startup file:
<ProgramListing>
MANPATH=$MANPATH:/usr/local/pgsql/man
</ProgramListing>
</para>
<para>

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.61 2000/01/20 05:26:53 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.62 2000/01/23 01:27:35 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -338,8 +338,11 @@ other .
isupper(yytext[i]))
yytext[i] = tolower(yytext[i]);
if (i >= NAMEDATALEN)
{
elog(NOTICE, "identifier \"%s\" will be truncated to \"%.*s\"",
yytext, NAMEDATALEN-1, yytext);
yytext[NAMEDATALEN-1] = '\0';
}
keyword = ScanKeywordLookup((char*)yytext);
if (keyword != NULL) {
return keyword->value;

View File

@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Team
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.14 2000/01/22 14:20:51 petere Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.15 2000/01/23 01:27:37 petere Exp $
*/
#include <c.h>
#include "command.h"
@ -1198,6 +1198,7 @@ process_file(char *filename)
{
FILE *fd;
int result;
char *oldfilename;
if (!filename)
return false;
@ -1214,10 +1215,11 @@ process_file(char *filename)
return false;
}
oldfilename = pset.inputfile;
pset.inputfile = filename;
result = MainLoop(fd);
fclose(fd);
pset.inputfile = NULL;
pset.inputfile = oldfilename;
return (result == EXIT_SUCCESS);
}

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.113 2000/01/18 19:05:31 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.114 2000/01/23 01:27:39 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -467,25 +467,6 @@ PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions,
else
conn->dbName = strdup(dbName);
if (conn->dbName)
{
/*
* if the database name is surrounded by double-quotes, then don't
* convert case
*/
if (*conn->dbName == '"')
{
strcpy(conn->dbName, conn->dbName + 1);
conn->dbName[strlen(conn->dbName) - 1] = '\0';
}
else
for (i = 0; conn->dbName[i]; i++)
if (isascii((unsigned char) conn->dbName[i]) &&
isupper(conn->dbName[i]))
conn->dbName[i] = tolower(conn->dbName[i]);
}
if (error)
{
conn->status = CONNECTION_BAD;