Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 840B664FCE6 for ; Tue, 18 Nov 2008 08:02:23 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 52019-05 for ; Tue, 18 Nov 2008 08:02:20 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mail.postgresql.org (Postfix) with ESMTP id CE06A64FC8B for ; Tue, 18 Nov 2008 08:02:19 -0400 (AST) Received: by wf-out-1314.google.com with SMTP id 25so3007062wfc.28 for ; Tue, 18 Nov 2008 04:02:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=1HXrJIS8wvA2AvnI82qaAerc1cgx5qAEx36fX9NAlnk=; b=HwYB0IG1ZoJ3tOcb3eSLZYon9IIg3LwWq3jB5745CkgQvq95qf+PpHoADo+lSnsBdH quVFu8dM8VjXguFGAAQTlDHVIbAvt/pQ6hsFHzVc1TJz3Zx/3bU09V+KzC5+Zx5jaN0X 3ynMihTxh95bEMNyHgHd4kYkaSTdEWusbF01w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IEnyo47peQY8hkD5q/ymD6oCw0bXm+p3Hh8Q1iDVW75lxpq0QWMYu+j+HqLvwZnAls KH7ibIYjCw0UFGfIWrDMh90FQu2aso196Y/bHa++zJI6sGQLZi+p+tvCTR38XKg0mL9z Yl0AKUjQ1u/Jd/eV1go1In0u4lzODCGfwzlIs= Received: by 10.142.174.8 with SMTP id w8mr2560936wfe.76.1227009737974; Tue, 18 Nov 2008 04:02:17 -0800 (PST) Received: by 10.142.237.5 with HTTP; Tue, 18 Nov 2008 04:02:17 -0800 (PST) Message-ID: Date: Tue, 18 Nov 2008 10:02:17 -0200 From: "Emanuel CALVO FRANCO" To: pgsql-es-ayuda Subject: Re: [DOCS] FAQ_Solaris 1.28 to spanish In-Reply-To: <49229772.5090706@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811012216.51622.peter_e@gmx.net> <49229772.5090706@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=WHOIS_NETSOLPR=0.001 X-Spam-Level: X-Archive-Number: 200811/489 X-Sequence-Number: 39003 i will be working on that next week. 2008/11/18 Peter Eisentraut : > Peter Eisentraut wrote: >>> >>> I have new things to add, specially for Open Solaris plattaform >>> specifications. I can write a new FAQ or just concatenate to this the >>> other >>> features of OSolaris? >> >> In my opinion, the platform FAQs should be scrapped and the information >> should be placed into the real documentation at the appropriate places. > > Here is a beginning patch of what I am planning to do with the platform FAQs > in terms of getting it integrated into the main documentation. If you don't > like where this is going, please speak up. > > Index: doc/src/sgml/installation.sgml > =================================================================== > RCS file: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v > retrieving revision 1.313 > diff -u -3 -p -r1.313 installation.sgml > --- doc/src/sgml/installation.sgml 5 Sep 2008 12:11:18 -0000 > 1.313 > +++ doc/src/sgml/installation.sgml 18 Nov 2008 10:18:03 -0000 > @@ -2001,8 +2001,9 @@ kill `cat /usr/local/pgsql/data/postmast > FreeBSD, OpenBSD, NetBSD, Mac OS X, AIX, HP/UX, IRIX, Solaris, Tru64 > Unix, > and UnixWare. Other Unix-like systems may also work but are not > currently > being tested. In most cases, all CPU architectures supported by > - a given operating system will work. Look in the doc/ > - directory of the source distribution to see if there is a FAQ document > + a given operating system will work. Look in > + the below to see if > + there is information > specific to your operating system, particularly if using an older system. > > > @@ -2011,9 +2012,202 @@ kill `cat /usr/local/pgsql/data/postmast > to be supported according to recent build farm results, please report > it to pgsql-bugs@postgresql.org. If you are interested > in porting PostgreSQL to a new platform, > - pgsql-ports@postgresql.org is the appropriate place > + pgsql-hackers@postgresql.org is the appropriate place > to discuss that. > > > > + > + Platform-Specific Notes > + > + > + Solaris > + > + > + Required tools > + > + > + To build and install PostgreSQL on Solaris, you will need > + > + gzip (for installing the > documentation) > + GNU Make > + GNU Readline library (optional) > + Sun Studio CC or GCC > + > + > + You can download Sun Studio > + from url="http://developers.sun.com/sunstudio/downloads/">. > + Many of GNU tools are integrated into Solaris 10, or they are > + present on the Solaris companion CD. If you like packages for > + older version of Solaris, you can find these tools > + at > + or . If you prefer > + sources, look > + at . > + > + > + > + You can build with either GCC or Sun's compiler suite. For > + better code optimization, Sun's compiler is strongly recommended > + on the SPARC architecture. We have heard reports of problems > + when using GCC 2.95.1; gcc 2.95.3 or later is recommended. If > + you are using Sun's compiler, be careful not to select > + /usr/ucb/cc; > + use /opt/SUNWspro/bin/cc. > + > + > + > + > + Problems with OpenSSL > + > + > + When you build PostgreSQL with OpenSSL support you might get > + compilation errors in the following files: > + > + > src/backend/libpq/crypt.c > + > src/backend/libpq/password.c > + > src/interfaces/libpq/fe-auth.c > + > src/interfaces/libpq/fe-connect.c > + > + > + This is because of a namespace conflict between the standard > + /usr/include/crypt.h header and the header > + files provided by OpenSSL. > + > + > + > + Upgrading your OpenSSL installation to version 0.9.6a fixes this > + problem. Solaris 9 and above has a newer version of OpenSSL. > + > + > + > + > + configure complains about a failed test program > + > + > + If configure complains about a failed test program, this is > + probably a case of the run-time linker being unable to find some > + library, probably libz, libreadline or some other non-standard > + library such as libssl. To point it to the right location, set > + the LDFLAGS environment variable, e.g., > + > +LDFLAGS="-R /usr/sfw/lib:/opt/sfw/lib:/usr/local/lib" > +export LDFLAGS > + > + and restart configure. See > + the ld1 > + man page for more information. > + > + > + > + > + 64-bit build sometimes crashes > + > + > + On Solaris 7 and older, the 64-bit version of libc has a buggy > + vsnprintf routine, which leads to erratic > + core dumps in PostgreSQL. The simplest known workaround is to > + force PostgreSQL to use its own version of vsnprintf rather than > + the library copy. To do this, after you > + run configure edit a file produced by > + configure: > + In src/Makefile.global, change the line > + > +LIBOBJS = > + > + to read > + > +LIBOBJS = snprintf.o > + > + (There might be other files already listed in this variable. > + Order does not matter.) Then build as usual. > + > + > + > + > + Compiling for optimal performance > + > + > + On the SPARC architecture, Sun Studio is strongly recommended for > + compilation. Try using the optimization > + flag to generate significantly faster binaries. Do not use any > + flags that modify behavior of floating-point operations > + and errno processing (e.g., > + ). These flags could raise some > + nonstandard PostgreSQL behavior for example in the date/time > + computing. > + > + > + > + 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. > + > + > + > + > + Solaris packages > + > + > + PostgreSQL is bundled with Solaris 10 (from update 2). Official > + packages are also available on > + . > + Packages for older Solaris versions (8, 9) you can be obtained > + from or > + . > + > + > + > + > + Performance tuning > + > + > + Some tricks for tuning PostgreSQL and Solaris for performance can > + be found > + at url="http://www.sun.com/servers/coolthreads/tnb/applications_postgresql.jsp">. > + This article is primary focused on T2000 platform, but many of > + the recommendations are also useful on other hardware with > + Solaris. > + > + > + > + > + Using DTrace for tracing PostgreSQL > + > + > + Yes, using DTrace is possible. See > + for further information. You can also find more information in > + this > + article: url="http://blogs.sun.com/robertlor/entry/user_level_dtrace_probes_in">. > + > + > + > + If you see the linking of the postgres executable abort with an > + error message like > + > +Undefined first referenced > + symbol in file > +AbortTransaction utils/probes.o > +CommitTransaction utils/probes.o > +ld: fatal: Symbol referencing errors. No output written to postgres > +collect2: ld returned 1 exit status > +gmake: *** [postgres] Error 1 > + > + your DTrace installation is too old to handle probes in static > + functions. You need Solaris 10u4 or newer. A workaround is to > + remove the > + static key word from the function declarations > + of AbortTransaction > + and CommitTransaction > + in src/backend/access/transam/xact.c. See > + also url="http://sunsolve.sun.com/search/document.do?assetkey=1-1-2139224-1"> > + (registration required). > + > + > + > + > + > > > -- Emanuel Calvo Franco Syscope Postgresql DBA BaPUG / AOSUG Member