Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4e46f479
Commit
4e46f479
authored
Oct 10, 2006
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup pass
parent
ed95aea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
64 deletions
+55
-64
doc/FAQ_Solaris
doc/FAQ_Solaris
+55
-64
No files found.
doc/FAQ_Solaris
View file @
4e46f479
...
@@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL
...
@@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL
Sun Solaris specific
Sun Solaris specific
To be read in conjunction with the installation instructions.
To be read in conjunction with the installation instructions.
============================================================
============================================================
Last updated: $Date: 2006/10/
05 03:13:15
$
Last updated: $Date: 2006/10/
10 22:19:08
$
Contents:
Contents:
...
@@ -13,25 +13,25 @@ Contents:
...
@@ -13,25 +13,25 @@ Contents:
3) Why does configure complain about a failed test program?
3) Why does configure complain about a failed test program?
4) Why does my 64-bit build sometimes crash?
4) Why does my 64-bit build sometimes crash?
5) How can I compile for optimum performance?
5) How can I compile for optimum performance?
6)
How to compile PostgreSQL with Sun Studio
?
6)
Where I can download prepared Solaris packages
?
7)
Where I can download prepared Solaris packages
?
7)
How can I tune PostgreSQL and Solaris for performance
?
8)
How to tune PostgreSQL and Solaris for best performance
?
8)
Can I use DTrace for tracing PostgreSQL
?
9) Can I use dtrace for tracing PostgreSQL?
1) What tools do I need to build and install PostgreSQL on Solaris?
1) What tools do I need to build and install PostgreSQL on Solaris?
You will need
You will need
GNU
zip (for installing the documentation)
g
zip (for installing the documentation)
GNU
m
ake
GNU
M
ake
GNU
r
eadline library (optional)
GNU
R
eadline library (optional)
Sun Studio CC or GCC
Sun Studio CC or GCC
You can download Sun Studio from:
You can download Sun Studio from:
http://developers.sun.com/prodtech/cc/downloads/index.jsp
http://developers.sun.com/prodtech/cc/downloads/index.jsp
Many of GNU tools are integrated into
the Solaris 10 or they are
Many of GNU tools are integrated into
Solaris 10, or they are present
present on the Solaris companion CD.
on the Solaris companion CD.
If you like packages for older version of Solaris, you can find these
If you like packages for older version of Solaris, you can find these
tools here:
tools here:
...
@@ -42,11 +42,12 @@ If you prefer sources, look here:
...
@@ -42,11 +42,12 @@ If you prefer sources, look here:
http://www.gnu.org/order/ftp.html
http://www.gnu.org/order/ftp.html
You can build with either GCC or Sun's compiler suite. For better code
You can build with either GCC or Sun's compiler suite. For better
optimalization Sun's compiler is strongly recommended on the SPARC
code optimization, Sun's compiler is strongly recommended on the SPARC
architecture. We have heard reports of problems when using gcc 2.95.1;
architecture. We have heard reports of problems when using GCC
gcc 2.95.3 or later is recommended. If you are using Sun's compiler, be
2.95.1; gcc 2.95.3 or later is recommended. If you are using Sun's
careful *not* to select /usr/ucb/cc; use /opt/SUNWspro/bin/cc.
compiler, be careful not to select /usr/ucb/cc; use
/opt/SUNWspro/bin/cc.
2) Why do I get problems when building with OpenSSL support?
2) Why do I get problems when building with OpenSSL support?
...
@@ -63,15 +64,15 @@ This is because of a namespace conflict between the standard
...
@@ -63,15 +64,15 @@ This is because of a namespace conflict between the standard
/usr/include/crypt.h header and the header files provided by OpenSSL.
/usr/include/crypt.h header and the header files provided by OpenSSL.
Upgrading your OpenSSL installation to version 0.9.6a fixes this
Upgrading your OpenSSL installation to version 0.9.6a fixes this
problem. Solaris 9 and above
already
newer version of OpenSSL.
problem. Solaris 9 and above
has a
newer version of OpenSSL.
3) Why does configure complain about a failed test program?
3) Why does configure complain about a failed test program?
This is probably a case of the run-time linker being unable to find
some
This is probably a case of the run-time linker being unable to find
library. On solaris 8 and older it should be libz or some other
some library, probably libz, libreadline or some other non-standard
non-standard library, such as libssl. To point it to the right
library such as libssl. To point it to the right location, set the
location, set the
LD_LIBRARY_PATH environment variable, e.g.,
LD_LIBRARY_PATH environment variable, e.g.,
LD_LIBRARY_PATH=/usr/sfw/lib:/opt/sfw/lib:/usr/local/lib
LD_LIBRARY_PATH=/usr/sfw/lib:/opt/sfw/lib:/usr/local/lib
export LD_LIBRARY_PATH
export LD_LIBRARY_PATH
...
@@ -104,68 +105,58 @@ does not matter.)
...
@@ -104,68 +105,58 @@ does not matter.)
Then build as usual.
Then build as usual.
5) How can I compile for optimum performance?
5) How can I compile for optimal performance?
On SPARC architecture Sun Studio is strongly recommended for
compilation. Try using -xO5 optimalization flag to generate
significantly faster binaries. Do not use any flags which modify
behavior of floating point operations and errno processing (e.g.
-fast). These flags should raise some nonstandard PostgreSQL behavior
for example in the date/time computing.
If you do not reason to use 64-bit binaries on SPARC, prefer 32-bit
version. The 64-bit operations are slower and 64-bit binaries are slower
then 32-bits. And on other side a 32-bit code on the AMD64 CPU family is
not native and that is why 32-bit code is significant slower on this
CPU family.
On the SPARC architecture, Sun Studio is strongly recommended for
compilation. Try using the -xO5 optimization flag to generate
significantly faster binaries. Do not use any flags that modify
behavior of floating point operations and errno processing (e.g.,
-fast). These flags could raise some nonstandard PostgreSQL behavior
for example in the date/time computing.
6) How to compile PostgreSQL with Sun Studio?
If you do not have a reason to use 64-bit binaries on SPARC, prefer
the 32-bit version. The 64-bit operations are slower and 64-bit
binaries are slower than the 32-bit variants. And on other hand,
32-bit code on the AMD64 CPU family is not native, and that is why
32-bit code is significant slower on this CPU family.
On Solaris 10 you can performed following steps:
export CC=/opt/SUNWspro/bin/cc
6) Where I can download prepared Solaris packages?
export CFLAGS=-xO5
export LDFLAGS=-lm
./configure --without-readline
gmake
The PostgreSQL is bundled with Solaris 10 (from update 2). Official
packages are also available on
<http://pgfoundry.org/projects/solarispackages/>. Packages for older
Solaris version (8, 9) you can be obtained from
<http://www.sunfreeware.com/> or <http://www.blastwave.org/>.
7) Where I can download prepared Solaris packages?
The PostgreSQL is bundled with Solaris 10 (from update 2). Official
7) How can I tune PostgreSQL and Solaris for performance?
packages are too available on
http://pgfoundry.org/projects/solarispackages/. Packages for older
Solaris version (8,9) you can download from: http://www.sunfreeware.com
or http://www.blastwave.org
8) How to tune PostgreSQL and Solaris for best performance?
Some tuning tricks can be found here:
Some tuning tricks can be found here:
http://www.sun.com/servers/coolthreads/tnb/applications_postgresql.jsp
http://www.sun.com/servers/coolthreads/tnb/applications_postgresql.jsp
This article is primary focused on T2000 platform,
however, many of
This article is primary focused on T2000 platform,
but many of the
recommendations are
general for
other hardware with Solaris.
recommendations are
also useful on
other hardware with Solaris.
9) Can I use dt
race for tracing PostgreSQL?
8) Can I use DT
race for tracing PostgreSQL?
The PostgreSQL 8.2 has implemented dtrace support. You can enable it by
PostgreSQL 8.2 has implemented DTrace support. You can enable it by
the --enable-dtrace configure switch.
If you want to compile a
64-bit
the --enable-dtrace configure switch.
If you want to build
64-bit
code with dtrace you must specify DTRACEFLAGS='-64', e.g.
binaries with DTrace you must specify DTRACEFLAGS='-64', e.g.,
Using
gcc
compiler:
Using
GCC
compiler:
$ ./configure CC='gcc -m64' --enable-dtrace DTRACEFLAGS='-64' ...
$ ./configure CC='gcc -m64' --enable-dtrace DTRACEFLAGS='-64' ...
Using Sun compiler:
Using Sun compiler:
$ configure CC='/opt/SUNWspro/bin/cc -xtarget=native64' --enable-dtrace DTRACEFLAGS='-64'
$
./
configure CC='/opt/SUNWspro/bin/cc -xtarget=native64' --enable-dtrace DTRACEFLAGS='-64'
If you have some problem with postgres linking, looks like:
If you see the linking of the postgres executable abort with an error
message like
Undefined first referenced
Undefined first referenced
symbol in file
symbol in file
...
@@ -174,10 +165,10 @@ If you have some problem with postgres linking, looks like:
...
@@ -174,10 +165,10 @@ If you have some problem with postgres linking, looks like:
ld: fatal: Symbol referencing errors. No output written to postgres
ld: fatal: Symbol referencing errors. No output written to postgres
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
gmake: *** [postgres] Error 1
gmake: *** [postgres] Error 1
check if you have Solaris 10u3 or newer installed on your box. You can
also find more information here:
http://blogs.sun.com/robertlor/entry/user_level_dtrace_probes_in
your DTrace installation is too old to handle probes in static
functions. You need Solaris 10u3 or newer.
You can also find more information here:
http://blogs.sun.com/robertlor/entry/user_level_dtrace_probes_in
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment