473,773 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pgsql 7.3/7.4/8.0 on IA64 HP-UX 11i?


Has anyone successfully built 7.3.4, 7.4.3, or 8.0.0beta1 on
IA64 with HP-UX 11i v2 (11.23)? I'm not having any success,
running into 'make' failures. Googling old posts suggests
this might be due to missing test-and-set code for ia64?
I saw a disputed/repudiated ViSolve patch, but nothing else.
Is this still broken?

Here's my attempt on 8.0.0beta1:

$uname -a
HP-UX r1 B.11.23 U ia64 ...
$cc -V
(Bundled) cc: HP aC++/ANSI C B3910B A.05.50 [May 15 2003]
$make
....<snip>...
cc -Ae +O2 -I../../../../src/include -D_XOPEN_SOURCE_ EXTENDED -c -o xlog.o xlog.c
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+O2" is unsupported in the bundled compiler, ignored.
Error 119: "../../../../src/include/storage/s_lock.h", line 654 # #error PostgreSQL does not have
native spinlock support on this platform. To continue the compilation, rerun configure using
--disable-spinlocks. However, performance will be poor. Please report this to
pg********@post gresql.org.
#error PostgreSQL does not have native spinlock support on this p
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^
Error 22: "../../../../src/include/storage/s_lock.h", line 711 # Syntax error.
extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or
^
....<snip>...


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #1
11 3620
On Monday August 16 2004 5:24, Ed L. wrote:
$make
...<snip>...
cc -Ae +O2 -I../../../../src/include -D_XOPEN_SOURCE_ EXTENDED -c -o
xlog.o xlog.c (Bundled) cc: warning 922: "-Ae" is unsupported in the
bundled compiler, ignored. (Bundled) cc: warning 922: "+O2" is
unsupported in the bundled compiler, ignored. Error 119:
"../../../../src/include/storage/s_lock.h", line 654 # #error PostgreSQL
does not have native spinlock support on this platform. To continue the
compilation, rerun configure using --disable-spinlocks. However,
performance will be poor. Please report this to
pg********@post gresql.org.
#error PostgreSQL does not have native spinlock support on this p
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^
Error 22: "../../../../src/include/storage/s_lock.h", line 711 # Syntax
error. extern int tas(volatile slock_t *lock); /* in
port/.../tas.s, or ^
...<snip>...

And I do see the --disable-spinlocks option, but was hoping for the build
with the "good" performance!

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #2
"Ed L." <pg***@bluepolk a.net> writes:
cc -Ae +O2 -I../../../../src/include -D_XOPEN_SOURCE_ EXTENDED -c -o xlog.o xlog.c
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+O2" is unsupported in the bundled compiler, ignored.


You should hardly be worrying about spinlock performance when you are
using that toy non-optimizing compiler. Get a real compiler --- either
gcc or HP's extra-money compiler ...

Aside from being free, gcc has the advantage that the spinlock code
should work out-of-the-box. I don't think anyone's built a solution
for HP's compiler on IA64 yet.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #3
Ed L. wrote:
On Monday August 16 2004 5:24, Ed L. wrote:
$make
...<snip>...
cc -Ae +O2 -I../../../../src/include -D_XOPEN_SOURCE_ EXTENDED -c -o
xlog.o xlog.c (Bundled) cc: warning 922: "-Ae" is unsupported in the
bundled compiler, ignored. (Bundled) cc: warning 922: "+O2" is
unsupported in the bundled compiler, ignored. Error 119:
"../../../../src/include/storage/s_lock.h", line 654 # #error PostgreSQL
does not have native spinlock support on this platform. To continue the
compilation, rerun configure using --disable-spinlocks. However,
performance will be poor. Please report this to
pg********@post gresql.org.
#error PostgreSQL does not have native spinlock support on this p
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^
Error 22: "../../../../src/include/storage/s_lock.h", line 711 # Syntax
error. extern int tas(volatile slock_t *lock); /* in
port/.../tas.s, or ^
...<snip>...

And I do see the --disable-spinlocks option, but was hoping for the build
with the "good" performance!


Yep, it is the missing ia64 spinlock code. We have a gcc version but
obviously not one for your compiler, HP native cc. We need someone to
supply us one. If you can find an assembler guy, have them look at our
gcc version and see they can send us a patch.

--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #4
On Monday August 16 2004 5:44, Tom Lane wrote:
"Ed L." <pg***@bluepolk a.net> writes:
cc -Ae +O2 -I../../../../src/include -D_XOPEN_SOURCE_ EXTENDED -c -o
xlog.o xlog.c (Bundled) cc: warning 922: "-Ae" is unsupported in the
bundled compiler, ignored. (Bundled) cc: warning 922: "+O2" is
unsupported in the bundled compiler, ignored.


You should hardly be worrying about spinlock performance when you are
using that toy non-optimizing compiler. Get a real compiler --- either
gcc or HP's extra-money compiler ...

Aside from being free, gcc has the advantage that the spinlock code
should work out-of-the-box. I don't think anyone's built a solution
for HP's compiler on IA64 yet.


Thanks for the tip. I installed the following depots, exported CC=gcc, and
8.0.0beta1 built fine, no warnings or errors, and loads from 7.3.4 dump
just fine.

make-3.80-sd-11.22.depot.gz, bison-1.875-sd-11.22.depot.gz,
flex-2.5.4a-sd-11.00.depot.gz, gcc-3.3.2-sd-11.22.depot.gz

$psql -c "select version()"
version
-----------------------------------------------------------------------------
PostgreSQL 8.0.0beta1 on ia64-hp-hpux11.23, compiled by GCC gcc (GCC) 3.3.2
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #5
"Ed L." <pg***@bluepolk a.net> writes:
Is gcc supposed to work for 7.3.4 on IA64 HP-UX 11.23 as well?


No, 7.4 is our first release that has any idea that HPUX can run on any
hardware but HPPA. If you're desperate you could try backporting this
7.4 fix:

2003-08-01 15:12 tgl

* configure, configure.in, src/backend/port/hpux/tas.c.template,
src/backend/port/tas/hpux.s, src/backend/port/tas/hpux_hppa.s,
src/include/port/hpux.h, src/include/storage/s_lock.h: Since HPUX
now exists for Itanium, we should decouple the assumption that
OS=hpux is the same as CPU=hppa. First steps at doing this. With
these patches, we still work on hppa with either gcc or HP's cc.
We might work on hpux/itanium with gcc, but I can't test it.
Definitely will not work on hpux/itanium with non-gcc compiler, for
lack of spinlock code.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #6
On Tuesday August 17 2004 10:08, Tom Lane wrote:
"Ed L." <pg***@bluepolk a.net> writes:
Is gcc supposed to work for 7.3.4 on IA64 HP-UX 11.23 as well?


No, 7.4 is our first release that has any idea that HPUX can run on any
hardware but HPPA. If you're desperate you could try backporting this
7.4 fix:


OK, thx, I may give that a brief try before reconsidering upgrade.

On a related topic, while looking into oddities of an HP-UX iexpress bundle
install of pgsql that had ".../lib/hpux32" and ".../lib/hpux64"
directories, we noticed the following:

$ file `which psql`
/opt/pgsql/postgresql-8.0.0beta1/bin/psql: ELF-32 executable object file
- IA64

This is the same for *many* of the executables in /bin. Does this mean it
is a 32-bit executable? Does it also, therefore, mean that is not taking
advantage of the 64-bit hardware? If so, is there something special I need
to pass to pgsql's configure to get it to build 64-bit executables to fully
exploit this expensive hardware?

TIA.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #7
"Ed L." <pg***@bluepolk a.net> writes:
$ file `which psql`
/opt/pgsql/postgresql-8.0.0beta1/bin/psql: ELF-32 executable object file
- IA64 This is the same for *many* of the executables in /bin. Does this mean it
is a 32-bit executable?
Looks like it to me.
Does it also, therefore, mean that is not taking
advantage of the 64-bit hardware? If so, is there something special I need
to pass to pgsql's configure to get it to build 64-bit executables to fully
exploit this expensive hardware?


I wouldn't panic. 99% of the value of a 64-bit box for database work
is that you can handle more than 4Gb worth of RAM for disk cache. Since
in Postgres's worldview most of the disk caching is supposed to be done
by the kernel, it really matters not whether the Postgres executables
think they are 32-bit or 64-bit. All you need is a 64-bit kernel.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #8
On Tuesday August 17 2004 10:38, Tom Lane wrote:
"Ed L." <pg***@bluepolk a.net> writes:
$ file `which psql`
/opt/pgsql/postgresql-8.0.0beta1/bin/psql: ELF-32 executable object
file - IA64

This is the same for *many* of the executables in /bin. Does this mean
it is a 32-bit executable?


Looks like it to me.
Does it also, therefore, mean that is not taking
advantage of the 64-bit hardware? If so, is there something special I
need to pass to pgsql's configure to get it to build 64-bit executables
to fully exploit this expensive hardware?


I wouldn't panic. 99% of the value of a 64-bit box for database work
is that you can handle more than 4Gb worth of RAM for disk cache. Since
in Postgres's worldview most of the disk caching is supposed to be done
by the kernel, it really matters not whether the Postgres executables
think they are 32-bit or 64-bit. All you need is a 64-bit kernel.


The HPUX gurus on http://forums1.itrc.hp.com testify that kernel caches
above approximately 600MB are counter-productive to performance. But we
have 16GB of RAM we definitely want to utilize for caching. Therefore,
we've set the kernel cache to 500MB and now wish to dramatically increase
the size of the PostgreSQL DB cache to take advantage of this RAM, possibly
as large as 8GB for a single cluster.

The Pgsql build scripts are building 32-bit pgsql executables by default,
and thus I'm concerned I'm not going to take advantage of the available RAM
for DB caching.

How do I build 64-bit pgsql executables?
Any concerns about an 8GB shmmax setting?
Other thoughts?

Ed
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #9
On Tuesday September 28 2004 1:18, Tom Lane wrote:
"Ed L." <pg***@bluepolk a.net> writes:
I wouldn't panic. 99% of the value of a 64-bit box for database work
is that you can handle more than 4Gb worth of RAM for disk cache.
Since in Postgres's worldview most of the disk caching is supposed to
be done by the kernel, it really matters not whether the Postgres
executables think they are 32-bit or 64-bit. All you need is a 64-bit
kernel.


The HPUX gurus on http://forums1.itrc.hp.com testify that kernel caches
above approximately 600MB are counter-productive to performance.


Why? And why would you think that whatever effect is limiting the
performance would not also apply to Postgres?


Well, I'm hardly the guru here, but if I understood correctly, the
degradation is due to competition between vhand and the kernel buffer
cache, resulting in applications being unable to get needed memory back
from the kernel buffer cache in a timely fashion. Assuming it's
competition between the kernel buffer cache and vhand, it seems logical to
think that removing the buffer cache from the competition would allow pgsql
a free hand to manage its own, large cache free.

Here's a discussion link:

http://forums1.itrc.hp.com/service/f...hreadId=673998
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1792
by: Hema Sekhar | last post by:
Hi I am Hemasekhar K.P I am trying to replicae pgsql on REDHATLinux 8, but the site http://gborg.postgresql.org/genpage?replication_72install. is giving instructions on REDHATLinux 7, is there any site which gives instructions on how to replicate on REDHATLinux 8, Actually in postgresql.conf which is under /usr/local/pgsql/data/postgresql.conf, I added the following lines
11
2350
by: Daniel E. Fisher | last post by:
> I can't get a rest for a min guys. > > I go away for the weekend and my server is getting this error. > > Fatal error: Call to undefined function: pg_connect() in > /var/www/html/crohns/phpBB2/db/postgres7.php on line 79 Your PHP doesn't have support for PostgreSQL. Look at phpinfo();
3
2648
by: John Riggs | last post by:
Hi, I've been attempting to use StackWalk64 on IA64. Unfortunately, the Microsoft docs seem to be rather vague as to what is required. My test program works on the I386, but won't not on the IA64. On the IA64 the StackWalk64 returns true, so the call thinks it succeeded. But the resulting StackFrame64 does not have correct data, and further calls to StackWalk64 return false. Has anybody gotten this to work that might be able to provide me...
3
6593
by: Keith Bottner | last post by:
I have been looking for an interactive PL/pgSQL for Postgres with no luck. Does anybody know of one open source or commercial? If not then I would like to know if there is currently a debugging API that can be attached to for writing such a debugger? And finally... If there isn't any debugging API how many people are interested in either the debugging API or the final product which would be an interactive
4
1837
by: Postgresql | last post by:
Hello, I am unable to get on many of the postgresql mailing lists. I usually get this message back with no attachment and no email comes afterwards with a confirmation. I've tried this over and over on multiple lists. After a while I was able to get on pgsql-admin...but it took a few tries. It's been a couple days now, so I'm assuming majordomo has had time to process my request.
7
2320
by: snpe | last post by:
Is it down ? regards ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
1
7214
by: John French | last post by:
I just installed postgresql 7.4.5 and pgadmin3 1.0.2 on FreeBSD and noticed that pgadmin allows the pgsql user to log in while ignoring the password. You can enter a wrong password or no password and still get into postgresql. I started the postmaster as a FreeBSD user named pgsql by running postmaster -i -D /usr/local/pgsql/data I changed postgresql's pgsql user account to have a new password via pgadmin3 too. But I can still log in to...
1
2484
by: sysxperts | last post by:
Hello, Having an issue that is specific to PHP compiled with PGSQL support with versions noted in subject line. I understand that there are many variables to consider here but believe I have narrowed down the Apache Client Cert failures to my PHP/PGSQL build. 1. Apache PHP without PGSQL works as expected using client certificates 2. Apache PHP with PGSQL works fine with standard SSL connections 3 Apache PHP with PGSQL fails with...
0
1927
by: Matt | last post by:
I need an installation with Postgres support, and was happy to find in my phpinfo that there was a --with-pgsql=shared option in the config line. but I still got "call to undefined function: pgsql_connect (4.3.11) So I figured whatev, I'll put a new installation (PHP5, in fact), but I always fail config with: Cannot find libpq-fe.h. Please specify correct Postgresql installation path
3
2050
by: Yuanfei | last post by:
Hi there, I am porting a project to IA64, AMD64(X64) with VS2005 Professional Edition on a 32bit box. The version of VS2005(32bit) I used is 8.0.50727.42. However, I just found that only x64 cross-compiler is offered with VS2005 and there is no AMD64 cross-compiler! I wonder if IA64 cross-compiler is available now and how can I get it ? If I need to install special service pack or SDK ?
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.