Minor improvements

This commit is contained in:
Peter Eisentraut 2001-12-19 18:50:48 +00:00
parent 41acf3d820
commit 95668f0deb

View File

@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL 7.2
IRIX Specific IRIX Specific
TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ
======================================================= =======================================================
last updated: $Date: 2001/12/03 19:33:35 $ last updated: $Date: 2001/12/19 18:50:48 $
current maintainer: Luis Amigo (lamigo@atc.unican.es) current maintainer: Luis Amigo (lamigo@atc.unican.es)
original author: Luis Amigo (lamigo@atc.unican.es) original author: Luis Amigo (lamigo@atc.unican.es)
@ -26,35 +26,32 @@ and r12000(ip35) processors, running IRIX 6.5.5m, 6.5.12 and 6.5.13 with
MIPSPro compilers version 7.30, 7.3.1.2m and 7.3. MIPSPro compilers version 7.30, 7.3.1.2m and 7.3.
Aside from the PostgreSQL source distribution, you will need GNU make Aside from the PostgreSQL source distribution, you will need GNU make
(SGI's make will not do), and MIPSPro full ANSI C compiler. (SGI's make will not do), and the MIPSPro full ANSI C compiler.
Until now there are problems trying to install with GNU's gcc, it is a known There are problems trying to build with GCC. It is a known gcc bug
gcc bug (not fixed at current date, version 3.0) using functions that return (not fixed as of version 3.0) related to using functions that return
some kind of structures. This bug affects functions like inet_ntoa, certain kinds of structures. This bug affects functions like
inet_lnaof, inet_netof, inet_makeaddr and semctl. It is supposed to be fixed inet_ntoa, inet_lnaof, inet_netof, inet_makeaddr and semctl. It is
by forcing code to link those functions with libgcc, but this has not been supposed to be fixed by forcing code to link those functions with
tested yet. libgcc, but this has not been tested yet.
1.2) Anything special about the build/install procedure? 1.2) Anything special about the build/install procedure?
In order to compile with cc you will need to: In order to compile with cc you will need to execute:
configure with-CC=cc CC=cc ./configure
Or you may edit postgres.../src/templates/irix5 You may want to edit src/templates/irix5 to include something like:
including something like:
CC=cc
CFLAGS='-O2' CFLAGS='-O2'
LDFLAGS='-O2' LDFLAGS='-O2'
It is a good place to improve performance on postgresql, because here you It is a good place to improve performance of PostgreSQK, because here you
may use all MIPSPro power generating specific objects, see man cc. may use all MIPSPro power generating specific objects, see man cc.
Other known problem is include location, it may be different from some Another known problem is include location, it may be different from some
compiler installations to others, if you are getting something like: compiler installations to others. This may manifest itself with something like:
cc-1020 cc: ERROR File = pqcomm.c, Line = 427 cc-1020 cc: ERROR File = pqcomm.c, Line = 427
The identifier "TCP_NODELAY" is undefined. The identifier "TCP_NODELAY" is undefined.
@ -62,8 +59,8 @@ cc-1020 cc: ERROR File = pqcomm.c, Line = 427
if (setsockopt(port->sock, IPPROTO_TCP, TCP_NODELAY, if (setsockopt(port->sock, IPPROTO_TCP, TCP_NODELAY,
Some versions include TCP definitions in <sys/xti.h>, so it is necessary to Some versions include TCP definitions in <sys/xti.h>, so it is necessary to
add #include <sys/xti.h> in /src/backend/libpq/pqcomm.c and in add #include <sys/xti.h> in src/backend/libpq/pqcomm.c and in
src/interfaces/libpq/fe-connect.c src/interfaces/libpq/fe-connect.c.
1.3) OK, it seemed to build and install, but the regression test fails. 1.3) OK, it seemed to build and install, but the regression test fails.