Call for port reports

Started by Bruce Momjianabout 22 years ago129 messages
#1Bruce Momjian
pgman@candle.pha.pa.us

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#2Adam Witney
awitney@sghms.ac.uk
In reply to: Bruce Momjian (#1)
Re: Call for port reports

On 24/10/03 4:37 pm, "Bruce Momjian" <pgman@candle.pha.pa.us> wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

All beta5 regression tests pass on

[mrc1-003:] adam% uname -a
Darwin mrc1-003.sghms.ac.uk 6.8 Darwin Kernel Version 6.8: Wed Sep 10
15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh
powerpc

[mrc1-003:] adam% sw_vers
ProductName: Mac OS X
ProductVersion: 10.2.8
BuildVersion: 6R73

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

#3Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Adam Witney (#2)
Re: Call for port reports

Updated:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------

Adam Witney wrote:

On 24/10/03 4:37 pm, "Bruce Momjian" <pgman@candle.pha.pa.us> wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

All beta5 regression tests pass on

[mrc1-003:] adam% uname -a
Darwin mrc1-003.sghms.ac.uk 6.8 Darwin Kernel Version 6.8: Wed Sep 10
15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh
powerpc

[mrc1-003:] adam% sw_vers
ProductName: Mac OS X
ProductVersion: 10.2.8
BuildVersion: 6R73

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#4Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

Linux bell 2.4.22-1-k7 #5 Sat Oct 4 14:11:12 EST 2003 i686 GNU/Linux

--
Peter Eisentraut peter_e@gmx.net

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

Linux sparc-sid 2.4.22-ctx17a #1 SMP Sam Okt 11 23:39:04 CEST 2003 sparc64 GNU/Linux

(32-bit build)

--
Peter Eisentraut peter_e@gmx.net

#6Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#4)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

Linux bell 2.4.22-1-k7 #5 Sat Oct 4 14:11:12 EST 2003 i686 GNU/Linux

--
Peter Eisentraut peter_e@gmx.net

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#7Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#5)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------
Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

Linux sparc-sid 2.4.22-ctx17a #1 SMP Sam Okt 11 23:39:04 CEST 2003 sparc64 GNU/Linux

(32-bit build)

--
Peter Eisentraut peter_e@gmx.net

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#8Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

FreeBSD svr1.postgresql.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Sat Sep 20 14:41:58 ADT 2003 i386

--
Peter Eisentraut peter_e@gmx.net

#9Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

CYGWIN_NT-5.1 krusty 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown Cygwin

I suggest that we change the operating system column for this platform
from "Windows" to "Windows with Cygwin" and remove Cygwin from the comment
column.

--
Peter Eisentraut peter_e@gmx.net

#10Marko Karppinen
marko@karppinen.fi
In reply to: Bruce Momjian (#1)
Re: Call for port reports

On Oct 24, 2003, at 18:37, Bruce Momjian wrote:

It is time for people to report their port testing. Please test
against
current CVS or beta5 and report your 'uname -a'.

This is with beta 5.

Darwin marko.karppinen.fi 7.0.0 Darwin Kernel Version 7.0.0: Wed Sep 24
15:48:39 PDT 2003; root:xnu/xnu-517.obj~1/RELEASE_PPC Power Macintosh
powerpc

ProductName: Mac OS X
ProductVersion: 10.3
BuildVersion: 7B85

6 out of 93 tests failed:
date ... FAILED
timetz ... FAILED
inet ... FAILED
comments ... FAILED
test horology ... FAILED
test misc ... FAILED

The regression.diffs file is at:
http://www.karppinen.fi/pgsql74b4-darwin7-regression.diffs

mk

#11Marko Karppinen
marko@karppinen.fi
In reply to: Marko Karppinen (#10)
Re: Call for port reports

Looking a bit further into this, it looks like random tests are
failing. Seems like an issue with the test harness on this
platform.

Does someone want a shell account to debug?

mk

Show quoted text

On Oct 24, 2003, at 21:39, Marko Karppinen wrote:

6 out of 93 tests failed:
date ... FAILED
timetz ... FAILED
inet ... FAILED
comments ... FAILED
test horology ... FAILED
test misc ... FAILED

#12Marko Karppinen
marko@karppinen.fi
In reply to: Marko Karppinen (#11)
Re: Call for port reports

I'm just being an idiot, it's obviously a limits problem on the
platform.
It has a default max user processes limit of 100, which I was hitting.
I shut down a bunch of desktop apps, and it's now passing:

92 of 93 tests passed, 1 failed test(s) ignored.
(random was the one failing).

So I guess you can add it to the list.

mk

#13Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

On True64 5.1 (no "thread safety" enabled) with gcc:

In file included from postgresql-7.4beta5/src/port/thread.c:17:
/usr/include/pthread.h:290:3: #error <pthread.h>: unrecognized compiler.
/usr/include/pthread.h:328:4: #error "Please compile the module including pthread.h with -pthread"
make[2]: *** [thread.o] Error 1

and analogously using vendor cc (only the second error).

So this platform is officially broken right now.

--
Peter Eisentraut peter_e@gmx.net

#14Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK:

FreeBSD 4.8-RELEASE alpha

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

--
Peter Eisentraut peter_e@gmx.net

#15Rod Taylor
rbt@rbt.ca
In reply to: Bruce Momjian (#1)
Re: Call for port reports -- Failure on Linux

Linux ns2 2.4.20-xfs #2 Tue Apr 15 10:04:43 EDT 2003 i686 unknown

<-- SNIP -->
stats ... FAILED
============== shutting down postmaster ==============

=======================
1 of 93 tests failed.
=======================

*** ./expected/stats.out        Sat Sep 13 12:44:48 2003
--- ./results/stats.out Fri Oct 24 14:26:56 2003
***************
*** 8,14 ****
  SHOW stats_start_collector;  -- must be on
   stats_start_collector
  -----------------------
!  on
  (1 row)
  -- save counters
--- 8,14 ----
  SHOW stats_start_collector;  -- must be on
   stats_start_collector
  -----------------------
!  off
  (1 row)

-- save counters
***************
*** 62,68 ****
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column? | ?column? | ?column?
----------+----------+----------+----------
! t | t | t | t
(1 row)

  SELECT st.heap_blks_read + st.heap_blks_hit >= pr.heap_blks +
cl.relpages,
--- 62,68 ----
   WHERE st.relname='tenk2' AND cl.relname='tenk2';
   ?column? | ?column? | ?column? | ?column?
  ----------+----------+----------+----------
!  f        | f        | f        | f
  (1 row)

SELECT st.heap_blks_read + st.heap_blks_hit >= pr.heap_blks +
cl.relpages,
***************
*** 71,77 ****
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column?
----------+----------
! t | t
(1 row)

  -- clean up
--- 71,77 ----
   WHERE st.relname='tenk2' AND cl.relname='tenk2';
   ?column? | ?column?
  ----------+----------
!  f        | f
  (1 row)

-- clean up

Show quoted text

On Fri, 2003-10-24 at 11:37, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

#16Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#8)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

FreeBSD svr1.postgresql.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Sat Sep 20 14:41:58 ADT 2003 i386

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#17Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#9)
Re: Call for port reports

Heading updated too.

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

CYGWIN_NT-5.1 krusty 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown Cygwin

I suggest that we change the operating system column for this platform
from "Windows" to "Windows with Cygwin" and remove Cygwin from the comment
column.

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#18Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Marko Karppinen (#12)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

I saw in your diff:

! psql: could not fork new process for connection: Resource temporarily
unavailable

so I figured it was something related to resources.

---------------------------------------------------------------------------
Marko Karppinen wrote:

I'm just being an idiot, it's obviously a limits problem on the
platform.
It has a default max user processes limit of 100, which I was hitting.
I shut down a bunch of desktop apps, and it's now passing:

92 of 93 tests passed, 1 failed test(s) ignored.
(random was the one failing).

So I guess you can add it to the list.

mk

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#19Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#13)
Re: Call for port reports

Thanks, fixed. Please retest.

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

On True64 5.1 (no "thread safety" enabled) with gcc:

In file included from postgresql-7.4beta5/src/port/thread.c:17:
/usr/include/pthread.h:290:3: #error <pthread.h>: unrecognized compiler.
/usr/include/pthread.h:328:4: #error "Please compile the module including pthread.h with -pthread"
make[2]: *** [thread.o] Error 1

and analogously using vendor cc (only the second error).

So this platform is officially broken right now.

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#20Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#14)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK:

FreeBSD 4.8-RELEASE alpha

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

template/alpha has:

case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac

Is this not getting invoked?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#21Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK:

OpenBSD 3.2 GENERIC#25 i386

--
Peter Eisentraut peter_e@gmx.net

#22Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#21)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------
Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK:

OpenBSD 3.2 GENERIC#25 i386

--
Peter Eisentraut peter_e@gmx.net

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#23Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#20)
Re: Call for port reports

Bruce Momjian writes:

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

template/alpha has:

case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac

Is this not getting invoked?

It appends it at the end, but apparently the result of '-02 ... -O' is
-O2. So the compiler still yells at you every time that -O2 is broken in
that platform.

Right now, the default CFLAGS are pretty much broken on most platforms, so
I'm testing by manually specifying the CFLAGS that should be used.

--
Peter Eisentraut peter_e@gmx.net

#24Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#23)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

template/alpha has:

case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac

Is this not getting invoked?

It appends it at the end, but apparently the result of '-02 ... -O' is
-O2. So the compiler still yells at you every time that -O2 is broken in
that platform.

Right now, the default CFLAGS are pretty much broken on most platforms, so
I'm testing by manually specifying the CFLAGS that should be used.

Wow, later optimization flags don't override earlier ones. Yikes!

Does -O0 override an earlier -O2? I wonder if it is just complaining
when it sees -O2 and is actually using -O for the compile. We still
need to fix that, but I am curious.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#25Christopher Browne
cbbrowne@libertyrms.info
In reply to: Bruce Momjian (#1)
Re: Call for port reports

pgman@candle.pha.pa.us (Bruce Momjian) writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

... Much omitted ...
============== shutting down postmaster ==============

======================
All 93 tests passed.
======================

rm regress.o
make[1]: Leaving directory `/disk3/OXRS/pgsql-7.4-cvs/src/test/regress'
postgres@ringo /disk3/OXRS/pgsql/src/test > uname -a
SunOS ringo 5.8 Generic_108528-17 sun4u sparc SUNW,Ultra-4

That ought to "speak" at least somewhat for Solaris...

I'm working on AIX, which is cascading in a bunch of additional
toolchain (GNU M4, Bison, ...)
--
(reverse (concatenate 'string "ofni.smrytrebil" "@" "enworbbc"))
<http://dev6.int.libertyrms.com/&gt;
Christopher Browne
(416) 646 3304 x124 (land)

#26Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK after the recent pthread.h patch:

NetBSD 1.6 (GENERIC) i386

However, the compile pointed out that in src/interfaces/libpq/fe-auth.c
line 472, variable "cmsg" is unused; and indeed it seems to be right.
Bruce, you worked most often on the peer authentication code, so maybe you
can check that.

--
Peter Eisentraut peter_e@gmx.net

#27Robert Treat
xzilla@users.sourceforge.net
In reply to: Rod Taylor (#15)
Re: Call for port reports -- Failure on Linux

worked fine on slackware:

======================
All 93 tests passed.
======================

Linux phppgadmin 2.4.18 #2 Fri May 31 01:21:23 PDT 2002 i586 unknown

oh... different kernel, different filesystem....

Robert Treat

On Fri, 2003-10-24 at 16:37, Rod Taylor wrote:

Linux ns2 2.4.20-xfs #2 Tue Apr 15 10:04:43 EDT 2003 i686 unknown

<-- SNIP -->
stats ... FAILED
============== shutting down postmaster ==============

=======================
1 of 93 tests failed.
=======================

*** ./expected/stats.out        Sat Sep 13 12:44:48 2003
--- ./results/stats.out Fri Oct 24 14:26:56 2003
***************
*** 8,14 ****
SHOW stats_start_collector;  -- must be on
stats_start_collector
-----------------------
!  on
(1 row)
-- save counters
--- 8,14 ----
SHOW stats_start_collector;  -- must be on
stats_start_collector
-----------------------
!  off
(1 row)

-- save counters
***************
*** 62,68 ****
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column? | ?column? | ?column?
----------+----------+----------+----------
! t | t | t | t
(1 row)

SELECT st.heap_blks_read + st.heap_blks_hit >= pr.heap_blks +
cl.relpages,
--- 62,68 ----
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column? | ?column? | ?column?
----------+----------+----------+----------
!  f        | f        | f        | f
(1 row)

SELECT st.heap_blks_read + st.heap_blks_hit >= pr.heap_blks +
cl.relpages,
***************
*** 71,77 ****
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column?
----------+----------
! t | t
(1 row)

-- clean up
--- 71,77 ----
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column?
----------+----------
!  f        | f
(1 row)

-- clean up

On Fri, 2003-10-24 at 11:37, Bruce Momjian wrote:

It is time for people to report their port testing. Please test

against

current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.htm
l

--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL

#28Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#24)
Re: Call for port reports

Bruce Momjian writes:

Does -O0 override an earlier -O2? I wonder if it is just complaining
when it sees -O2 and is actually using -O for the compile. We still
need to fix that, but I am curious.

If you specify -O2 anywhere and the compile step is invoked (for example,
you're not just preprocessing or just linking), then the warning is
issued. However, further investigation showed that the last optimization
option on the command line is the one that is actually used to perform the
optimizations.

--
Peter Eisentraut peter_e@gmx.net

#29Christopher Browne
cbbrowne@acm.org
In reply to: Bruce Momjian (#1)
Re: Call for port reports

In the last exciting episode, pgman@candle.pha.pa.us (Bruce Momjian) wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

On AIX, it's _close_...
============== shutting down postmaster ==============

=======================
1 of 93 tests failed.
=======================

bash-2.05a$ uname -a
AIX ibm-db 1 5 000CD13A4C00

The difference lies here:

bash-2.05a$ more regress/regression.diffs 
*** ./expected/errors.out       Wed Oct  1 17:07:24 2003
--- ./results/errors.out        Fri Oct 24 17:56:34 2003
***************
*** 197,211 ****
  ERROR:  syntax error at or near ")" at character 20
  -- no such operator 
  drop operator === (int4);
! ERROR:  missing argument
! HINT:  Use NONE to denote the missing argument of a unary operator.
  -- no such operator by that name 
  drop operator === (int4, int4);
  ERROR:  operator does not exist: integer === integer
  -- no such type1 
  drop operator = (nonesuch);
! ERROR:  missing argument
! HINT:  Use NONE to denote the missing argument of a unary operator.
  -- no such type1 
  drop operator = ( , int4);
  ERROR:  syntax error at or near "," at character 19
--- 197,209 ----
  ERROR:  syntax error at or near ")" at character 20
  -- no such operator 
  drop operator === (int4);
! ERROR:  argument type missing (use NONE for unary operators)
  -- no such operator by that name 
  drop operator === (int4, int4);
  ERROR:  operator does not exist: integer === integer
  -- no such type1 
  drop operator = (nonesuch);
! ERROR:  argument type missing (use NONE for unary operators)
  -- no such type1 
  drop operator = ( , int4);
  ERROR:  syntax error at or near "," at character 19

======================================================================

I'll have to look at "why" next week; I don't see the dropping of a
HINT message being a dramatic error, though.
--
(format nil "~S@~S" "cbbrowne" "cbbrowne.com")
http://cbbrowne.com/info/spreadsheets.html
"And if you could lie on the floor without holding on, you weren't
really drunk :-)" -- Preben Guldberg <c928400@student.dtu.dk>

In reply to: Bruce Momjian (#1)
1 attachment(s)
Re: Call for port reports

On Fri, Oct 24, 2003 at 11:37:32AM -0400, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

I need this small patch so it properly detects I have unix domain
sockets. Otherwise no problems.

Kurt

Attachments:

sys_un_h.difftext/plain; charset=us-asciiDownload
Index: configure.in
===================================================================
RCS file: /projects/cvsroot/pgsql-server/configure.in,v
retrieving revision 1.297
diff -u -r1.297 configure.in
--- configure.in	22 Oct 2003 04:16:39 -0000	1.297
+++ configure.in	24 Oct 2003 22:21:32 -0000
@@ -735,7 +735,17 @@
 ##
 
 dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
-AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h])
+AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h])
+
+# Some systems need <sys/socket.h> (and <sys/types.h>?) before <sys/un.h>
+AC_CHECK_HEADERS([sys/un.h], [], [],
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+])
 
 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
 # netinet/in.h is included first.
Index: config/c-library.m4
===================================================================
RCS file: /projects/cvsroot/pgsql-server/config/c-library.m4,v
retrieving revision 1.23
diff -u -r1.23 c-library.m4
--- config/c-library.m4	23 Jul 2003 23:30:39 -0000	1.23
+++ config/c-library.m4	24 Oct 2003 22:21:32 -0000
@@ -91,7 +91,12 @@
 # (Requires test for <sys/un.h>!)
 AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN],
 [AC_CHECK_TYPES([struct sockaddr_un], [AC_DEFINE(HAVE_UNIX_SOCKETS, 1, [Define to 1 if you have unix sockets.])], [],
-[#include <sys/types.h>
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 #ifdef HAVE_SYS_UN_H
 #include <sys/un.h>
 #endif
#31Noèl Köthe
noel@debian.org
In reply to: Kurt Roeckx (#30)
Re: Call for port reports

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

here are some build reports. Its all on Debian GNU/Linux with different
architectures:

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@bruckner:~/pgsql$ uname -a
Linux bruckner 2.4.21 #1 Don Aug 28 15:18:52 CEST 2003 ppc GNU/Linux

---------------------------------------------------------------------

In file included from ../../../../src/include/storage/spin.h:50,
from xlog.c:37:
../../../../src/include/storage/s_lock.h:543:2: #error This platform does not support native spinlocks. To continue the compile, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org.
make[4]: *** [xlog.o] Error 1
make[4]: Leaving directory `/home/noel/pgsql/src/backend/access/transam'
make[3]: *** [transam-recursive] Error 2
make[3]: Leaving directory `/home/noel/pgsql/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/noel/pgsql/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/noel/pgsql/src'
make: *** [all] Error 2
noel@paer:~/pgsql$ uname -a
Linux paer 2.4.20-64 #1 Fri Aug 1 23:40:10 UTC 2003 parisc64 GNU/Linux

rebuild with --disable-spinlocks

...
transactions ... ok
random ... failed (ignored)
portals ... ok
...
==================================================
92 of 93 tests passed, 1 failed test(s) ignored.
==================================================

The differences that caused some tests to fail can be viewed in the
file `./regression.diffs'. A copy of the test summary that you see
above is saved in the file `./regression.out'.

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@paer:~/pgsql$ uname -a
Linux paer 2.4.20-64 #1 Fri Aug 1 23:40:10 UTC 2003 parisc64 GNU/Linux

this is regression.diffs:

*** ./expected/random.out       Thu Feb 13 05:24:04 2003
--- ./results/random.out        Fri Oct 24 22:19:29 2003
***************
*** 31,35 ****
    WHERE random NOT BETWEEN 80 AND 120;
   random
  --------
! (0 rows)
--- 31,36 ----
    WHERE random NOT BETWEEN 80 AND 120;
   random
  --------
!     122
! (1 row)

-----------------------------------------------------------------------

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
(sid)noel@debussy:~/postgresql-cvs/pgsql$ uname -a
Linux debussy 2.4.19-netwinder #1 Thu Mar 20 03:14:34 CET 2003 armv4l GNU/Linux

--------------------------------------------------------------------------

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@merulo:~/pgsql$ uname -a
Linux merulo 2.4.18-itanium-smp #1 SMP Sat Nov 23 01:39:07 MST 2002 ia64 GNU/Linux

----------------------------------------------------------------------------

...
transactions ... ok
random ... failed (ignored)
portals ... ok
...
==================================================
92 of 93 tests passed, 1 failed test(s) ignored.
==================================================

The differences that caused some tests to fail can be viewed in the
file `./regression.diffs'. A copy of the test summary that you see
above is saved in the file `./regression.out'.

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
(unstable)noel@raptor:~/pgsql$ uname -a
Linux raptor 2.4.19 #1 SMP Fri Nov 29 23:53:27 CET 2002 s390 GNU/Linux

------------------------------------------------------------------------------

reports of these slower systems will follow but they need a bit more time:

Linux casals 2.4.19-r4k-ip22 #1 Tue Mar 18 15:38:10 CET 2003 mips unknown
Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k unknown
Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

#32Peter Eisentraut
peter_e@gmx.net
In reply to: Kurt Roeckx (#30)
Re: Call for port reports

Kurt Roeckx writes:

On Fri, Oct 24, 2003 at 11:37:32AM -0400, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

I need this small patch so it properly detects I have unix domain
sockets. Otherwise no problems.

What system? What happens without the patch? Details, please.

--
Peter Eisentraut peter_e@gmx.net

#33Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Christopher Browne (#29)
Re: Call for port reports

On Fri, Oct 24, 2003 at 06:07:40PM -0400, Christopher Browne wrote:

In the last exciting episode, pgman@candle.pha.pa.us (Bruce Momjian) wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

On AIX, it's _close_...

That message was reworded early in the beta cycle IIRC ... maybe you
have some old "expected" files lying around?

! ERROR:  missing argument
! HINT:  Use NONE to denote the missing argument of a unary operator.
--- 197,209 ----
! ERROR:  argument type missing (use NONE for unary operators)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Ciencias pol�ticas es la ciencia de entender por qu�
los pol�ticos act�an como lo hacen" (netfunny.com)

#34Noèl Köthe
noel@debian.org
In reply to: Alvaro Herrera (#33)
Re: Call for port reports

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

here are some build reports. Its all on Debian GNU/Linux with different
architectures:

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@bruckner:~/pgsql$ uname -a
Linux bruckner 2.4.21 #1 Don Aug 28 15:18:52 CEST 2003 ppc GNU/Linux

---------------------------------------------------------------------

In file included from ../../../../src/include/storage/spin.h:50,
from xlog.c:37:
../../../../src/include/storage/s_lock.h:543:2: #error This platform does not support native spinlocks. To continue the compile, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org.
make[4]: *** [xlog.o] Error 1
make[4]: Leaving directory `/home/noel/pgsql/src/backend/access/transam'
make[3]: *** [transam-recursive] Error 2
make[3]: Leaving directory `/home/noel/pgsql/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/noel/pgsql/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/noel/pgsql/src'
make: *** [all] Error 2
noel@paer:~/pgsql$ uname -a
Linux paer 2.4.20-64 #1 Fri Aug 1 23:40:10 UTC 2003 parisc64 GNU/Linux

rebuild with --disable-spinlocks

...
transactions ... ok
random ... failed (ignored)
portals ... ok
...
==================================================
92 of 93 tests passed, 1 failed test(s) ignored.
==================================================

The differences that caused some tests to fail can be viewed in the
file `./regression.diffs'. A copy of the test summary that you see
above is saved in the file `./regression.out'.

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@paer:~/pgsql$ uname -a
Linux paer 2.4.20-64 #1 Fri Aug 1 23:40:10 UTC 2003 parisc64 GNU/Linux

this is regression.diffs:

*** ./expected/random.out       Thu Feb 13 05:24:04 2003
--- ./results/random.out        Fri Oct 24 22:19:29 2003
***************
*** 31,35 ****
    WHERE random NOT BETWEEN 80 AND 120;
   random
  --------
! (0 rows)
--- 31,36 ----
    WHERE random NOT BETWEEN 80 AND 120;
   random
  --------
!     122
! (1 row)

-----------------------------------------------------------------------

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
(sid)noel@debussy:~/postgresql-cvs/pgsql$ uname -a
Linux debussy 2.4.19-netwinder #1 Thu Mar 20 03:14:34 CET 2003 armv4l GNU/Linux

--------------------------------------------------------------------------

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@merulo:~/pgsql$ uname -a
Linux merulo 2.4.18-itanium-smp #1 SMP Sat Nov 23 01:39:07 MST 2002 ia64 GNU/Linux

----------------------------------------------------------------------------

...
transactions ... ok
random ... failed (ignored)
portals ... ok
...
==================================================
92 of 93 tests passed, 1 failed test(s) ignored.
==================================================

The differences that caused some tests to fail can be viewed in the
file `./regression.diffs'. A copy of the test summary that you see
above is saved in the file `./regression.out'.

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
(unstable)noel@raptor:~/pgsql$ uname -a
Linux raptor 2.4.19 #1 SMP Fri Nov 29 23:53:27 CET 2002 s390 GNU/Linux

------------------------------------------------------------------------------

reports of these slower systems will follow but they need a bit more time:

Linux casals 2.4.19-r4k-ip22 #1 Tue Mar 18 15:38:10 CET 2003 mips unknown
Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k unknown
Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

#35Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#19)
Re: Call for port reports

Bruce Momjian writes:

Thanks, fixed. Please retest.

I get farther, but I'm getting failures in the stats test that were
reported by earlier posters as well. In the server log I see:

LOG: could not bind socket for statistics collector: Can't assign
requested address

What could be the cause of this?

Also, using vendor cc I have to add the option -ieee, else it won't accept
0.0/0.0. This was also reported for earlier releases but never put into
our source. I intend to do that unless someone objects.

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

On True64 5.1 (no "thread safety" enabled) with gcc:

In file included from postgresql-7.4beta5/src/port/thread.c:17:
/usr/include/pthread.h:290:3: #error <pthread.h>: unrecognized compiler.
/usr/include/pthread.h:328:4: #error "Please compile the module including pthread.h with -pthread"
make[2]: *** [thread.o] Error 1

and analogously using vendor cc (only the second error).

So this platform is officially broken right now.

--
Peter Eisentraut peter_e@gmx.net

In reply to: Peter Eisentraut (#32)
Re: Call for port reports

On Sat, Oct 25, 2003 at 12:46:39AM +0200, Peter Eisentraut wrote:

Kurt Roeckx writes:

I need this small patch so it properly detects I have unix domain
sockets. Otherwise no problems.

What system? What happens without the patch? Details, please.

It's a Linux system with libc5.

during configure:

checking sys/un.h usability... no
checking sys/un.h presence... yes
configure: WARNING: sys/un.h: present but cannot be compiled
configure: WARNING: sys/un.h: check for missing prerequisite headers?
configure: WARNING: sys/un.h: proceeding with the preprocessor's result
...
checking for struct sockaddr_un... no

With a newer autoconf this turns into:

checking sys/un.h usability... no
checking sys/un.h presence... yes
configure: WARNING: sys/un.h: present but cannot be compiled
configure: WARNING: sys/un.h: check for missing prerequisite headers?
configure: WARNING: sys/un.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for sys/un.h... yes

I did report it to them, and they told me to fix the
configure.in.

It compiles fine, runs fine.

It just then has a problem with the regression test because there
it checks the OS to decide if it has unix domain sockets or not.
Manualy fixing the script fixes that problem. (I think it's
somewhere in the TODO to fix this.)

Kurt

#37Noèl Köthe
noel@debian.org
In reply to: Noèl Köthe (#34)
Re: Call for port reports

Am Sa, den 25.10.2003 schrieb Noèl Köthe um 01:17:

reports of these slower systems will follow but they need a bit more time:

Linux casals 2.4.19-r4k-ip22 #1 Tue Mar 18 15:38:10 CET 2003 mips unknown

polymorphism ... ok
stats ... ok
============== shutting down postmaster ==============

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
noel@casals:~/postgresql-cvs/pgsql$ uname -a
Linux casals 2.4.19-r4k-ip22 #1 Tue Mar 18 15:38:10 CET 2003 mips GNU/Linux

Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k unknown

gcc -g -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -D_GNU_SOURCE -c -o xlog.o xlog.c
In file included from ../../../../src/include/storage/spin.h:50,
from xlog.c:37:
../../../../src/include/storage/s_lock.h:543:2: #error This platform does not support native spinlocks. To continue the compile, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org.
make[4]: *** [xlog.o] Error 1
make[4]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/backend/access/transam'
rebuild is runing with --disable-spinlocks but it needs half of a day.

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

#38Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Christopher Browne (#25)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------

Christopher Browne wrote:

pgman@candle.pha.pa.us (Bruce Momjian) writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

... Much omitted ...
============== shutting down postmaster ==============

======================
All 93 tests passed.
======================

rm regress.o
make[1]: Leaving directory `/disk3/OXRS/pgsql-7.4-cvs/src/test/regress'
postgres@ringo /disk3/OXRS/pgsql/src/test > uname -a
SunOS ringo 5.8 Generic_108528-17 sun4u sparc SUNW,Ultra-4

That ought to "speak" at least somewhat for Solaris...

I'm working on AIX, which is cascading in a bunch of additional
toolchain (GNU M4, Bison, ...)
--
(reverse (concatenate 'string "ofni.smrytrebil" "@" "enworbbc"))
<http://dev6.int.libertyrms.com/&gt;
Christopher Browne
(416) 646 3304 x124 (land)

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

http://archives.postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#39Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#26)
1 attachment(s)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK after the recent pthread.h patch:

NetBSD 1.6 (GENERIC) i386

However, the compile pointed out that in src/interfaces/libpq/fe-auth.c
line 472, variable "cmsg" is unused; and indeed it seems to be right.
Bruce, you worked most often on the peer authentication code, so maybe you
can check that.

Not sure why those variable defines are there --- they aren't referenced
anywhere in that function when HAVE_STRUCT_SOCKCRED is also defined. I
removed that code.

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

Attachments:

/bjm/difftext/plainDownload
Index: src/backend/libpq/hba.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/backend/libpq/hba.c,v
retrieving revision 1.115
diff -c -c -r1.115 hba.c
*** src/backend/libpq/hba.c	25 Sep 2003 06:57:59 -0000	1.115
--- src/backend/libpq/hba.c	25 Oct 2003 03:38:59 -0000
***************
*** 1433,1447 ****
  	struct msghdr msg;
  
  /* Credentials structure */
! #ifdef HAVE_STRUCT_CMSGCRED
  	typedef struct cmsgcred Cred;
  
  #define cruid cmcred_uid
! #elif HAVE_STRUCT_FCRED
  	typedef struct fcred Cred;
  
  #define cruid fc_uid
! #elif HAVE_STRUCT_SOCKCRED
  	typedef struct sockcred Cred;
  
  #define cruid sc_uid
--- 1433,1447 ----
  	struct msghdr msg;
  
  /* Credentials structure */
! #if defined(HAVE_STRUCT_CMSGCRED)
  	typedef struct cmsgcred Cred;
  
  #define cruid cmcred_uid
! #elif defined(HAVE_STRUCT_FCRED)
  	typedef struct fcred Cred;
  
  #define cruid fc_uid
! #elif defined(HAVE_STRUCT_SOCKCRED)
  	typedef struct sockcred Cred;
  
  #define cruid sc_uid
Index: src/interfaces/libpq/fe-auth.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/libpq/fe-auth.c,v
retrieving revision 1.83
diff -c -c -r1.83 fe-auth.c
*** src/interfaces/libpq/fe-auth.c	4 Aug 2003 02:40:16 -0000	1.83
--- src/interfaces/libpq/fe-auth.c	25 Oct 2003 03:39:07 -0000
***************
*** 464,476 ****
  	/* Point to start of first structure */
  	struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
  #endif
- #ifdef HAVE_STRUCT_SOCKCRED
- 	/* Prevent padding */
- 	char		cmsgmem[sizeof(struct cmsghdr) + sizeof(struct sockcred)];
- 
- 	/* Point to start of first structure */
- 	struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
- #endif
  
  	/*
  	 * The backend doesn't care what we send here, but it wants exactly
--- 464,469 ----
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Regression testing on AIX 5 using 7.4beta5:

polymorphism ... ok
stats ... ok
============== shutting down postmaster ==============

======================
All 93 tests passed.
======================

bash-2.05$ uname -a
AIX sn2 1 5 0044276A4C00

checking build system type... powerpc-ibm-aix5.1.0.0
checking host system type... powerpc-ibm-aix5.1.0.0
checking which template to use... aix

bash-2.05$ gcc -v
Reading specs from
/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix43-010414/specs
gcc version 2.9-aix43-010414

Good work :)

Hans

--
Cybertec Geschwinde u Schoenig
Ludo-Hartmannplatz 1/14, A-1160 Vienna, Austria
Tel: +43/2952/30706 or +43/660/816 40 77
www.cybertec.at, www.postgresql.at, kernel.cybertec.at

#41Dave Page
dpage@vale-housing.co.uk
In reply to: Hans-Jürgen Schönig (#40)
Re: Call for port reports

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: 24 October 2003 16:38
To: PostgreSQL-development
Subject: [HACKERS] Call for port reports

It is time for people to report their port testing. Please
test against current CVS or beta5 and report your 'uname -a'.

Cygwin
======

Parallel regression tests do not complete (we normally have problems
with these anyway, though they do normally complete).

Serial tests pass.

CYGWIN_NT-5.1 pc30 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown
Cygwin

Win32 Client
============

(Windows XP Pro, VC++ 6.0)

C:\cygwin\usr\local\src\postgresql-7.4beta5\src>nmake /f win32.mak ALL

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cd include
if not exist pg_config.h copy pg_config.h.win32 pg_config.h
cd ..
cd interfaces\libpq
nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Building the Win32 static library...

cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nma02744.
getaddrinfo.c
..\..\include\c.h(66) : fatal error C1083: Cannot open include file:
'strings.h'
: No such file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' :
return co
de '0x2'
Stop.

Regards, Dave.

#42Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#20)
Re: Call for port reports

Bruce Momjian writes:

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

template/alpha has:

case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac

Is this not getting invoked?

After further consideration, I think that the recent patch series that
tried to centralize the CFLAGS handling in configure should be reverted to
configure.in revision 1.293. Otherwise, it's much to complicated to
handle all the special cases. There is, after all, a reason we have been
forced to keep it this way all these years.

--
Peter Eisentraut peter_e@gmx.net

#43Noèl Köthe
noel@debian.org
In reply to: Noèl Köthe (#34)
Re: Call for port reports

Am Sa, den 25.10.2003 schrieb Noèl Köthe um 01:17:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

here are some build reports. Its all on Debian GNU/Linux with different
architectures:

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@pergolesi:~/pgsql$ uname -a
Linux pergolesi 2.4.22 #1 SMP Mon Aug 25 20:56:25 CEST 2003 i686 GNU/Linux

It says i686 but its AMD Opteron:

noel@pergolesi:~/pgsql$ cat /proc/cpuinfo |more
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 5
model name : AMD Opteron(tm) Processor 240
stepping : 1
cpu MHz : 1394.299
cache size : 1024 KB
...

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

In reply to: Bruce Momjian (#1)
Re: Call for port reports

On Fri, Oct 24, 2003 at 11:37:32AM -0400, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

checking build system type... i386-pc-solaris2.6
checking host system type... i386-pc-solaris2.6
checking which template to use... solaris
[...]
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
[...]
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
configure: using CFLAGS=-g -O2 -fno-strict-aliasing
checking whether the C compiler still works... no
configure: error: cannot proceed
oink% gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
gcc version 2.8.1

CFLAGS="-g -O2" ./configure --without-readline
[...]
======================
All 93 tests passed.
======================

Kurt

In reply to: Noèl Köthe (#43)
Re: Call for port reports

On Sat, Oct 25, 2003 at 01:03:37PM +0200, No�l K�the wrote:

noel@pergolesi:~/pgsql$ uname -a
Linux pergolesi 2.4.22 #1 SMP Mon Aug 25 20:56:25 CEST 2003 i686 GNU/Linux

It says i686 but its AMD Opteron:

Just wondering, but does it run in 32 or 64 bit mode? I have a
feeling it's only 32 bit mode ... Is it compiled for the i386 or
the x86_64 arch? Did you have CONFIG_X86_64=y as compile time
option?

Kurt

#46Noèl Köthe
noel@debian.org
In reply to: Kurt Roeckx (#45)
Re: Call for port reports

Am Sa, den 25.10.2003 schrieb Kurt Roeckx um 13:48:

Linux pergolesi 2.4.22 #1 SMP Mon Aug 25 20:56:25 CEST 2003 i686 GNU/Linux

It says i686 but its AMD Opteron:

Just wondering, but does it run in 32 or 64 bit mode? I have a
feeling it's only 32 bit mode ... Is it compiled for the i386 or
the x86_64 arch? Did you have CONFIG_X86_64=y as compile time
option?

Yes, you are right. Its "only" 32bit (kernel and userland). The Debian
amd64 port team is still working on 64bit packages.

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

#47Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#42)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

template/alpha has:

case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac

Is this not getting invoked?

After further consideration, I think that the recent patch series that
tried to centralize the CFLAGS handling in configure should be reverted to
configure.in revision 1.293. Otherwise, it's much to complicated to
handle all the special cases. There is, after all, a reason we have been
forced to keep it this way all these years.

Remember the old code had CFLAGS="" in lots of platforms, meaning they
got no optimization.

It seems right now Alpha is our only problem, and it is really just a
message problem because the later flags override the earlier ones. Why
can't get just remove -O2 from the alpha CFLAGS line via makefile magic?
Frankly, we could just do CFLAGS="-O" and be done with it because we
would not be bringing in the -O2, but I would rather keep it clean and
remove just -O2.

I don't think going backwards is a good solution because it spreads the
problem down to the templates again.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#48Larry Rosenman
ler@lerctr.org
In reply to: Bruce Momjian (#47)
Re: Call for port reports

--On Saturday, October 25, 2003 10:00:59 -0400 Bruce Momjian
<pgman@candle.pha.pa.us> wrote:

Peter Eisentraut wrote:

Bruce Momjian writes:

BUT: The default CFLAGS are set by configure to -O2, although the
template wants -O. I manually modified the CFLAGS to -O after
configure.

template/alpha has:

case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac

Is this not getting invoked?

After further consideration, I think that the recent patch series that
tried to centralize the CFLAGS handling in configure should be reverted
to configure.in revision 1.293. Otherwise, it's much to complicated to
handle all the special cases. There is, after all, a reason we have been
forced to keep it this way all these years.

Remember the old code had CFLAGS="" in lots of platforms, meaning they
got no optimization.

It seems right now Alpha is our only problem, and it is really just a
message problem because the later flags override the earlier ones. Why
can't get just remove -O2 from the alpha CFLAGS line via makefile magic?
Frankly, we could just do CFLAGS="-O" and be done with it because we
would not be bringing in the -O2, but I would rather keep it clean and
remove just -O2.

We also get -g on UnixWare cc (NOT gcc) builds, which we didn't before,
which means we do NOT get optimization (UnixWare's cc doesn't like
-O and -g together).

LER

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

#49Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Bruce Momjian (#47)
Re: Call for port reports

Bruce Momjian wrote:

Peter Eisentraut wrote:

Bruce Momjian writes:

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

template/alpha has:

case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac

Is this not getting invoked?

After further consideration, I think that the recent patch series that
tried to centralize the CFLAGS handling in configure should be reverted to
configure.in revision 1.293. Otherwise, it's much to complicated to
handle all the special cases. There is, after all, a reason we have been
forced to keep it this way all these years.

Remember the old code had CFLAGS="" in lots of platforms, meaning they
got no optimization.

It seems right now Alpha is our only problem, and it is really just a
message problem because the later flags override the earlier ones. Why
can't get just remove -O2 from the alpha CFLAGS line via makefile magic?
Frankly, we could just do CFLAGS="-O" and be done with it because we
would not be bringing in the -O2, but I would rather keep it clean and
remove just -O2.

I don't think going backwards is a good solution because it spreads the
problem down to the templates again.

In fact, another question is why this alpha test is only done in
freebsd? Certainly other alpha gcc platforms must have problems with
-O2?

I am inclined to add something to configure.in for all alpha compiles
that changes -O2 to -O.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#50Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Larry Rosenman (#48)
Re: Call for port reports

Larry Rosenman wrote:

After further consideration, I think that the recent patch series that
tried to centralize the CFLAGS handling in configure should be reverted
to configure.in revision 1.293. Otherwise, it's much to complicated to
handle all the special cases. There is, after all, a reason we have been
forced to keep it this way all these years.

Remember the old code had CFLAGS="" in lots of platforms, meaning they
got no optimization.

It seems right now Alpha is our only problem, and it is really just a
message problem because the later flags override the earlier ones. Why
can't get just remove -O2 from the alpha CFLAGS line via makefile magic?
Frankly, we could just do CFLAGS="-O" and be done with it because we
would not be bringing in the -O2, but I would rather keep it clean and
remove just -O2.

We also get -g on UnixWare cc (NOT gcc) builds, which we didn't before,
which means we do NOT get optimization (UnixWare's cc doesn't like
-O and -g together).

We are going to fix that, but what happens? Does the compile fail or
does optimization just get turned off?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#51Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#49)
Re: Call for port reports

Bruce Momjian writes:

In fact, another question is why this alpha test is only done in
freebsd?

Ask that to the maintainers of the FreeBSD system compiler.

Certainly other alpha gcc platforms must have problems with -O2?
I am inclined to add something to configure.in for all alpha compiles
that changes -O2 to -O.

I'm not. It's one thing if FreeBSD thinks their compiler is broken. But
before I accept that gcc is broken as a whole, I want to hear from the GCC
folks.

--
Peter Eisentraut peter_e@gmx.net

#52Larry Rosenman
ler@lerctr.org
In reply to: Bruce Momjian (#50)
Re: Call for port reports

--On Saturday, October 25, 2003 10:14:14 -0400 Bruce Momjian
<pgman@candle.pha.pa.us> wrote:

Larry Rosenman wrote:

After further consideration, I think that the recent patch series that
tried to centralize the CFLAGS handling in configure should be
reverted to configure.in revision 1.293. Otherwise, it's much to
complicated to handle all the special cases. There is, after all, a
reason we have been forced to keep it this way all these years.

Remember the old code had CFLAGS="" in lots of platforms, meaning they
got no optimization.

It seems right now Alpha is our only problem, and it is really just a
message problem because the later flags override the earlier ones. Why
can't get just remove -O2 from the alpha CFLAGS line via makefile
magic? Frankly, we could just do CFLAGS="-O" and be done with it
because we would not be bringing in the -O2, but I would rather keep
it clean and remove just -O2.

We also get -g on UnixWare cc (NOT gcc) builds, which we didn't before,
which means we do NOT get optimization (UnixWare's cc doesn't like
-O and -g together).

We are going to fix that, but what happens? Does the compile fail or
does optimization just get turned off?

just a warning on each compile and no optimization.

LER

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

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

#53Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#51)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

In fact, another question is why this alpha test is only done in
freebsd?

Ask that to the maintainers of the FreeBSD system compiler.

Certainly other alpha gcc platforms must have problems with -O2?
I am inclined to add something to configure.in for all alpha compiles
that changes -O2 to -O.

I'm not. It's one thing if FreeBSD thinks their compiler is broken. But
before I accept that gcc is broken as a whole, I want to hear from the GCC
folks.

Oh, so it is only FreeBSD that emits that warning. Interesting. I
haven't seen that error from any other platform, so you must be right.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#54Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#51)
1 attachment(s)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

In fact, another question is why this alpha test is only done in
freebsd?

Ask that to the maintainers of the FreeBSD system compiler.

Certainly other alpha gcc platforms must have problems with -O2?
I am inclined to add something to configure.in for all alpha compiles
that changes -O2 to -O.

I'm not. It's one thing if FreeBSD thinks their compiler is broken. But
before I accept that gcc is broken as a whole, I want to hear from the GCC
folks.

How does everyone like this patch? It removes -g from non-debug
compiles, and changes -O2 to -O for FreeBSD/Alpha.

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

Attachments:

/bjm/difftext/plainDownload
Index: configure
===================================================================
RCS file: /cvsroot/pgsql-server/configure,v
retrieving revision 1.306
diff -c -c -r1.306 configure
*** configure	22 Oct 2003 04:16:27 -0000	1.306
--- configure	25 Oct 2003 15:44:00 -0000
***************
*** 2384,2389 ****
--- 2384,2392 ----
  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  
  
+ # Strip off -g added by autoconf
+ CFLAGS="`echo \"$CFLAGS\" | sed 's/\( *\)-g\( *\)/\1\2/'`"
+ 
  #
  # Read the template
  #
Index: configure.in
===================================================================
RCS file: /cvsroot/pgsql-server/configure.in,v
retrieving revision 1.297
diff -c -c -r1.297 configure.in
*** configure.in	22 Oct 2003 04:16:39 -0000	1.297
--- configure.in	25 Oct 2003 15:44:03 -0000
***************
*** 229,234 ****
--- 229,237 ----
  
  AC_PROG_CC([$pgac_cc_list])
  
+ # Strip off -g added by autoconf
+ CFLAGS="`echo \"$CFLAGS\" | sed 's/\( *\)-g\( *\)/\1\2/'`"
+ 
  #
  # Read the template
  #
Index: src/template/freebsd
===================================================================
RCS file: /cvsroot/pgsql-server/src/template/freebsd,v
retrieving revision 1.27
diff -c -c -r1.27 freebsd
*** src/template/freebsd	9 Oct 2003 22:55:46 -0000	1.27
--- src/template/freebsd	25 Oct 2003 15:44:09 -0000
***************
*** 1,6 ****
! case $host_cpu in
!   alpha*)   CFLAGS="$CFLAGS -O";;  # alpha has problems with -O2
! esac
  
  THREAD_SUPPORT=yes
  NEED_REENTRANT_FUNCS=yes
--- 1,10 ----
! # alpha has problems with -O2
! # is FreeBSD/Alpha the only gcc Alpha that can't handle -O2?
! if test "$GCC" = yes; then
! 	case $host_cpu in
! 	  alpha*)   CFLAGS="`echo \"$CFLAGS\" | sed 's/\( *\)-O2\( *\)/\1-O\2/'`" ;;
! 	esac
! fi
  
  THREAD_SUPPORT=yes
  NEED_REENTRANT_FUNCS=yes
#55Peter Eisentraut
peter_e@gmx.net
In reply to: Peter Eisentraut (#14)
Re: Call for port reports

Peter Eisentraut writes:

FreeBSD 4.8-RELEASE alpha

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

I've committed a fix for the CFLAGS handling, and now this platform works
perfectly.

--
Peter Eisentraut peter_e@gmx.net

#56Larry Rosenman
ler@lerctr.org
In reply to: Peter Eisentraut (#55)
Re: Call for port reports

--On Saturday, October 25, 2003 18:35:06 +0200 Peter Eisentraut
<peter_e@gmx.net> wrote:

Peter Eisentraut writes:

FreeBSD 4.8-RELEASE alpha

BUT: The default CFLAGS are set by configure to -O2, although the
template wants -O. I manually modified the CFLAGS to -O after configure.

I've committed a fix for the CFLAGS handling, and now this platform works
perfectly.

That commit also fixed my -g issue with UnixWare. I still have the
following regression.diffs:

*** ./expected/privileges.out	Thu Oct  9 20:49:31 2003
--- ./results/privileges.out	Sat Oct 25 12:04:45 2003
***************
*** 247,253 ****
  (1 row)
  CREATE FUNCTION testfunc3(int) RETURNS int AS 'select 2 * $1;' LANGUAGE 
sql; -- fail
- ERROR:  permission denied for language sql
  SET SESSION AUTHORIZATION regressuser3;
  SELECT testfunc1(5); -- fail
  ERROR:  permission denied for function testfunc1
--- 247,252 ----

======================================================================

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

#57Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

After the just-committed fix, Tru64 5.1 alpha is OK with both cc and gcc.

--
Peter Eisentraut peter_e@gmx.net

#58Peter Eisentraut
peter_e@gmx.net
In reply to: Larry Rosenman (#56)
Re: Call for port reports

Larry Rosenman writes:

*** ./expected/privileges.out	Thu Oct  9 20:49:31 2003
--- ./results/privileges.out	Sat Oct 25 12:04:45 2003
***************
*** 247,253 ****
(1 row)
CREATE FUNCTION testfunc3(int) RETURNS int AS 'select 2 * $1;' LANGUAGE
sql; -- fail
- ERROR:  permission denied for language sql
SET SESSION AUTHORIZATION regressuser3;
SELECT testfunc1(5); -- fail
ERROR:  permission denied for function testfunc1
--- 247,252 ----

That sounds extremely strange. Can you step through the privileges.sql
file manually (psql single-step mode) and check what the contents of
pg_language, pg_shadow, current_user, and session_user are before the
misbehaving command?

--
Peter Eisentraut peter_e@gmx.net

#59Noèl Köthe
noel@debian.org
In reply to: Noèl Köthe (#34)
Re: Call for port reports

Am Sa, den 25.10.2003 schrieb Noèl Köthe um 01:17:

reports of these slower systems will follow but they need a bit more time:

Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k unknown

Peter gave me this patch for m68k:

-- src/include/port/linux.h.orig       Sat Oct 25 13:45:44 2003
+++ src/include/port/linux.h    Sat Oct 25 12:21:41 2003
@@ -45,3 +45,8 @@

#endif

+#if defined(__mc68000__)
+#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
+#endif
+

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
(unstable)noel@crest:~/postgresql-cvs/pgsql$ uname -a
Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k GNU/Linux

Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@escher:~/pgsql$ uname -a
Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

--

Noèl Köthe <noel@debian.org>

Debian GNU/Linux, www.debian.org

#60Peter Eisentraut
peter_e@gmx.net
In reply to: Kurt Roeckx (#44)
Re: Call for port reports

Kurt Roeckx writes:

configure: using CFLAGS=-g -O2 -fno-strict-aliasing
checking whether the C compiler still works... no
configure: error: cannot proceed
oink% gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
gcc version 2.8.1

CFLAGS="-g -O2" ./configure --without-readline

I've installed a detection logic that finds out whether
-fno-strict-aliasing works. Please give it a quick run through, then we
check this platform off.

--
Peter Eisentraut peter_e@gmx.net

#61Larry Rosenman
ler@lerctr.org
In reply to: Peter Eisentraut (#58)
Re: Call for port reports

--On Saturday, October 25, 2003 22:29:04 +0200 Peter Eisentraut
<peter_e@gmx.net> wrote:

Larry Rosenman writes:

*** ./expected/privileges.out	Thu Oct  9 20:49:31 2003
--- ./results/privileges.out	Sat Oct 25 12:04:45 2003
***************
*** 247,253 ****
(1 row)
CREATE FUNCTION testfunc3(int) RETURNS int AS 'select 2 * $1;' LANGUAGE
sql; -- fail
- ERROR:  permission denied for language sql
SET SESSION AUTHORIZATION regressuser3;
SELECT testfunc1(5); -- fail
ERROR:  permission denied for function testfunc1
--- 247,252 ----

That sounds extremely strange. Can you step through the privileges.sql
file manually (psql single-step mode) and check what the contents of
pg_language, pg_shadow, current_user, and session_user are before the
misbehaving command?

--
Peter Eisentraut peter_e@gmx.net

here ya go:
Script started on Sat Oct 25 16:34:24 2003
$ psql -s reg? ?? ?? ?-U p? ?ler regression
Welcome to psql 7.4beta5, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

regression=# \i privileges.sql
***(Single step mode: verify
command)*******************************************
CREATE USER regressuser1;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:5: ERROR: user "regressuser1" already exists
***(Single step mode: verify
command)*******************************************
CREATE USER regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:6: ERROR: user "regressuser2" already exists
***(Single step mode: verify
command)*******************************************
CREATE USER regressuser3;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:7: ERROR: user "regressuser3" already exists
***(Single step mode: verify
command)*******************************************
CREATE USER regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:8: ERROR: user "regressuser4" already exists
***(Single step mode: verify
command)*******************************************
CREATE USER regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:9: ERROR: user "regressuser4" already exists
***(Single step mode: verify
command)*******************************************
CREATE GROUP regressgroup1;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:11: ERROR: group "regressgroup1" already exists
***(Single step mode: verify
command)*******************************************
CREATE GROUP regressgroup2 WITH USER regressuser1, regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:12: ERROR: group "regressgroup2" already exists
***(Single step mode: verify
command)*******************************************
ALTER GROUP regressgroup1 ADD USER regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

ALTER GROUP
***(Single step mode: verify
command)*******************************************
ALTER GROUP regressgroup2 ADD USER regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

ALTER GROUP
***(Single step mode: verify
command)*******************************************
ALTER GROUP regressgroup2 DROP USER regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

ALTER GROUP
***(Single step mode: verify
command)*******************************************
ALTER GROUP regressgroup2 ADD USER regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

ALTER GROUP
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser1;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
SELECT session_user, current_user;
***(press return to proceed or enter x and return to
cancel)********************

session_user | current_user
--------------+--------------
regressuser1 | regressuser1
(1 row)

***(Single step mode: verify
command)*******************************************
CREATE TABLE atest1 ( a int, b text );
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:26: ERROR: relation "atest1" already exists
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+-----
1 | two
1 | two
(2 rows)

***(Single step mode: verify
command)*******************************************
INSERT INTO atest1 VALUES (1, 'one');
***(press return to proceed or enter x and return to
cancel)********************

INSERT 2356104 1
***(Single step mode: verify
command)*******************************************
DELETE FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

DELETE 3
***(Single step mode: verify
command)*******************************************
UPDATE atest1 SET a = 1 WHERE b = 'blech';
***(press return to proceed or enter x and return to
cancel)********************

UPDATE 0
***(Single step mode: verify
command)*******************************************
LOCK atest1 IN ACCESS EXCLUSIVE MODE;
***(press return to proceed or enter x and return to
cancel)********************

LOCK TABLE
***(Single step mode: verify
command)*******************************************
REVOKE ALL ON atest1 FROM PUBLIC;
***(press return to proceed or enter x and return to
cancel)********************

REVOKE
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+---
(0 rows)

***(Single step mode: verify
command)*******************************************
GRANT ALL ON atest1 TO regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
GRANT SELECT ON atest1 TO regressuser3, regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+---
(0 rows)

***(Single step mode: verify
command)*******************************************
CREATE TABLE atest2 (col1 varchar(10), col2 boolean);
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:40: ERROR: relation "atest2" already exists
***(Single step mode: verify
command)*******************************************
GRANT SELECT ON atest2 TO regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
GRANT UPDATE ON atest2 TO regressuser3;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
GRANT INSERT ON atest2 TO regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
SELECT session_user, current_user;
***(press return to proceed or enter x and return to
cancel)********************

session_user | current_user
--------------+--------------
regressuser2 | regressuser2
(1 row)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+---
(0 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest2;
***(press return to proceed or enter x and return to
cancel)********************

col1 | col2
------+------
bar | t
(1 row)

***(Single step mode: verify
command)*******************************************
INSERT INTO atest1 VALUES (2, 'two');
***(press return to proceed or enter x and return to
cancel)********************

INSERT 2356105 1
***(Single step mode: verify
command)*******************************************
INSERT INTO atest2 VALUES ('foo', true);
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:54: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
INSERT INTO atest1 SELECT 1, b FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

INSERT 2356106 1
***(Single step mode: verify
command)*******************************************
UPDATE atest1 SET a = 1 WHERE a = 2;
***(press return to proceed or enter x and return to
cancel)********************

UPDATE 1
***(Single step mode: verify
command)*******************************************
UPDATE atest2 SET col2 = NOT col2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:57: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1 FOR UPDATE;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+-----
1 | two
1 | two
(2 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest2 FOR UPDATE;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:59: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
DELETE FROM atest2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:60: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
LOCK atest2 IN ACCESS EXCLUSIVE MODE;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:61: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
COPY atest2 FROM stdin;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:62: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
GRANT ALL ON atest1 TO PUBLIC;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:63: ERROR: permission denied for relation atest1
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1 WHERE ( b IN ( SELECT col1 FROM atest2 ) );
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+---
(0 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest2 WHERE ( col1 IN ( SELECT b FROM atest1 ) );
***(press return to proceed or enter x and return to
cancel)********************

col1 | col2
------+------
(0 rows)

***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser3;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
SELECT session_user, current_user;
***(press return to proceed or enter x and return to
cancel)********************

session_user | current_user
--------------+--------------
regressuser3 | regressuser3
(1 row)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+-----
1 | two
1 | two
(2 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:74: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
INSERT INTO atest1 VALUES (2, 'two');
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:75: ERROR: permission denied for relation atest1
***(Single step mode: verify
command)*******************************************
INSERT INTO atest2 VALUES ('foo', true);
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:76: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
INSERT INTO atest1 SELECT 1, b FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:77: ERROR: permission denied for relation atest1
***(Single step mode: verify
command)*******************************************
UPDATE atest1 SET a = 1 WHERE a = 2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:78: ERROR: permission denied for relation atest1
***(Single step mode: verify
command)*******************************************
UPDATE atest2 SET col2 = NULL;
***(press return to proceed or enter x and return to
cancel)********************

UPDATE 1
***(Single step mode: verify
command)*******************************************
UPDATE atest2 SET col2 = NOT col2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:80: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
UPDATE atest2 SET col2 = true WHERE atest1.a = 5;
***(press return to proceed or enter x and return to
cancel)********************

UPDATE 0
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1 FOR UPDATE;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:82: ERROR: permission denied for relation atest1
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest2 FOR UPDATE;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:83: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
DELETE FROM atest2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:84: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
LOCK atest2 IN ACCESS EXCLUSIVE MODE;
***(press return to proceed or enter x and return to
cancel)********************

LOCK TABLE
***(Single step mode: verify
command)*******************************************
COPY atest2 FROM stdin;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:86: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1 WHERE ( b IN ( SELECT col1 FROM atest2 ) );
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:89: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest2 WHERE ( col1 IN ( SELECT b FROM atest1 ) );
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:90: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
COPY atest2 FROM stdin;
***(press return to proceed or enter x and return to
cancel)********************

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+-----
1 | two
1 | two
(2 rows)

***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser3;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
CREATE TABLE atest3 (one int, two int, three int);
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:102: ERROR: relation "atest3" already exists
***(Single step mode: verify
command)*******************************************
GRANT DELETE ON atest3 TO GROUP regressgroup2;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser1;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
SELECT * FROM atest3;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:107: ERROR: permission denied for relation atest3
***(Single step mode: verify
command)*******************************************
DELETE FROM atest3;
***(press return to proceed or enter x and return to
cancel)********************

DELETE 0
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser3;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
CREATE VIEW atestv1 AS SELECT * FROM atest1;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:115: ERROR: relation "atestv1" already exists
***(Single step mode: verify
command)*******************************************
/* The next *should* fail, but it's not implemented that way yet. */
CREATE VIEW atestv2 AS SELECT * FROM atest2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:117: ERROR: relation "atestv2" already exists
***(Single step mode: verify
command)*******************************************
CREATE VIEW atestv3 AS SELECT * FROM atest3;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:118: ERROR: relation "atestv3" already exists
***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+-----
1 | two
1 | two
(2 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:121: ERROR: permission denied for relation atest2
***(Single step mode: verify
command)*******************************************
GRANT SELECT ON atestv1, atestv3 TO regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
GRANT SELECT ON atestv2 TO regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv1;
***(press return to proceed or enter x and return to
cancel)********************

a | b
---+-----
1 | two
1 | two
(2 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:128: ERROR: permission denied for relation atestv2
***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv3;
***(press return to proceed or enter x and return to
cancel)********************

one | two | three
-----+-----+-------
(0 rows)

***(Single step mode: verify
command)*******************************************
CREATE VIEW atestv4 AS SELECT * FROM atestv3;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:131: ERROR: relation "atestv4" already exists
***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv4;
***(press return to proceed or enter x and return to
cancel)********************

one | two | three
-----+-----+-------
(0 rows)

***(Single step mode: verify
command)*******************************************
GRANT SELECT ON atestv4 TO regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv3;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:139: ERROR: permission denied for relation atestv3
***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv4;
***(press return to proceed or enter x and return to
cancel)********************

one | two | three
-----+-----+-------
(0 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atest2;
***(press return to proceed or enter x and return to
cancel)********************

col1 | col2
------+------
bar |
bar | t
(2 rows)

***(Single step mode: verify
command)*******************************************
SELECT * FROM atestv2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:143: ERROR: permission denied for relation atest2
You are now connected to database "regression".
***(Single step mode: verify
command)*******************************************
REVOKE ALL PRIVILEGES ON LANGUAGE sql FROM PUBLIC;
***(press return to proceed or enter x and return to
cancel)********************

REVOKE
***(Single step mode: verify
command)*******************************************
GRANT USAGE ON LANGUAGE sql TO regressuser1;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
GRANT USAGE ON LANGUAGE c TO PUBLIC;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:153: ERROR: language "c" is not trusted
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser1;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
GRANT USAGE ON LANGUAGE sql TO regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:156: ERROR: permission denied for language sql
***(Single step mode: verify
command)*******************************************
CREATE FUNCTION testfunc1(int) RETURNS int AS 'select 2 * $1;' LANGUAGE sql;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:157: ERROR: function "testfunc1" already exists with
same argument types
***(Single step mode: verify
command)*******************************************
CREATE FUNCTION testfunc2(int) RETURNS int AS 'select 3 * $1;' LANGUAGE sql;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:158: ERROR: function "testfunc2" already exists with
same argument types
***(Single step mode: verify
command)*******************************************
REVOKE ALL ON FUNCTION testfunc1(int), testfunc2(int) FROM PUBLIC;
***(press return to proceed or enter x and return to
cancel)********************

REVOKE
***(Single step mode: verify
command)*******************************************
GRANT EXECUTE ON FUNCTION testfunc1(int), testfunc2(int) TO regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
GRANT USAGE ON FUNCTION testfunc1(int) TO regressuser3;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:162: ERROR: invalid privilege type USAGE for function
***(Single step mode: verify
command)*******************************************
GRANT ALL PRIVILEGES ON FUNCTION testfunc1(int) TO regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
GRANT ALL PRIVILEGES ON FUNCTION testfunc_nosuch(int) TO regressuser4;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:164: ERROR: function testfunc_nosuch(integer) does not
exist
***(Single step mode: verify
command)*******************************************
CREATE FUNCTION testfunc4(boolean) RETURNS text
AS 'select col1 from atest2 where col2 = $1;'
LANGUAGE sql SECURITY DEFINER;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:168: ERROR: function "testfunc4" already exists with
same argument types
***(Single step mode: verify
command)*******************************************
GRANT EXECUTE ON FUNCTION testfunc4(boolean) TO regressuser3;
***(press return to proceed or enter x and return to
cancel)********************

GRANT
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser2;
***(press return to proceed or enter x and return to
cancel)********************

SET
***(Single step mode: verify
command)*******************************************
SELECT testfunc1(5), testfunc2(5);
***(press return to proceed or enter x and return to
cancel)********************

testfunc1 | testfunc2
-----------+-----------
10 | 15
(1 row)

***(Single step mode: verify
command)*******************************************
CREATE FUNCTION testfunc3(int) RETURNS int AS 'select 2 * $1;' LANGUAGE sql;
***(press return to proceed or enter x and return to
cancel)********************

psql:privileges.sql:173: ERROR: function "testfunc3" already exists with
same argument types
***(Single step mode: verify
command)*******************************************
SET SESSION AUTHORIZATION regressuser3;
***(press return to proceed or enter x and return to
cancel)********************
x
***(Single step mode: verify
command)*******************************************
SELECT testfunc1(5);
***(press return to proceed or enter x and return to
cancel)********************
regression=> select? ?? ?? ?? ?? ?? ????\?~d? ?? ?d? ?c regression ler
You are now connected to database "regression" as user "ler".
regression=# select * from pg_language;
***(Single step mode: verify
command)*******************************************
select * from pg_language;
***(press return to proceed or enter x and return to
cancel)********************

lanname | lanispl | lanpltrusted | lanplcallfoid | lanvalidator |
lanacl
----------+---------+--------------+---------------+--------------+--------
--------------------------
internal | f | f | 0 | 2246 |
c | f | f | 0 | 2247 |
plpgsql | t | t | 2218642 | 0 |
sql | f | t | 0 | 2248 |
{=U/postgres,regressuser1=U/ler}
(4 rows)

regression=# select * from pg_shadow;
***(Single step mode: verify
command)*******************************************
select * from pg_shadow;
***(press return to proceed or enter x and return to
cancel)********************

usename | usesysid | usecreatedb | usesuper | usecatupd |
passwd | valuntil | useconfig
--------------+----------+-------------+----------+-----------+------------
-------------------------+----------+-----------
horde | 407 | t | f | f |
md5789761213b76339cb1da715d0c51d888 | |
ler | 101 | t | t | t |
md5dc936a84fbec3cdca4209c15f1ce424d | |
mrm | 401 | t | f | f |
md59a6f9a2291c2b99dfa7794167f6f90e5 | |
cph | 151 | t | f | f |
md56f213a50183cb0b5b503391c96061751 | |
nobody | 403 | f | f | f |
md5eaa50fc990ef9147accb04fd39c69263 | |
ed | 402 | t | f | f |
md56d10f55bec241097be543d50441902a4 | |
webmail | 404 | t | f | f |
md5939853e11c511400d5709c547287a8a9 | |
tipnet | 405 | t | f | f |
md5ceba6024d54ca3d68647dae1cd58222a | |
nagios | 408 | f | f | f |
md5d36bbc9979deee7cca850e582b9a8e18 | |
webcal | 409 | f | f | f |
md5e736e686ce964baaa81ec18583f06921 | |
bric | 413 | f | f | f |
md55a71606fd33d3e92229ce73ad6c3f408 | |
ohp | 410 | t | f | f |
md59276c229c3c21fdc944a7532db499a01 | |
root | 411 | t | t | t |
md5a54504778e2f7c06d13e420bca278b16 | |
rt_user | 412 | f | f | f |
md5e5ffbd5626278386cfa50d801ce24517 | |
regressuser1 | 414 | f | f | f |
| |
postgres | 1 | t | t | t |
md51a4c61baf99fb9be1b8763c70f4304e7 | |
regressuser2 | 415 | f | f | f |
| |
regressuser3 | 416 | f | f | f |
| |
regressuser4 | 417 | f | f | f |
| |
(19 rows)

regression=# select *? ?current_user session_user;???????????????[1@,
***(Single step mode: verify
command)*******************************************
select current_user, session_user;
***(press return to proceed or enter x and return to
cancel)********************

current_user | session_user
--------------+--------------
ler | ler
(1 row)

regression=# \q
$

script done on Sat Oct 25 16:36:56 2003

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

#62Johan Henselmans
johan@netsense.nl
In reply to: Bruce Momjian (#1)
Re: Call for port reports

On 24-okt-03, at 17:37, Bruce Momjian wrote:

It is time for people to report their port testing. Please test
against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-
platforms.html

-- 
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.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 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to
majordomo@postgresql.org)

I had trouble compiling postgressrc/pgsql/src/interfaces/ecpg/ecpglib
and compiling pgsql/src/interfaces/ecpg/compatlib.

Reason was I had asked during configure to include krb5 support. After
adding the -lkrb5 flag to the Makefile in these subdirectories,
everyting went fine.

My configure options:

export JAVA_HOME=/usr
export
PATH=/usr/local/bin:$PATH:/Developer/Java/J2EE/apache-ant-1.5.3/bin

./configure --bindir=/usr/local/bin --mandir=/usr/local/share/man/
--enable-recode --enable-odbc --enable-syslog
--enable-unicode-conversion --enable-multibyte --with-CXX
--enable-python --with-java --with-krb5=/usr --with-rendezvous
--with-openssl=/usr/include/openssl

uname -a:
Darwin albatros.nest.nl 7.0.0 Darwin Kernel Version 7.0.0: Wed Sep 24
15:48:39 PDT 2003; root:xnu/xnu-517.obj~1/RELEASE_PPC Power Macintosh
powerpc

-johan

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852

#63Kevin Brown
kevin@sysexperts.com
In reply to: Bruce Momjian (#54)
Re: Call for port reports

Bruce Momjian wrote:

How does everyone like this patch? It removes -g from non-debug
compiles, and changes -O2 to -O for FreeBSD/Alpha.

I'd be hesitant to remove -g from non-debug compiles. If something
crashes, it's useful to be able to get a good stacktrace from the
resulting core file. The -g option makes that possible for optimized
code when compiling with gcc.

Is there any way we can have configure put -g in when it detects gcc?

--
Kevin Brown kevin@sysexperts.com

#64Andrew Dunstan
andrew@dunslane.net
In reply to: Peter Eisentraut (#60)
Re: Call for port reports

Peter Eisentraut wrote:

Kurt Roeckx writes:

configure: using CFLAGS=-g -O2 -fno-strict-aliasing
checking whether the C compiler still works... no
configure: error: cannot proceed
oink% gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
gcc version 2.8.1

CFLAGS="-g -O2" ./configure --without-readline

I've installed a detection logic that finds out whether
-fno-strict-aliasing works. Please give it a quick run through, then we
check this platform off.

I thought we'd have to do this in the end, although that is quite an old
version of gcc!

cheers

andrew

#65Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#14)
Re: Call for port reports

After CVS update for optimization flags:

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------
Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK:

FreeBSD 4.8-RELEASE alpha

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

--
Peter Eisentraut peter_e@gmx.net

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#66Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#26)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK after the recent pthread.h patch:

NetBSD 1.6 (GENERIC) i386

However, the compile pointed out that in src/interfaces/libpq/fe-auth.c
line 472, variable "cmsg" is unused; and indeed it seems to be right.
Bruce, you worked most often on the peer authentication code, so maybe you
can check that.

--
Peter Eisentraut peter_e@gmx.net

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#67Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#31)
Re: Call for port reports

I can't certify the following platform because it doesn't recognize our
spinlock code. Would you run src/tools/ccsym and report back the
symbols you have. Do you not have __powerpc__ defined?

The actual test in s_lock.h is:

#if defined(__ppc__) || defined(__powerpc__) || defined(__powerpc64__)

but src/include/port/linux.h only tests for the last two --- this is a
mismatch we are going to clean up for 7.5, but I need to know what your
compiler defines.

---------------------------------------------------------------------------

No���l K���the wrote:
-- Start of PGP signed section.

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

here are some build reports. Its all on Debian GNU/Linux with different
architectures:

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@bruckner:~/pgsql$ uname -a
Linux bruckner 2.4.21 #1 Don Aug 28 15:18:52 CEST 2003 ppc GNU/Linux

---------------------------------------------------------------------

In file included from ../../../../src/include/storage/spin.h:50,
from xlog.c:37:
../../../../src/include/storage/s_lock.h:543:2: #error This platform does not support native spinlocks. To continue the compile, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org.
make[4]: *** [xlog.o] Error 1
make[4]: Leaving directory `/home/noel/pgsql/src/backend/access/transam'
make[3]: *** [transam-recursive] Error 2
make[3]: Leaving directory `/home/noel/pgsql/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/noel/pgsql/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/noel/pgsql/src'
make: *** [all] Error 2
noel@paer:~/pgsql$ uname -a
Linux paer 2.4.20-64 #1 Fri Aug 1 23:40:10 UTC 2003 parisc64 GNU/Linux

rebuild with --disable-spinlocks

...
transactions ... ok
random ... failed (ignored)
portals ... ok
...
==================================================
92 of 93 tests passed, 1 failed test(s) ignored.
==================================================

The differences that caused some tests to fail can be viewed in the
file `./regression.diffs'. A copy of the test summary that you see
above is saved in the file `./regression.out'.

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@paer:~/pgsql$ uname -a
Linux paer 2.4.20-64 #1 Fri Aug 1 23:40:10 UTC 2003 parisc64 GNU/Linux

this is regression.diffs:

*** ./expected/random.out       Thu Feb 13 05:24:04 2003
--- ./results/random.out        Fri Oct 24 22:19:29 2003
***************
*** 31,35 ****
WHERE random NOT BETWEEN 80 AND 120;
random
--------
! (0 rows)
--- 31,36 ----
WHERE random NOT BETWEEN 80 AND 120;
random
--------
!     122
! (1 row)
-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#68Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#31)
Re: Call for port reports

Would someone help me getting this persons name into SGML?

No?l K?the <noel@debian.org>

I am not sure how to transfer that encoding into SGML.

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
(sid)noel@debussy:~/postgresql-cvs/pgsql$ uname -a
Linux debussy 2.4.19-netwinder #1 Thu Mar 20 03:14:34 CET 2003 armv4l GNU/Linux

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

--------------------------------------------------------------------------

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@merulo:~/pgsql$ uname -a
Linux merulo 2.4.18-itanium-smp #1 SMP Sat Nov 23 01:39:07 MST 2002 ia64 GNU/Linux

Updated.

----------------------------------------------------------------------------

...
transactions ... ok
random ... failed (ignored)
portals ... ok
...
==================================================
92 of 93 tests passed, 1 failed test(s) ignored.
==================================================

The differences that caused some tests to fail can be viewed in the
file `./regression.diffs'. A copy of the test summary that you see
above is saved in the file `./regression.out'.

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
(unstable)noel@raptor:~/pgsql$ uname -a
Linux raptor 2.4.19 #1 SMP Fri Nov 29 23:53:27 CET 2002 s390 GNU/Linux

Updated.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#69Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#67)
Re: Call for port reports

Bruce Momjian writes:

I can't certify the following platform because it doesn't recognize our
spinlock code. Would you run src/tools/ccsym and report back the
symbols you have. Do you not have __powerpc__ defined?

The way I read his report (a little tricky to find the divisions) is that
ppc has passed and parisc64 doesn't have spinlock code, which sounds a
lot more credible.

--
Peter Eisentraut peter_e@gmx.net

#70Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#37)
1 attachment(s)
Re: Call for port reports

No���l K���the wrote:
-- Start of PGP signed section.

Am Sa, den 25.10.2003 schrieb No?l K?the um 01:17:

reports of these slower systems will follow but they need a bit more time:

Linux casals 2.4.19-r4k-ip22 #1 Tue Mar 18 15:38:10 CET 2003 mips unknown

polymorphism ... ok
stats ... ok
============== shutting down postmaster ==============

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
noel@casals:~/postgresql-cvs/pgsql$ uname -a
Linux casals 2.4.19-r4k-ip22 #1 Tue Mar 18 15:38:10 CET 2003 mips GNU/Linux

Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k unknown

gcc -g -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -D_GNU_SOURCE -c -o xlog.o xlog.c
In file included from ../../../../src/include/storage/spin.h:50,
from xlog.c:37:
../../../../src/include/storage/s_lock.h:543:2: #error This platform does not support native spinlocks. To continue the compile, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org.
make[4]: *** [xlog.o] Error 1
make[4]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/backend/access/transam'

OK, this port has the same problem with the include/port/*.h files not
matching the s_lock.h files. I knew this would bite us but we didn't
want to risk a reorganization during beta.

The following patch has been applied and should allow m68k to work ---
please report back.

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

Attachments:

/bjm/difftext/plainDownload
Index: src/include/port/linux.h
===================================================================
RCS file: /cvsroot/pgsql-server/src/include/port/linux.h,v
retrieving revision 1.35
diff -c -c -r1.35 linux.h
*** src/include/port/linux.h	26 Sep 2003 17:39:13 -0000	1.35
--- src/include/port/linux.h	26 Oct 2003 00:24:27 -0000
***************
*** 43,46 ****
--- 43,51 ----
  
  #define HAS_TEST_AND_SET
  
+ #elif defined(__m68k__)
+ typedef unsigned char slock_t;
+ 
+ #define HAS_TEST_AND_SET
+ 
  #endif
#71Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#68)
Re: Call for port reports

Bruce Momjian writes:

Would someone help me getting this persons name into SGML?

No?l K?the <noel@debian.org>

I am not sure how to transfer that encoding into SGML.

No&egrave;l K&ouml;the

--
Peter Eisentraut peter_e@gmx.net

#72Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Hans-Jürgen Schönig (#40)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

Again, I need help converting this name to SGML.

---------------------------------------------------------------------------

Hans-J���rgen Sch���nig wrote:

Regression testing on AIX 5 using 7.4beta5:

polymorphism ... ok
stats ... ok
============== shutting down postmaster ==============

======================
All 93 tests passed.
======================

bash-2.05$ uname -a
AIX sn2 1 5 0044276A4C00

checking build system type... powerpc-ibm-aix5.1.0.0
checking host system type... powerpc-ibm-aix5.1.0.0
checking which template to use... aix

bash-2.05$ gcc -v
Reading specs from
/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix43-010414/specs
gcc version 2.9-aix43-010414

Good work :)

Hans

--
Cybertec Geschwinde u Schoenig
Ludo-Hartmannplatz 1/14, A-1160 Vienna, Austria
Tel: +43/2952/30706 or +43/660/816 40 77
www.cybertec.at, www.postgresql.at, kernel.cybertec.at

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#73Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Dave Page (#41)
Re: Call for port reports

Dave Page wrote:

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: 24 October 2003 16:38
To: PostgreSQL-development
Subject: [HACKERS] Call for port reports

It is time for people to report their port testing. Please
test against current CVS or beta5 and report your 'uname -a'.

Cygwin
======

Parallel regression tests do not complete (we normally have problems
with these anyway, though they do normally complete).

Serial tests pass.

CYGWIN_NT-5.1 pc30 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown
Cygwin

Uh, I am not inclined to mark the port as OK if the parallel regression
tests fail --- what is the cause?

Win32 Client
============

(Windows XP Pro, VC++ 6.0)

C:\cygwin\usr\local\src\postgresql-7.4beta5\src>nmake /f win32.mak ALL

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cd include
if not exist pg_config.h copy pg_config.h.win32 pg_config.h
cd ..
cd interfaces\libpq
nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Building the Win32 static library...

cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nma02744.
getaddrinfo.c
..\..\include\c.h(66) : fatal error C1083: Cannot open include file:
'strings.h'
: No such file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' :
return co
de '0x2'
Stop.

I am confused why strings.h is being included because there is a test
around it:

#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif

Any ideas?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#74Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#43)
Re: Call for port reports

No���l K���the wrote:
-- Start of PGP signed section.

Am Sa, den 25.10.2003 schrieb No?l K?the um 01:17:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

here are some build reports. Its all on Debian GNU/Linux with different
architectures:

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@pergolesi:~/pgsql$ uname -a
Linux pergolesi 2.4.22 #1 SMP Mon Aug 25 20:56:25 CEST 2003 i686 GNU/Linux

It says i686 but its AMD Opteron:

noel@pergolesi:~/pgsql$ cat /proc/cpuinfo |more
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 5
model name : AMD Opteron(tm) Processor 240
stepping : 1
cpu MHz : 1394.299
cache size : 1024 KB
...

I am confused how to handle this. Is this running in 32-bit mode? I am
inclined to mention Opteron only when tested in 64-bit mode, because I
think we all assume a 32-bit Opteron is the same as a standard
AMD/Intel. Does uname report differently in 64-bit mode.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#75Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Kurt Roeckx (#44)
Re: Call for port reports

I am confused by your report. I have success from Solaris kernel 5.8.
I see 2.6 mentioned, and I know there is Solaris 7-9. What does uname
-a show?

---------------------------------------------------------------------------

Kurt Roeckx wrote:

On Fri, Oct 24, 2003 at 11:37:32AM -0400, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

checking build system type... i386-pc-solaris2.6
checking host system type... i386-pc-solaris2.6
checking which template to use... solaris
[...]
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
[...]
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
configure: using CFLAGS=-g -O2 -fno-strict-aliasing
checking whether the C compiler still works... no
configure: error: cannot proceed
oink% gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
gcc version 2.8.1

CFLAGS="-g -O2" ./configure --without-readline
[...]
======================
All 93 tests passed.
======================

Kurt

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#76Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#46)
Re: Call for port reports

No���l K���the wrote:
-- Start of PGP signed section.

Am Sa, den 25.10.2003 schrieb Kurt Roeckx um 13:48:

Linux pergolesi 2.4.22 #1 SMP Mon Aug 25 20:56:25 CEST 2003 i686 GNU/Linux

It says i686 but its AMD Opteron:

Just wondering, but does it run in 32 or 64 bit mode? I have a
feeling it's only 32 bit mode ... Is it compiled for the i386 or
the x86_64 arch? Did you have CONFIG_X86_64=y as compile time
option?

Yes, you are right. Its "only" 32bit (kernel and userland). The Debian
amd64 port team is still working on 64bit packages.

OK, I don't think we will mention 32-bit Opteron separately --- it could
probably cause confusion if we didn't mention it for all platforms.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#77Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#70)
Re: Call for port reports

Bruce Momjian writes:

The following patch has been applied and should allow m68k to work ---
please report back.

Won't work. Please see his last mail for the right patch.

--
Peter Eisentraut peter_e@gmx.net

#78Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#51)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

In fact, another question is why this alpha test is only done in
freebsd?

Ask that to the maintainers of the FreeBSD system compiler.

Certainly other alpha gcc platforms must have problems with -O2?
I am inclined to add something to configure.in for all alpha compiles
that changes -O2 to -O.

I'm not. It's one thing if FreeBSD thinks their compiler is broken. But
before I accept that gcc is broken as a whole, I want to hear from the GCC
folks.

We might get more gcc -O2 alpha warning reports now that we use -O2 by
default --- let's see.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#79Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#73)
Re: Call for port reports

Bruce Momjian writes:

Uh, I am not inclined to mark the port as OK if the parallel regression
tests fail --- what is the cause?

They always have been on Cygwin. This platform just can't handle that
many parallel connections.

--
Peter Eisentraut peter_e@gmx.net

#80Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#55)
Re: Call for port reports

Peter Eisentraut wrote:

Peter Eisentraut writes:

FreeBSD 4.8-RELEASE alpha

BUT: The default CFLAGS are set by configure to -O2, although the template
wants -O. I manually modified the CFLAGS to -O after configure.

I've committed a fix for the CFLAGS handling, and now this platform works
perfectly.

Your approach looks good. You decided to allow template to set the
CFLAGS, and if it doesn't, make it -O2/-O. That is a very clean
approach.

I had the idea of layering the flags so template would only _add_ to
CFLAGS, but your way is clearer.

One other idea would be to set CFLAGS to "" before including template,
and just test to see if it is still "" after --- that might be cleaner
than saving the original value and comparing.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#81Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#57)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------
Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

After the just-committed fix, Tru64 5.1 alpha is OK with both cc and gcc.

--
Peter Eisentraut peter_e@gmx.net

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#82Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#59)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

m68k patch already applied.

---------------------------------------------------------------------------

No���l K���the wrote:
-- Start of PGP signed section.

Am Sa, den 25.10.2003 schrieb No?l K?the um 01:17:

reports of these slower systems will follow but they need a bit more time:

Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k unknown

Peter gave me this patch for m68k:

-- src/include/port/linux.h.orig       Sat Oct 25 13:45:44 2003
+++ src/include/port/linux.h    Sat Oct 25 12:21:41 2003
@@ -45,3 +45,8 @@

#endif

+#if defined(__mc68000__)
+#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
+#endif
+

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
(unstable)noel@crest:~/postgresql-cvs/pgsql$ uname -a
Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k GNU/Linux

Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@escher:~/pgsql$ uname -a
Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

--

No?l K?the <noel@debian.org>

Debian GNU/Linux, www.debian.org

-- End of PGP section, PGP failed!

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#83Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#59)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

m68k patch already applied.

---------------------------------------------------------------------------

No���l K���the wrote:
-- Start of PGP signed section.

Am Sa, den 25.10.2003 schrieb No?l K?the um 01:17:

reports of these slower systems will follow but they need a bit more time:

Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k unknown

Peter gave me this patch for m68k:

-- src/include/port/linux.h.orig       Sat Oct 25 13:45:44 2003
+++ src/include/port/linux.h    Sat Oct 25 12:21:41 2003
@@ -45,3 +45,8 @@

#endif

+#if defined(__mc68000__)
+#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
+#endif
+

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/postgresql-cvs/pgsql/src/test'
(unstable)noel@crest:~/postgresql-cvs/pgsql$ uname -a
Linux crest 2.4.20 #1 Wed Mar 5 01:39:17 EST 2003 m68k GNU/Linux

Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@escher:~/pgsql$ uname -a
Linux escher 2.4.22 #2 Sat Sep 6 18:23:54 CEST 2003 alpha GNU/Linux

--

No?l K?the <noel@debian.org>

Debian GNU/Linux, www.debian.org

-- End of PGP section, PGP failed!

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#84Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Kevin Brown (#63)
Re: Call for port reports

Kevin Brown wrote:

Bruce Momjian wrote:

How does everyone like this patch? It removes -g from non-debug
compiles, and changes -O2 to -O for FreeBSD/Alpha.

I'd be hesitant to remove -g from non-debug compiles. If something
crashes, it's useful to be able to get a good stacktrace from the
resulting core file. The -g option makes that possible for optimized
code when compiling with gcc.

Is there any way we can have configure put -g in when it detects gcc?

Even without -g, you still get function names in the backtrace. The
only time you don't get this is when you strip the executable. -g adds
the function line number.

configure --enable-debug will use -g for the compile, and with
optimization. We aren't changing that, we are only preventing -g by
default. Most installers are stripping the executables anyway --- this
might discourage them from doing that.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#85Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#31)
Re: Call for port reports

No���l K���the wrote:
-- Start of PGP signed section.

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

here are some build reports. Its all on Debian GNU/Linux with different
architectures:

======================
All 93 tests passed.
======================

rm regress.o
make[2]: Leaving directory `/home/noel/pgsql/src/test/regress'
make[1]: Leaving directory `/home/noel/pgsql/src/test'
noel@bruckner:~/pgsql$ uname -a
Linux bruckner 2.4.21 #1 Don Aug 28 15:18:52 CEST 2003 ppc GNU/Linux

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#86Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#69)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

I can't certify the following platform because it doesn't recognize our
spinlock code. Would you run src/tools/ccsym and report back the
symbols you have. Do you not have __powerpc__ defined?

The way I read his report (a little tricky to find the divisions) is that
ppc has passed and parisc64 doesn't have spinlock code, which sounds a
lot more credible.

Oh, I see now --- sorry.

Wow, I looked in hpux.h and saw:

#if defined(__hppa)

#define HAS_TEST_AND_SET
typedef struct
{
int sema[4];
} slock_t;

#ifndef BYTE_ORDER
#define BYTE_ORDER BIG_ENDIAN
#endif

and I see in s_lock.h:

#if defined(__hppa)
/*
* HP's PA-RISC
*
* Note that slock_t on PA-RISC is a structure instead of char
* (see include/port/hpux.h).
*
* a "set" slock_t has a single word cleared. a "clear" slock_t has
* all words set to non-zero. tas() is in tas.s
*/

#define S_UNLOCK(lock) \
do { \
volatile slock_t *lock_ = (volatile slock_t *) (lock); \
lock_->sema[0] = -1; \
lock_->sema[1] = -1; \
lock_->sema[2] = -1; \
lock_->sema[3] = -1; \
} while (0)

#define S_LOCK_FREE(lock) ( *(int *) (((long) (lock) + 15) & ~15) != 0)

#endif /* __hppa */

Can Linux handle this? Can you copy the stuff from hpux.h and see if
that works for Linux?

We can't mark this port as working unless we have spinlocks.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#87Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#71)
Re: Call for port reports

Thanks. SGML updated.

---------------------------------------------------------------------------

Peter Eisentraut wrote:

Bruce Momjian writes:

Would someone help me getting this persons name into SGML?

No?l K?the <noel@debian.org>

I am not sure how to transfer that encoding into SGML.

No&egrave;l K&ouml;the

--
Peter Eisentraut peter_e@gmx.net

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#88Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Peter Eisentraut (#77)
Re: Call for port reports

Peter Eisentraut wrote:

Bruce Momjian writes:

The following patch has been applied and should allow m68k to work ---
please report back.

Won't work. Please see his last mail for the right patch.

Got it --- applied --- __mc68000__.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#89Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Dave Page (#41)
Re: Call for port reports

Dave Page wrote:

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: 24 October 2003 16:38
To: PostgreSQL-development
Subject: [HACKERS] Call for port reports

It is time for people to report their port testing. Please
test against current CVS or beta5 and report your 'uname -a'.

Cygwin
======

Parallel regression tests do not complete (we normally have problems
with these anyway, though they do normally complete).

Serial tests pass.

CYGWIN_NT-5.1 pc30 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown
Cygwin

Cygwin marked as completed by Peter. Thanks.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#90Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Christopher Browne (#29)
Re: Call for port reports

Impressive. We already have a long list of supported 7.4 platforms, all
in 24 hours!

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#91Noèl Köthe
noel@debian.org
In reply to: Bruce Momjian (#68)
Re: Call for port reports

Am So, den 26.10.2003 schrieb Bruce Momjian um 02:20:

(unstable)noel@raptor:~/pgsql$ uname -a
Linux raptor 2.4.19 #1 SMP Fri Nov 29 23:53:27 CET 2002 s390 GNU/Linux

Updated.

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

Thx. Just a minor thing. The version of s/390 should be 7.4 and not 7.3.
(maybe the same with OpenBSD/x86?)

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

#92Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Peter Eisentraut (#8)
Re: Call for port reports

I should mention that I don't have access to a FreeBSD Alpha box anymore
:( Hence, I have no idea if it currently compiles or not.

Chris

Peter Eisentraut wrote:

Show quoted text

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

FreeBSD svr1.postgresql.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Sat Sep 20 14:41:58 ADT 2003 i386

In reply to: Bruce Momjian (#75)
Re: Call for port reports

On Sat, Oct 25, 2003 at 08:42:36PM -0400, Bruce Momjian wrote:

I am confused by your report. I have success from Solaris kernel 5.8.
I see 2.6 mentioned, and I know there is Solaris 7-9. What does uname
-a show?

SunOS oink 5.6 Generic_105182-09 i86pc i386 i86pc

Which is the same as Solaris 2.6.

Kurt

#94Dave Page
dpage@vale-housing.co.uk
In reply to: Peter Eisentraut (#79)
Re: Call for port reports

It's rumoured that Peter Eisentraut once said:

Bruce Momjian writes:

Uh, I am not inclined to mark the port as OK if the parallel
regression tests fail --- what is the cause?

They always have been on Cygwin. This platform just can't handle that
many parallel connections.

Previously though that just resulted in a few failed tests - the run
always completed. This time I'm seeing it hang at some random point in the
tests. The one difference between now and when I've run tests previously
is that I'm now running a centrino laptop.
I'll see if I can spend some more time on it later, though I have a very
large project going live on Monday so finding time might be tricky :-(
Regards, Dave.

#95Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Noèl Köthe (#91)
Re: Call for port reports

No���l K���the wrote:
-- Start of PGP signed section.

Am So, den 26.10.2003 schrieb Bruce Momjian um 02:20:

(unstable)noel@raptor:~/pgsql$ uname -a
Linux raptor 2.4.19 #1 SMP Fri Nov 29 23:53:27 CET 2002 s390 GNU/Linux

Updated.

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

Thx. Just a minor thing. The version of s/390 should be 7.4 and not 7.3.
(maybe the same with OpenBSD/x86?)

Yep, fixed, and Freebsd/alpha too.
-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#96Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Christopher Kings-Lynne (#92)
Re: Call for port reports

Christopher Kings-Lynne wrote:

I should mention that I don't have access to a FreeBSD Alpha box anymore
:( Hence, I have no idea if it currently compiles or not.

No problem --- Peter go it.

Chris

Peter Eisentraut wrote:

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

FreeBSD svr1.postgresql.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Sat Sep 20 14:41:58 ADT 2003 i386

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#97Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Kurt Roeckx (#93)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

Should I mention Solaris as 2.6 or 5.6?

---------------------------------------------------------------------------

Kurt Roeckx wrote:

On Sat, Oct 25, 2003 at 08:42:36PM -0400, Bruce Momjian wrote:

I am confused by your report. I have success from Solaris kernel 5.8.
I see 2.6 mentioned, and I know there is Solaris 7-9. What does uname
-a show?

SunOS oink 5.6 Generic_105182-09 i86pc i386 i86pc

Which is the same as Solaris 2.6.

Kurt

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#98Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Dave Page (#94)
Re: Call for port reports

Dave Page wrote:

It's rumoured that Peter Eisentraut once said:

Bruce Momjian writes:

Uh, I am not inclined to mark the port as OK if the parallel
regression tests fail --- what is the cause?

They always have been on Cygwin. This platform just can't handle that
many parallel connections.

Previously though that just resulted in a few failed tests - the run
always completed. This time I'm seeing it hang at some random point in the
tests. The one difference between now and when I've run tests previously
is that I'm now running a centrino laptop.
I'll see if I can spend some more time on it later, though I have a very
large project going live on Monday so finding time might be tricky :-(
Regards, Dave.

No problem --- the port is already marked as working --- this is a known
problem with the parallel tests.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
In reply to: Bruce Momjian (#97)
Re: Call for port reports

On Sun, Oct 26, 2003 at 08:27:10AM -0500, Bruce Momjian wrote:

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

Should I mention Solaris as 2.6 or 5.6?

Normally you speak about Solaris 2.5, 2.6, 7, 8 and 9.
Which are also known as SunOS 5.5, 5.6, 5.7, 5.8 and 5.9.

Either number will probably.

PS: My 2.6/5.6 was on x86 hardware, not on a sparc.

Kurt

#100Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Kurt Roeckx (#99)
Re: Call for port reports

Kurt Roeckx wrote:

On Sun, Oct 26, 2003 at 08:27:10AM -0500, Bruce Momjian wrote:

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

Should I mention Solaris as 2.6 or 5.6?

Normally you speak about Solaris 2.5, 2.6, 7, 8 and 9.
Which are also known as SunOS 5.5, 5.6, 5.7, 5.8 and 5.9.

Either number will probably.

PS: My 2.6/5.6 was on x86 hardware, not on a sparc.

Oh! Thanks. Updated.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#101Dave Page
dpage@vale-housing.co.uk
In reply to: Bruce Momjian (#100)
Re: Call for port reports

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: 26 October 2003 13:29
To: Dave Page
Cc: peter_e@gmx.net; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Call for port reports

Previously though that just resulted in a few failed tests

- the run

always completed. This time I'm seeing it hang at some

random point in

the tests. The one difference between now and when I've run tests
previously is that I'm now running a centrino laptop.
I'll see if I can spend some more time on it later, though I have a
very large project going live on Monday so finding time might be
tricky :-( Regards, Dave.

No problem --- the port is already marked as working --- this
is a known problem with the parallel tests.

No it's not, that's what I'm saying. Normally the tests finish with a
few failures (because Cygwin can't create enough sockets). I'm seeing a
full blown hang.

Regards, Dave.

#102Dave Page
dpage@vale-housing.co.uk
In reply to: Dave Page (#101)
Re: Call for port reports

-----Original Message-----
From: Dave Page
Sent: 26 October 2003 17:34
To: Bruce Momjian
Cc: peter_e@gmx.net; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Call for port reports

No problem --- the port is already marked as working --- this is a
known problem with the parallel tests.

No it's not, that's what I'm saying. Normally the tests
finish with a few failures (because Cygwin can't create
enough sockets). I'm seeing a full blown hang.

OK, cleaned up and rebuilt & it looks OK now (well, as OK as it ever
does on XP Pro).

Regards, Dave.

#103Tilo Schwarz
mail@tilo-schwarz.de
In reply to: Bruce Momjian (#1)
Re: Call for port reports / test horology FAILED

Hi together, keep on the nice work!

On SuSE 8.0,

uname -a

Linux dell 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown

During compile I got the following warning:
gcc -g -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../src/include -D_GNU_SOURCE -c trigger.c -o
trigger.o
/tmp/ccgcppC9.s: Assembler messages:
/tmp/ccgcppC9.s:2014: Warning: using `%si' instead of `%esi' due to `w' suffix
/tmp/ccgcppC9.s:2014: Warning: using `%ax' instead of `%eax' due to `w' suffix

as -v

GNU assembler version 2.11.92.0.10 (i486-suse-linux) using BFD version
2.11.92.0.10 20011021 (SuSE)

gcc -v

Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)

I get the this failure (...something to do with the change to winter time last
night?):

test horology ... FAILED, diff follows.

Bye,

Tilo

cat src/test/regress/regression.diffs

*** ./expected/horology.out     Thu Sep 25 08:58:06 2003
--- ./results/horology.out      Sun Oct 26 22:54:56 2003
***************
*** 583,595 ****
  SELECT (timestamp with time zone 'today' = (timestamp with time zone 
'tomorrow' - interval '1 day')) as "True";
   True
  ------
!  t
  (1 row)

SELECT (timestamp with time zone 'tomorrow' = (timestamp with time zone
'yesterday' + interval '2 days')) as "True";
True
------
! t
(1 row)

  SELECT (timestamp with time zone 'tomorrow' > 'now') as "True";
--- 583,595 ----
  SELECT (timestamp with time zone 'today' = (timestamp with time zone 
'tomorrow' - interval '1 day')) as "True";
   True
  ------
!  f
  (1 row)

SELECT (timestamp with time zone 'tomorrow' = (timestamp with time zone
'yesterday' + interval '2 days')) as "True";
True
------
! f
(1 row)

  SELECT (timestamp with time zone 'tomorrow' > 'now') as "True";
***************
*** 836,842 ****
              + interval '02:01' AS time with time zone) AS time) AS 
"03:31:00";
   03:31:00
  ----------
!  03:31:00
  (1 row)
  SELECT CAST(cast(date 'today' + time with time zone '03:30'
--- 836,842 ----
              + interval '02:01' AS time with time zone) AS time) AS 
"03:31:00";
   03:31:00
  ----------
!  02:31:00
  (1 row)

SELECT CAST(cast(date 'today' + time with time zone '03:30'

======================================================================

*** ./expected/random.out       Thu Feb 13 06:24:04 2003
--- ./results/random.out        Sun Oct 26 22:55:01 2003
***************
*** 25,31 ****
    GROUP BY random HAVING count(random) > 1;
   random | count
  --------+-------
! (0 rows)
  SELECT random FROM RANDOM_TBL
    WHERE random NOT BETWEEN 80 AND 120;
--- 25,32 ----
    GROUP BY random HAVING count(random) > 1;
   random | count
  --------+-------
!     113 |     2
! (1 row)

SELECT random FROM RANDOM_TBL
WHERE random NOT BETWEEN 80 AND 120;

======================================================================

#104Andrew Dunstan
andrew@dunslane.net
In reply to: Dave Page (#102)
Re: Call for port reports

----- Original Message -----
From: "Dave Page" <dpage@vale-housing.co.uk>
To: "Bruce Momjian" <pgman@candle.pha.pa.us>
Cc: <peter_e@gmx.net>; <pgsql-hackers@postgresql.org>
Sent: Sunday, October 26, 2003 3:22 PM
Subject: Re: [HACKERS] Call for port reports

-----Original Message-----
From: Dave Page
Sent: 26 October 2003 17:34
To: Bruce Momjian
Cc: peter_e@gmx.net; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Call for port reports

No problem --- the port is already marked as working --- this is a
known problem with the parallel tests.

No it's not, that's what I'm saying. Normally the tests
finish with a few failures (because Cygwin can't create
enough sockets). I'm seeing a full blown hang.

OK, cleaned up and rebuilt & it looks OK now (well, as OK as it ever
does on XP Pro).

I am seeing these hangs consistently (but not always in the same place) on
XPHE running on a P4.

uname: CYGWIN_NT-5.1 DUNSLANE 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
unknown Cygwin

cheers

andrew

#105Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Dave Page (#102)
Re: Call for port reports

Dave Page wrote:

-----Original Message-----
From: Dave Page
Sent: 26 October 2003 17:34
To: Bruce Momjian
Cc: peter_e@gmx.net; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Call for port reports

No problem --- the port is already marked as working --- this is a
known problem with the parallel tests.

No it's not, that's what I'm saying. Normally the tests
finish with a few failures (because Cygwin can't create
enough sockets). I'm seeing a full blown hang.

OK, cleaned up and rebuilt & it looks OK now (well, as OK as it ever
does on XP Pro).

OK, thanks.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#106Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Tilo Schwarz (#103)
Re: Call for port reports / test horology FAILED

Tilo Schwarz wrote:

Hi together, keep on the nice work!

On SuSE 8.0,

uname -a

Linux dell 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown

During compile I got the following warning:
gcc -g -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../src/include -D_GNU_SOURCE -c trigger.c -o
trigger.o
/tmp/ccgcppC9.s: Assembler messages:
/tmp/ccgcppC9.s:2014: Warning: using `%si' instead of `%esi' due to `w' suffix
/tmp/ccgcppC9.s:2014: Warning: using `%ax' instead of `%eax' due to `w' suffix

as -v

GNU assembler version 2.11.92.0.10 (i486-suse-linux) using BFD version
2.11.92.0.10 20011021 (SuSE)

gcc -v

Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)

Yes, I see that with the exact same version of gcc, but it seems to
still run fine.

I get the this failure (...something to do with the change to winter time last
night?):

test horology ... FAILED, diff follows.

Yes, this is caused by the daylight savings time change --- it will be
OK tomorrow.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#107Neil Conway
neilc@samurai.com
In reply to: Bruce Momjian (#84)
Re: Call for port reports

On Sat, 2003-10-25 at 21:29, Bruce Momjian wrote:

configure --enable-debug will use -g for the compile, and with
optimization.

I'm just curious: would there be any benefit to using -g3 when
--enable-debug is specified and -g3 is supported by gcc? From the gcc
man page:

-glevel

[...]

Request debugging information and also use level to specify how
much information. The default level is 2.

Level 1 produces minimal information, enough for making backtraces
in parts of the program that you don't plan to debug. This
includes descriptions of functions and external variables, but no
information about local variables and no line numbers.

Level 3 includes extra information, such as all the macro defini-
tions present in the program. Some debuggers support macro expan-
sion when you use -g3.

Note that in order to avoid confusion between DWARF1 debug level 2,
and DWARF2, neither -gdwarf nor -gdwarf-2 accept a concatenated
debug level. Instead use an additional -glevel option to change
the debug level for DWARF1 or DWARF2.

-Neil

#108Tom Lane
tgl@sss.pgh.pa.us
In reply to: Johan Henselmans (#62)
Re: Call for port reports

Johan Henselmans <johan@netsense.nl> writes:

I had trouble compiling postgressrc/pgsql/src/interfaces/ecpg/ecpglib
and compiling pgsql/src/interfaces/ecpg/compatlib.

Reason was I had asked during configure to include krb5 support. After
adding the -lkrb5 flag to the Makefile in these subdirectories,
everyting went fine.

Okay, fixed.

regards, tom lane

#109Sean Chittenden
sean@chittenden.org
In reply to: Peter Eisentraut (#51)
Re: Call for port reports

Certainly other alpha gcc platforms must have problems with -O2?
I am inclined to add something to configure.in for all alpha
compiles that changes -O2 to -O.

I'm not. It's one thing if FreeBSD thinks their compiler is broken.
But before I accept that gcc is broken as a whole, I want to hear
from the GCC folks.

Well, I have no insite into the gcc camp, but, my understanding is
that gcc 3.3 for the alpha isn't broken, but for gcc 2.X, it's pretty
horked with any level of optimization. -sc

--
Sean Chittenden

#110Alessio Bragadini
alessio@albourne.com
In reply to: Bruce Momjian (#1)
Re: Call for port reports

On Fri, 2003-10-24 at 18:37, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

Sorry for the delay. All regression tests passed on Alpha Tru64/
Digital Unix version 4.0g using Digital CC.

OSF1 emily V4.0 1530 alpha

(the existing port list has only a report for Tru64 5.X)

--
Alessio Bragadini <alessio@albourne.com>
APL Financial Services (Overseas) Ltd

#111Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Alessio Bragadini (#110)
Re: Call for port reports

Ports list updated:

http://momjian.postgresql.org/main/writings/pgsql/sgml/supported-platforms.html

---------------------------------------------------------------------------
Alessio Bragadini wrote:

On Fri, 2003-10-24 at 18:37, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

Sorry for the delay. All regression tests passed on Alpha Tru64/
Digital Unix version 4.0g using Digital CC.

OSF1 emily V4.0 1530 alpha

(the existing port list has only a report for Tru64 5.X)

--
Alessio Bragadini <alessio@albourne.com>
APL Financial Services (Overseas) Ltd

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#112Philip Yarra
philip@utiba.com
In reply to: Bruce Momjian (#111)
3 attachment(s)
Fwd: Re: Call for port reports

I've just tried the latest CVS on Tru64 (OSF) and I'm getting a surprising
number of failures. I've tested using gcc 2.95 and compaq's cc (both the same
number of failures, can provide regression.* and make.out from /bin/cc run
if required). The attached results are from gcc, which appears to be default
unless I `export CC=/bin/cc`

$ uname -a
OSF1 hostname V4.0 1229 alpha
[that's Tru64 v4.0F ]

$ ./configure --with-thread-safety && make clean check
[snip]
=====================================================
18 of 93 tests failed, 1 of these failures ignored.
=====================================================

I've attached regression.diffs and regression.out - the
same CVS snapshot passed `make check` perfectly on Linux, BTW

I saw Alessio's results from Tru64 v4.0g this morning - no problems there, so
I wonder if I am doing something wrong... can anyone provide further
suggestions?

There may be some wierdness on my build host, so when time permits I'll try on
a different alpha machine. I've also attached make.out.gz - the output of
make.

Regards, Philip Yarra.

Attachments:

regression.out.gzapplication/x-gzip; charset=iso-8859-1; name=regression.out.gzDownload
regression.diffs.gzapplication/x-gzip; charset=iso-8859-1; name=regression.diffs.gzDownload
�a�?regression.diffs�=mW����������Ix�����IiH	io�����H�$�p���gfw%�V#�a������W�hw�wfW+?z��m��FA/
�;�8����r��A���h�����I/ev���������n6�o�����8H��4��f�����G�^����L\1���;~�n��!��m<�������.c��(`����U���A��(ewA���� ��{px�w�
p���Ax�|�\���Y ��m@�?=�;;d/����3��9����MI�����������1t)�{o��
��l'�E���~|5�	�T�!�G�px��H�4S��
5�I� �;�c_5D��@����cvxzzr
��h<����^c��!������#��{��oQ����3��FO��v�Q e|$�
�C��X�=�3h���#�(gm��9�6����z��G�������w����etUWWA� A������B���N2��}�(]+��������`p>���8�ao������<�;��G�J�%E�fZ�������?���{����hh���_l8��g�`�	K����]����(~�Kq$)�l��'��d�=|u��66D�5�ll<��1����j���0V�WyJa^�7Sc����tYN�rN��<�=0?�
��Q�9'��+t�U������a�t��3Y�5�v+KQ��F���5�iL���Ub�
9hrws
Ka� �L�e5kF�����P�"4�(����-G3s>]q �bv1�-$ �-�o��V����cu�l��B��������K�|#������XCy
C�<2�����z������6����6�J������h���Z�m���C�D��R���0���r��{�2�6�:���a)+k09\��a^��0&oY��$��0YU;����]�nR�fYg�{0�j"�y4�bS��VAc}L�}P!�����������#��]���7/Y{������C.�������'l�`��,G��Lp�P�QC�Bj-��Ouk�������S2\����Nn���W����;]�����^f	k�����]D�����!���WsJf@V�����!�}����1�����b����lMhg����l�����7O���-�]�.[���Y����l�]9��k
/��#�o7������I���7�� �r�i�� R��Qz>5F~zm1�� w5Q�b��R��$8Gok���}aa��F�~��
�s9�5��mP\T*L�p[p��l���
zl�/�g�����2aK$ce�2��k�! ��0�����p����_]a��^���	"�	���n����`8��$��hgt��N�v��Lx;}?�w��ml�UR�7
������z=;��B��(�G�@���{�E�r0��l�P��� Gx?�������J�  
������>Q'���&.��l��w$��}��~��N��W��j�)��&��#K�T��]���k9N��xY��h��G�XE����8
�(�zA�<B����K��X?c���I��Y�����J�
���[�&���8���s�(hT��9�����x/%n`3�[���������}x��"�I��+k
!Rn	�mo�mm=cB��!dk�+(����m�Z��t-wi
���J��XD��T ��1s���L;��`�{o��wI������I}&�I2(m:��`�Oz~? �u����LLe)��"�I�h���h��.?�=;=�?������fB-�y
i)G�C�����s9ZI���
�x���Ts�LrYc��M��
��F��|I�7aT
�|2�AL$����"���&�@�r�v3[�����y�����r���������������s<�, .�8{BT���$A������0���a[b�1��}�S\�1{E������U����g
b��QXw�j��D2�����ns��s����\�,C9%Vr�������w��1#����uG7jJ���"����i2:c�%�2�?���0A�z���]�%1�d�E�J$~'��$��#z������AR��_��>����<��.����B��iNy�*�n77�<�/������q�1^~�lq���T�����,zxR�]��l`�����$��3h-%������M0s�>�����@?"�J�8|CAe���)g��������������o������������2��G!�E�./��R�1Cy��`^8�MS\z����y��hE�y|��V�LK�%-E�d�p<V�(j!{6L�2�5k�_�v-����'�C��=�^${����}��jB�y����# �<�"�:l=�p�������h���^��:tGC/�N���� \47�����L$O�
��u@�<s��S���G����0�R�IZ�!���Z�L�7�a��mzY�`����W?b�(`��P������r�|"���A��/�\g�?����H#�r���IFX2h�SE�?/��Y'���w��W�W��Q�1di��Z��3��>c������ism<����#!K���3\y+�PC	�[E�VP�P���z%+�D��^C�	A���#�E`
��5oO4�^Ml{��75�.Y���w���=���
v�?���Rm����.y+j�3���0b��O}���}����-4�=,����[Vz~���h��qx��oBk����jo�#����R����|5��Q��+A�0���4��� F|;AAR�U�:���4-���f���N������z���NmT�&�e?��]�Qq������D<+|5��G���KGr�m�G4�;�q2��}����] ?1�����b+Y�[�Q���aZ�����f�\|Z�	���Qb�����������{Eq,���?��F�'9P������K���z��s�����|d�d����w����
�7a��$��Tg.���1e��T�����[�nU��"���<ek>�/�g2}���5��n����CW���x|����9�|���-�n}a���!��d��0��(����K�T���]`��@&?^��[s������<�O���YT��df�kJ�����#q�I`|�����,�l�m��3)�~��j4K�PsJ`����Q�P��������g?d����x���O�7��u�[��{��s����c����f�b���g�b�0o\e���BQ�������;ysx�wvr�~��Gq�>���:���N�Zkk@�0��b7�!�K�b[^�]�=�j�|���o�*�;A)v�z;�u������\o��"���YsOs����9qcp
��������z���?�����wEOu����i�b��2/>~�yQ��oG���]����wU��������#��Q���@d~��a���r��V��2z
�x�Q����.�����0*���=�	��`�s�����������|�H$
�a"��e���6��/�q�A(@��;h\��~`�N��q�Z7hW��dq)���Q�|��s�c^4������c�����bU��)�����,&�l��v;�������`�%@����(�=�aXE���y�<���OYY�e�q�U\s����R�X*U���T�'���^����U�Ti_��[��-F,=�R���lJ�Ej�_�u����,qr���$8����J+�Kd�l
��d����� ���y�7��d)>X�q�����hh-�i\U�:*������/s��	>:YY���%i��<-S-E�Jd�W&�Z��������������<�]�D[����Zz��2�����B^d�����������V�������qe"e^���� �?��V'#�#l+�c��Zz��2��G�
��[��nn���m��ZKoW&�tr��Y���*Y
�,�[����l���e�{�����J�^�����}�w0L�?��S����7X~�M��*��a5�|��.����������G�'t,���2���<3����e�hc=�Z����0��S�n���P���a91`�
��k���2`M~)�X�t�`td��y(+�����'���yh��|�-�#��xn�������Y��ngn��}�e��n����poK���N����:�9�����n�f����n��y�E��0����=0�����S�C{=2`h�?0���|�2xC��^�aH�;�4�f����
���4�a����f��"����)��BtH��������$���9��IK�`��Ous\YO(�"���`��NL�M�8�_��)I;2akVaB�&^���J1`��LX��yDn%�>g�������6�6-�Uo��S���m<(�M7�g&M��L5�!fJ���)Q�$UN�eB���&I�.i��+.C�����R.]v�z��l��L7���v�������U����LRf�Fe,�W�,�UU�����#�u+*���yoU�2{5��U<���5k��d�j��"{5�u	�C�g�|��5�M�^���5!�/pp�
��{���%�D�I������Lw�LfK�LP"�l�((����2F�h)�&��r��(����rf����@*�tgp��=���_�q�G���'u���Y>���o.��O��\��r_��� C����Ay�Q�h���SM�������?��u���������Cy�������n����_�����_�@*�����n��[Fn5�o���_����jYv�k�A��g]x����GQ���=,c�TMf0�X����
��T��?:>;Q�'KoF��q����}�&R6��\����}��=�y��~����f{��v9���|k�Q�	���-�+Go����|�c�)>6�@@&ci�t�8�g�GF�'T��
U>S��y	��f$�\?l[����� 4h@��p��_��r��'�Z��-�:��;-#��t������{��k�;���;�J��g��V���%�����QIVE�Q�f�N�;�W��:{��Q����[�T�a`	�L%iOT�B8zR���"4���e����U�3�W>���_yR�I�m���
�`i�!u�M�]�������*C�`��4�E��!�]W���6
vip��!�!oN����6
�`]��;4���m�
����`�{4�M��!uys��`��i�<�==��g��pQ�q-��\i �!<�>P�v#���O�5=<��5��~5w�����w��h^�{��gU%h����P����%�/�����C�d�9��By�{0�K0d�q ����H)�dQ��~��X�ZgBL�'���8"�d����{��a�T��a?0�d�n[��+���.�� ��d4�qus)���DW�Ah�����.����6��i�f�]�oh���m�Ec{4�Kc;4�Mc����ei��#B��n��-���]���m�&�i\�fU:�uh�6����=������ks�e)U�R��'��8��i�����<|P�[r�q����q�����%�����;�8\���/�����|c�+I+����,���;$�q�|P���f�A)��|�+����([��	+h�V�2(#E��������o
*���{��)���`�8sr�/5c�~�s�S"Y�O���4�&�qQ���k����n�O�pq�JXA^F�SCv��������$!ei-LH���BI������z�8L�za�������u�{��>��J��� .!��[�F���mZ�A���`�r�Vp]V�2������=;������n���8������D��.�U���X��o*%��r&l�������v�)L��t)L��lQ�m
�Cav+��JvU�B�R���
�N��J/�����|
��0=
�Ea�)����`�^���S���)���$�f���+� ���a�1�"������oYZ�e6>/G!�Pg��ys������c)�B�?��PSw]�{������#����5��y�Tv����R����-z�.dK�oU�z����f����#��!���N^�Y%�������E���Kb��A|�%�Q ��5��[|���
+/�g6����@tN�z%:z���8_U��a?��_W�"����xk�vw�.U�jw��nm����M�Eh2���X�D��zx��L� l|5����-c}w��k���l7^	����'�����+�i������<	�d��K@3��*d���.h�;��{�'������
Z!��������u��k���Wh1	������Y-M[Z
s�����Lb�c��Ng��],K��41
e{-�$�O��MK�������t�)��W���CgF8Mj'm�\�rqP���$��o��\����)3������]SW�<zl�w|��t�������%���Xw�%��KR��|��MW%����^���H��{���E�����
Ev=)�����L~��w���b�Z\2���,�iO�'��2J:�4_���3���eS�9�K�iP��3q*u�ur�x�I��\���i>�w�;��:=B��.��3�����Y���Z��������,ri�U�feoi%����L���2��R��b��Vn�
N��j���1yc0��o|���S�"�w���L�����V��i8nU�����`�$����=����_���,��j;$� �93�J�9�$r���_\�0&�[h��n��M�H:�������"Yi��kFK?�6����$Je���C���0�F�Fl�A[��5�cl�O7f�f�_�W�����3�9�GA���q�t;=��[���7a����N�Z<���"}�U�l����$����]����p����Q@�g'��8�o,T�{���j�����+8��Q�U]W���;��u.��QWu�+�u�u����u�Zq��\ke�^�;);.�&����upE��I�fcox��C���}�&��������~��3�-�Jn_�b�Ze�#;q�s2��>���f��g>�_�N9�1�i�y|9M����3F]�k��������m�]j�H��S�K$T����b����}u�H�|a=�'���%
���~�>�$[)	�����?S��!�
�=)���"'�\{Wd�)!����6�^�Od"2��N����1,���G��Ux-S���j�->W�q.j���=���R�M�J^�%�M�R�9�UL��'�q|~�
h�CN�H��>�O�x���&��oG���A��}X���c��y�i��hd�?���glY��+�:�`�s��\���Tu.[��b"�&����H4K�qJ*��MS?9K�0J�����3��nVq#_��`����jM��Q*�7UG)���9b����9`FD�s��� �>���XvKS�0�S���Y�}c]�����TwuWs�\:y�0�3<gc��)�M&�)�%�?X��(B�9%��(��>�6�u���;��;D��b���AB��d�G�<�oHO�!���4y���������gC�K��vF�������i�E�$��OZ�����������87���P��6�Vk�+ik�j��T
�t�=���kuF�Q����(&�������+�e�-�2l!���1����v�W�.���+4��e6ng�	������3��-�������!Q@m�Q�������2�N�T�;�V1�!f<TQ6o��O8��[4E��T�z�� [�gP��(O�};u[��5�W�-��o/�^�YE���
q�x��S��`������a��"���:������iD_&�
���m��
�.'�����/�T^�����hT��e�V����O��+vDi�D+nh��E^�_��'[��������i����>n�{z�Y�g���,����.4��	@��c�q*`����,;B@3�e����	`Yw_p�]O���l����	@��p��jl�6Pc��}j��,jl�����w\�0P`�gY�{o%�tU������p6����0t4X�}�����jtN���7��ufN6Pc����#��X0�����X��#��������6P��&j�6P�Q����t6���1����,��P�@�b��*`��
���P�l�Xz8���4
�1x����.;��Zi���<@����z��0v��q@�����z� �t��wQI�q�)B'����)z��}DY|�c�_��y�>z�Z��K����S�M�Yz�>�
���qD�h����\w��g�w6���!�64��R�-��������j��l�O�l���7A���_���O����������x��Y��(��~��8C8�f���O_��z����g��������=��I��r61;�4{����4D��gW���:2u����<O�tf�,�/���2����Z��IQy�|��[�f:�q��N��!/Q��86,��i�w��W,d�P�%���4!?�I~����x�\
�4����@�]�}eh�G������fI]N
4��-KNIn3B�������<'}&H��^����X4��M9��0qrDp&�T����O�^�5?}_�����x�gn�Y� �dmp�t]���AFA�DH@gcN����G���^$��v@�+�:�n��uYD��QO��$k)�T�l�@�R���WK���^A�g�d��_q�*�'B�U��s*D,o���^	Y�[��� �d�[���^���]O��$k)�T�z,����	Y�.+��zY;�X\�[m��M��!�$k)���};����~���������W�����[`���7��
������Y����M�@�Z2�#|-�����W�u7K�6��5�it����-�Z�9�Dy@��!��^-)kd���{\�F��M��EF��9�����3K���2o��?��kd�����X�~iH�"���/�'BN�$k)����B�y'd��_K���0o���]>�e�J�f��.y�L�����s+D�������'K��L�7[A�k���y�d��v�wpt2/=D��y�eh��E�(Y�b�u�u!�����k��0��WaB�	���q\�I��
���p&��*L�5�U[5�U[5�U[���wM�4��6��~ZZ?�dX�foW7�������*@,���/�5L��f��kn�u���['=�/�(�������������������j�_C� ���k�����j�U�<S�:�xb� ����7^�������\U�����.�������kS\_yO/wXG�-q8e~2��&������6zy�h�l��8��nq�m�I�=������h�%�h������E�(���!~��kjh�I��������k!���Y:~�������A;���h� �I�*�v��
���G��:�4ECtt�	��^��N@�I!�g{{�4`��L����7��0�xCE�����.��Lm�;W8O��0i��n
�^���s��\�����xx5�r��a��w�pxk�a�z��EcY�E�7$wi�$���x�(.1�����4��i��Fa��K��=�������@��O�}�<���4�u���EE��`h~��V��Cr,)I z�z4;P����_� ��=��JI�����A;Di����xp���!V�����q���(����I,��tc�
���<���
g9E'
��������a�I9	��0�\���
��y:����)j��?9=Am�X�C�R�8��iY0c+���e��f����i����5�p���P<����Jbo�p���O�[�yQ�d�������;��o��'!�2l����>�������������sL�����m[W�����0
�$�A�{R���\-�GT��Z@���Y�{P��&���:��������7{�]����Rl���d�=���	g�D��O���?E����UM���|D��V��|���R�Y������w����D��B�-�0���(�U�x�y��Je~���=���\�y-#K�(�1�,�J��Qm��\w�m���������2��r]���w�v8t���=Y;
"��E^~P�M�&��z�&���.Y#�QM���mt����"�q��+�k�l
��E�����gUV����,���6���������ec�|��JC�}�i���.����SG�g`���X?,t����{r�(������vm�&���N��xPr6��n�9�C��[�K6r�r���{E2���'+X��d�*l��B�j��ul�Ui�ck]�
{=8����s�bK��0�]�
�5���b��c����e%*^��lz?���!t����yd|[�k���yd|�q�K�};�����M�fo�{����q{�-�y}7>�$���G�-��;5_�#�R��IM_r��a,��d\Y[i�A��f��0�{V����**�3����a�y%�������R�?��~�c�#��s���f�V��G;�%
Wd�v?�(i�M�}bDo�4�7!lB�NI�-��[���4�^r���W�p��P7�AIS�y��������yH����9������{��4�^_#��:�q_c�������2�Z���T���E�W���:Z�]�p��?C/}�q������7��z�����{_�:W�>�)���vi�DMT( ������v�����P@�;���5Fq
�S���M��k{���
make.out.gzapplication/x-gzip; name=make.out.gzDownload
#113Tom Lane
tgl@sss.pgh.pa.us
In reply to: Philip Yarra (#112)
Re: Fwd: Re: Call for port reports

Philip Yarra <philip@utiba.com> writes:

I've just tried the latest CVS on Tru64 (OSF) and I'm getting a surprising=
number of failures.

You seem to have some path problems: most of the errors look like

+ ERROR: could not access file "/regress.so": No such file or directory

or collateral damage. Check to see if the sed script that inserts path
values into the regression scripts is doing the right things.

regards, tom lane

#114Andrew Dunstan
andrew@dunslane.net
In reply to: Philip Yarra (#112)
Re: Fwd: Re: Call for port reports

----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Philip Yarra" <philip@utiba.com>
Cc: <pgsql-hackers@postgresql.org>
Sent: Wednesday, October 29, 2003 10:58 PM
Subject: Re: Fwd: Re: [HACKERS] Call for port reports

Philip Yarra <philip@utiba.com> writes:

I've just tried the latest CVS on Tru64 (OSF) and I'm getting a

surprising=

number of failures.

You seem to have some path problems: most of the errors look like

+ ERROR: could not access file "/regress.so": No such file or directory

or collateral damage. Check to see if the sed script that inserts path
values into the regression scripts is doing the right things.

I didn't see these objects actually made in the make log, although getting
past all the warnings was painful, so maybe I missed it.

cheers

andrew

#115Noèl Köthe
noel@debian.org
In reply to: Bruce Momjian (#74)
opteron port [was: Re: Call for port reports]

Am So, den 26.10.2003 schrieb Bruce Momjian um 02:38:

All 93 tests passed.

...

Linux pergolesi 2.4.22 #1 SMP Mon Aug 25 20:56:25 CEST 2003 i686 GNU/Linux

It says i686 but its AMD Opteron:

noel@pergolesi:~/pgsql$ cat /proc/cpuinfo |more

...

model name : AMD Opteron(tm) Processor 240

...

I am confused how to handle this. Is this running in 32-bit mode? I am
inclined to mention Opteron only when tested in 64-bit mode, because I
think we all assume a 32-bit Opteron is the same as a standard
AMD/Intel. Does uname report differently in 64-bit mode.

You are right. Its now just like an i386 so it doesn't make sense to
list it. When I will get access to an 64bit Opteron system I will test
it again.

--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org

#116Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#80)
Re: Call for port reports

Bruce Momjian <pgman@candle.pha.pa.us> writes:

One other idea would be to set CFLAGS to "" before including template,
and just test to see if it is still "" after --- that might be cleaner
than saving the original value and comparing.

Yeah, that bothered me a bit too --- what if the template tries to set
CFLAGS to its already-existing value? I was thinking that unsetting
CFLAGS before running the template would be the best answer.

regards, tom lane

#117Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

For a change, here is one that does not work:

HP-UX hpunix5 B.11.00 U 9000/803 2002765023

Using the system compiler, I get several complaints about our use of
"inline", for example:

cc -Ae +O2 -I../../../../src/include -D_XOPEN_SOURCE_EXTENDED -c -o dynahash.o dynahash.c
cc: "dynahash.c", line 466: error 1000: Unexpected symbol: "calc_bucket".
cc: panic 2017: Cannot recover from earlier errors, terminating.

I had to patch it as follows to get it to work:

diff -ur ../cvs-pgsql/src/backend/utils/hash/dynahash.c ./src/backend/utils/hash/dynahash.c
--- ../cvs-pgsql/src/backend/utils/hash/dynahash.c      2003-08-19 03:13:41.000000000 +0200
+++ ./src/backend/utils/hash/dynahash.c 2003-10-31 11:05:05.000000000 +0100
@@ -462,7 +462,7 @@
 /* Convert a hash value to a bucket number */
-static inline uint32
+static uint32
 calc_bucket(HASHHDR *hctl, uint32 hash_val)
 {
        uint32          bucket;
diff -ur ../cvs-pgsql/src/backend/utils/sort/tuplesort.c ./src/backend/utils/sort/tuplesort.c
--- ../cvs-pgsql/src/backend/utils/sort/tuplesort.c     2003-08-17 21:58:06.000000000 +0200
+++ ./src/backend/utils/sort/tuplesort.c        2003-10-31 11:10:12.000000000 +0100
@@ -1784,7 +1784,7 @@
 /*
  * Inline-able copy of FunctionCall2() to save some cycles in sorting.
  */
-static inline Datum
+static Datum
 myFunctionCall2(FmgrInfo *flinfo, Datum arg1, Datum arg2)
 {
        FunctionCallInfoData fcinfo;
@@ -1816,7 +1816,7 @@
  * and return a 3-way comparison result.  This takes care of handling
  * NULLs and sort ordering direction properly.
  */
-static inline int32
+static int32
 inlineApplySortFunction(FmgrInfo *sortFunction, SortFunctionKind kind,
                                                Datum datum1, bool isNull1,
                                                Datum datum2, bool isNull2)

Any ideas?

--
Peter Eisentraut peter_e@gmx.net

#118Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#117)
Re: Call for port reports

Peter Eisentraut <peter_e@gmx.net> writes:

HP-UX hpunix5 B.11.00 U 9000/803 2002765023

Using the system compiler, I get several complaints about our use of
"inline", for example:

Interesting. CVS tip works fine for me on HPUX 10.20, using cc -Ae.
It looks like configure deduces inline is not supported on this
compiler, though:

/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
#define inline

What do you get on that compiler?

I had to patch it as follows to get it to work:

Odd. I count ten inline functions in the backend:

src/backend/storage/lmgr/lock.c: 94: inline static bool
src/backend/storage/lmgr/lock.c: 105: inline static void
src/backend/storage/lmgr/lock.c: 126: inline static void
src/backend/storage/lmgr/lwlock.c: 67: inline static void
src/backend/storage/lmgr/lwlock.c: 77: inline static void
src/backend/utils/adt/pg_lzcompress.c: 389: static inline int
src/backend/utils/hash/dynahash.c: 465: static inline uint32
src/backend/utils/mmgr/aset.c: 256: static inline int
src/backend/utils/sort/tuplesort.c: 1787: static inline Datum
src/backend/utils/sort/tuplesort.c: 1819: static inline int32

Why would only three of them fail?

I'm not eager to remove the inlining optimization for everyone just
because this one compiler fails. I think a more reasonable approach
would be to force inline to be #define'd as empty on that platform.
Or file a bug report with HP.

regards, tom lane

#119Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian <pgman@candle.pha.pa.us> writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

I can confirm CVS tip on HPUX 10.20, using both gcc and vendor's cc.

$ uname -a
HP-UX sss2 B.10.20 C 9000/780 2004473515 32-user license

Looks like there are already confirmations for the other platforms
I have at hand ...

regards, tom lane

#120Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Tom Lane (#116)
Re: Call for port reports

Tom Lane wrote:

Bruce Momjian <pgman@candle.pha.pa.us> writes:

One other idea would be to set CFLAGS to "" before including template,
and just test to see if it is still "" after --- that might be cleaner
than saving the original value and comparing.

Yeah, that bothered me a bit too --- what if the template tries to set
CFLAGS to its already-existing value? I was thinking that unsetting
CFLAGS before running the template would be the best answer.

I assume he did it that way so if you do:

CFLAGS=

in the template file that it would be honored. I see lots of this in
configure:

ac_env_CFLAGS_set=${CFLAGS+set}

but that uses 'set' if the variable is null or unset:

${parameter:+word}
Use Alternate Value. If parameter is null or
unset, nothing is substituted, otherwise the expan-
sion of word is substituted.

However, I thought null meant "", but I now think null basically means
the same as unset in this manual page. Notice that '+' tests only for
unset, and knows when you have done VAR= and VAR="":

$ echo ${Y+no}

$ Y=
$ echo ${Y+no}
no
$ Y=""
$ echo ${Y+no}
no
$ unset Y
$ echo ${Y+no}

$

so the proper test would be to unset the variable, then use ${var+val}
to test CFLAGS after the template file is included.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#121Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#118)
Re: Call for port reports

Tom Lane writes:

Odd. I count ten inline functions in the backend:

Why would only three of them fail?

I just remembered this Autoconf change:

2002-03-28 Kevin Ryde <user42@zip.com.au>

* lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
to avoid versions of HP C which don't allow that.

So there you have it. Do we want to backpatch the new autoconf test, or
define inline to empty for this particular version of this platform, or
try to do without typedef'd types? I prefer option 1.

--
Peter Eisentraut peter_e@gmx.net

#122Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#121)
Re: Call for port reports

Peter Eisentraut <peter_e@gmx.net> writes:

* lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
to avoid versions of HP C which don't allow that.

So there you have it. Do we want to backpatch the new autoconf test, or
define inline to empty for this particular version of this platform, or
try to do without typedef'd types? I prefer option 1.

Me too, if the patch isn't too big.

regards, tom lane

#123Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Rod Taylor (#15)
Re: Call for port reports -- Failure on Linux

Did we ever find the cause of this failure?

---------------------------------------------------------------------------

Rod Taylor wrote:
-- Start of PGP signed section.

Linux ns2 2.4.20-xfs #2 Tue Apr 15 10:04:43 EDT 2003 i686 unknown

<-- SNIP -->
stats ... FAILED
============== shutting down postmaster ==============

=======================
1 of 93 tests failed.
=======================

*** ./expected/stats.out        Sat Sep 13 12:44:48 2003
--- ./results/stats.out Fri Oct 24 14:26:56 2003
***************
*** 8,14 ****
SHOW stats_start_collector;  -- must be on
stats_start_collector
-----------------------
!  on
(1 row)
-- save counters
--- 8,14 ----
SHOW stats_start_collector;  -- must be on
stats_start_collector
-----------------------
!  off
(1 row)

-- save counters
***************
*** 62,68 ****
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column? | ?column? | ?column?
----------+----------+----------+----------
! t | t | t | t
(1 row)

SELECT st.heap_blks_read + st.heap_blks_hit >= pr.heap_blks +
cl.relpages,
--- 62,68 ----
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column? | ?column? | ?column?
----------+----------+----------+----------
!  f        | f        | f        | f
(1 row)

SELECT st.heap_blks_read + st.heap_blks_hit >= pr.heap_blks +
cl.relpages,
***************
*** 71,77 ****
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column?
----------+----------
! t | t
(1 row)

-- clean up
--- 71,77 ----
WHERE st.relname='tenk2' AND cl.relname='tenk2';
?column? | ?column?
----------+----------
!  f        | f
(1 row)

-- clean up

On Fri, 2003-10-24 at 11:37, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

The current list is at:

http://candle.pha.pa.us/main/writings/pgsql/sgml/supported-platforms.html

-- End of PGP section, PGP failed!

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#124Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: Call for port reports

Bruce Momjian writes:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

This one is OK:

OpenBSD ob.credativ.de 3.4 GENERIC#65 sparc

--
Peter Eisentraut peter_e@gmx.net

#125Peter Eisentraut
peter_e@gmx.net
In reply to: Peter Eisentraut (#117)
Re: Call for port reports

I wrote:

For a change, here is one that does not work:

HP-UX hpunix5 B.11.00 U 9000/803 2002765023

This one is OK now.

--
Peter Eisentraut peter_e@gmx.net

#126Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Kurt Roeckx (#30)
Re: Call for port reports

Kurt, this patch added special includes for testing un.h, and I believe
it caused regression failures for the statistics collector. Is it still
needed? What platform is this?

---------------------------------------------------------------------------

Kurt Roeckx wrote:

On Fri, Oct 24, 2003 at 11:37:32AM -0400, Bruce Momjian wrote:

It is time for people to report their port testing. Please test against
current CVS or beta5 and report your 'uname -a'.

I need this small patch so it properly detects I have unix domain
sockets. Otherwise no problems.

Kurt

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#127Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Neil Conway (#107)
Re: Call for port reports

I just tested gcc 2.95.3 on BSD/OS i386 and didn't see any change when
using -g3 vs -g in the size of the binaries.

---------------------------------------------------------------------------

Neil Conway wrote:

On Sat, 2003-10-25 at 21:29, Bruce Momjian wrote:

configure --enable-debug will use -g for the compile, and with
optimization.

I'm just curious: would there be any benefit to using -g3 when
--enable-debug is specified and -g3 is supported by gcc? From the gcc
man page:

-glevel

[...]

Request debugging information and also use level to specify how
much information. The default level is 2.

Level 1 produces minimal information, enough for making backtraces
in parts of the program that you don't plan to debug. This
includes descriptions of functions and external variables, but no
information about local variables and no line numbers.

Level 3 includes extra information, such as all the macro defini-
tions present in the program. Some debuggers support macro expan-
sion when you use -g3.

Note that in order to avoid confusion between DWARF1 debug level 2,
and DWARF2, neither -gdwarf nor -gdwarf-2 accept a concatenated
debug level. Instead use an additional -glevel option to change
the debug level for DWARF1 or DWARF2.

-Neil

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
In reply to: Bruce Momjian (#126)
Re: Call for port reports

On Sat, Nov 08, 2003 at 06:36:38PM -0500, Bruce Momjian wrote:

Kurt, this patch added special includes for testing un.h, and I believe
it caused regression failures for the statistics collector. Is it still
needed? What platform is this?

It's a linux system with an (old) libc5. It's still needed for
that platform, but I doubt many people would use it.

On what platfrom does it break? Is the result of checking for
un.h different?

The stats collector has this code that is relevant:

for (addr = addrs; addr; addr = addr->ai_next)
{
#ifdef HAVE_UNIX_SOCKETS
/* Ignore AF_UNIX sockets, if any are returned. */
if (addr->ai_family == AF_UNIX)
continue;
#endif
if ((pgStatSock = socket(addr->ai_family, SOCK_DGRAM, 0)) >= 0)
break;
}

Kurt

#129Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#127)
Re: Call for port reports

Bruce Momjian <pgman@candle.pha.pa.us> writes:

I just tested gcc 2.95.3 on BSD/OS i386 and didn't see any change when
using -g3 vs -g in the size of the binaries.

I saw the same with gcc 2.95.3 on HPUX. The gcc manual for this version
does claim that -g3 dumps extra info, but perhaps that is only true in
certain object-file formats.

regards, tom lane