Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Postgresql
@ 1998-10-15 20:26 Peter Rye
  1998-10-16  1:06 ` Postgresql Adrian Gartland
  1998-10-16  5:58 ` Postgresql Rick Stewart
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Rye @ 1998-10-15 20:26 UTC (permalink / raw)
  To: axp-list

I have just installed postgresql-6.3.2 on my SX164. (Compiled from the RH
5.1 src.rpm).
It fails a number of the tests provided in the source, although seems to
work for the most part.
Is anyone using postgres on an Alpha, and if so, have significant problems
been noted in practice?
Are there any patches which I should know about?


Here's a brief example which is similar to where one of the tests fails.
(I admit to knowing very little about SQL, ie: it could be user error on my
part. Feel free to beat me over the head if this is the case!).

prye=> \d agga

Table    = agga
+----------------------------------+----------------------------------+-------+
|              Field               |              Type                | Length|
+----------------------------------+----------------------------------+-------+
| a                                | int4                             |     4 |
+----------------------------------+----------------------------------+-------+
prye=> select * from agga;
a
-
1
1
4
3
(4 rows)

prye=> select min(a), max(a), sum(a) from agga;
min|max|sum
---+---+---
  1|  4|  9
(1 row)

prye=> select min(a), max(a), sum(a), avg(a) from agga;
min|max|sum|avg
---+---+---+---
  1|  4|  9|  2
(1 row)

prye=> select avg(a), min(a), max(a), sum(a) from agga;
PQexec() -- Request was sent to backend, but backend closed the channel before responding.
        This probably means the backend terminated abnormally before or while processing the request.
prye=> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Postgresql
  1998-10-15 20:26 Postgresql Peter Rye
@ 1998-10-16  1:06 ` Adrian Gartland
  1998-10-16  6:50   ` Postgresql Peter Rye
  1998-10-16  5:58 ` Postgresql Rick Stewart
  1 sibling, 1 reply; 8+ messages in thread
From: Adrian Gartland @ 1998-10-16  1:06 UTC (permalink / raw)
  To: axp-list

On 15 Oct 1998, Peter Rye wrote:

> I have just installed postgresql-6.3.2 on my SX164. (Compiled from the RH
> 5.1 src.rpm).
> It fails a number of the tests provided in the source, although seems to
> work for the most part.
> Is anyone using postgres on an Alpha, and if so, have significant problems
> been noted in practice?
> Are there any patches which I should know about?
Ah..doh. I don't know of any patches..but I havn't
looked.

Just tried it out myself, but using the pre-built binaries
from redhat 5.1. I get the same error (using 164UX
2.0.35 with patches)...but it dies at an earlier test
than yours
"select min(a), max(a), sum(a), avg(a) from a;"

Seems the backend is SEGVing somewhere...here's
the runup to its death in trace (which will be of no use
to anyone).

[pid  1845] open("/var/lib/pgsql/base/mloc/pg_class_oid_index", O_RDWR) = 24
[pid  1845] lseek(24, 0, SEEK_END)      = 16384
[pid  1845] lseek(24, 0, SEEK_SET)      = 0
[pid  1845] read(24, "\10\0\360\37\360\37\0 b1\5\0\1\0"..., 8192) = 8192
[pid  1845] lseek(24, 8192, SEEK_SET)   = 8192
[pid  1845] read(24, "\274\0 \35\360\37\0 `\237 \0P\237"..., 8192) = 8192
[pid  1845] lseek(14, 0, SEEK_END)      = 8192
[pid  1845] lseek(14, 0, SEEK_END)      = 8192
[pid  1845] brk(0x120326000)            = 0x120326000
[pid  1845] brk(0x120328000)            = 0x120328000
[pid  1845] brk(0x12032a000)            = 0x12032a000
[pid  1845] --- SIGSEGV (Segmentation fault) ---

Never played with the internals of an SQL DB before.
Might take an alpha home this weakend and see what
I can find.

-- 
Adrian Gartland              [Email:         ade@oregan.net]
Software Engineer            [WWW:   http://www.oregan.net/]
Oregan Networks              [Phone:     +44 (0)1530 563311]





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Postgresql
  1998-10-15 20:26 Postgresql Peter Rye
  1998-10-16  1:06 ` Postgresql Adrian Gartland
@ 1998-10-16  5:58 ` Rick Stewart
  1 sibling, 0 replies; 8+ messages in thread
From: Rick Stewart @ 1998-10-16  5:58 UTC (permalink / raw)
  To: axp-list

On 15 Oct 1998, Peter Rye wrote:

> I have just installed postgresql-6.3.2 on my SX164. (Compiled from the RH
> 5.1 src.rpm).
> It fails a number of the tests provided in the source, although seems to
> work for the most part.
> Is anyone using postgres on an Alpha, and if so, have significant problems
> been noted in practice?
> Are there any patches which I should know about?
> 

I can't delete anything. Dropping tables works, but deleteing databases or
tuples is a failure (backend crashes).

No patches yet, and I'm using the stock 6.3.2 source, my own rpm.

The error from the tests is the same I get when deleting.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Postgresql
       [not found] <rick@hojpoj.independence.net>
@ 1998-10-16  6:39 ` Larry Zimmerman
  0 siblings, 0 replies; 8+ messages in thread
From: Larry Zimmerman @ 1998-10-16  6:39 UTC (permalink / raw)
  To: axp-list


On 16 Oct 1998, Rick Stewart wrote:
>On 15 Oct 1998, Peter Rye wrote:
>
>> I have just installed postgresql-6.3.2 on my SX164. (Compiled from the RH
>> 5.1 src.rpm).
>> It fails a number of the tests provided in the source, although seems to
>> work for the most part.
>> Is anyone using postgres on an Alpha, and if so, have significant problems
>> been noted in practice?
>> Are there any patches which I should know about?
>> 
>
>I can't delete anything. Dropping tables works, but deleteing databases or
>tuples is a failure (backend crashes).
>
>No patches yet, and I'm using the stock 6.3.2 source, my own rpm.
>
>The error from the tests is the same I get when deleting.

I have 6.3.2 running on a UDB under RH 4.2. The query posted earlier
with avg,min,.. works okay. Destroydb also works for me. I downloaded
a snapshot of the source dated June 6, 1998 and also copied the patches.
One of the patches did not apply cleanly. I can't remember if I changed
anything in the source, but I am able to create databses, etc. Quite a
few of the tests fail, but if I use the SQL queries they give correct
results. I can make a tar file of my source available from a web page
if anyone wants it.

Larry Z.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Postgresql
  1998-10-16  1:06 ` Postgresql Adrian Gartland
@ 1998-10-16  6:50   ` Peter Rye
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Rye @ 1998-10-16  6:50 UTC (permalink / raw)
  To: ade; +Cc: axp-list

>>>>> "Adrian" == Adrian Gartland <ade@oregan.net> writes:

    Adrian> On 15 Oct 1998, Peter Rye wrote:
    >> I have just installed postgresql-6.3.2 on my SX164. (Compiled from
    >> the RH 5.1 src.rpm).  It fails a number of the tests provided in the
    >> source, although seems to work for the most part.  Is anyone using
    >> postgres on an Alpha, and if so, have significant problems been
    >> noted in practice?  Are there any patches which I should know about?
    Adrian> Ah..doh. I don't know of any patches..but I havn't looked.

    Adrian> Just tried it out myself, but using the pre-built binaries from
    Adrian> redhat 5.1. I get the same error (using 164UX 2.0.35 with
    Adrian> patches)...but it dies at an earlier test than yours "select
    Adrian> min(a), max(a), sum(a), avg(a) from a;"

    Adrian> Seems the backend is SEGVing somewhere...here's the runup to
    Adrian> its death in trace (which will be of no use to anyone).

Thanks for the feedback. I noticed the same segfault as I continued to look
at the problem. Unfortunately I find it difficult to work out where I need
to look in the source -- I find it a bit of a maze, but I'm not a
programmer and I don't know much about databases.

There are various patches around on www.postgresql.org, and it would seem
that there are a few people who are developing this software on Linux
Alpha, so I'm sure there will be a solution...I just haven't found it yet.

As an aside, I've noticed that gdb doesn't seem to like my corefiles any
more (I'm sure it used to be OK...?with the change to 2.1.xx
kernel). Anyone know what the trick is.











^ permalink raw reply	[flat|nested] 8+ messages in thread

* postgreSQL
@ 1999-01-03  0:30 Jonathan Vafai
  1999-01-04 20:03 ` postgreSQL Chris Albertson
  1999-01-06 14:48 ` postgreSQL Ryan Kirkpatrick
  0 siblings, 2 replies; 8+ messages in thread
From: Jonathan Vafai @ 1999-01-03  0:30 UTC (permalink / raw)
  To: axp-list

Anyone get the latest postgreSQL to compile?  Anyone know of 
patches that might get it to work?

-Jon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: postgreSQL
  1999-01-03  0:30 postgreSQL Jonathan Vafai
@ 1999-01-04 20:03 ` Chris Albertson
  1999-01-06 14:48 ` postgreSQL Ryan Kirkpatrick
  1 sibling, 0 replies; 8+ messages in thread
From: Chris Albertson @ 1999-01-04 20:03 UTC (permalink / raw)
  To: axp-list, Jonathan Vafai

Jonathan Vafai wrote:
> 
> Anyone get the latest postgreSQL to compile?  Anyone know of
> patches that might get it to work?

I have Postgresql working on my Alpha.  What version are you
using and what is the compiler error message?  What compiler
are you using?

-- 
--Chris Albertson

  chris@topdog.logicon.com                Voice:  626-351-0089  X127
  Logicon RDA, Pasadena California          Fax:  626-351-0699


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: postgreSQL
  1999-01-03  0:30 postgreSQL Jonathan Vafai
  1999-01-04 20:03 ` postgreSQL Chris Albertson
@ 1999-01-06 14:48 ` Ryan Kirkpatrick
  1 sibling, 0 replies; 8+ messages in thread
From: Ryan Kirkpatrick @ 1999-01-06 14:48 UTC (permalink / raw)
  To: Jonathan Vafai; +Cc: axp-list

On Sat, 2 Jan 1999, Jonathan Vafai wrote:

> Anyone get the latest postgreSQL to compile?  Anyone know of 
> patches that might get it to work?

	Last I tried (with 6.4.0 I think) it was compiling fine as long as
you had a fixed egcs or made sure that nothing higher than -O1 was used
for optimizer flags. Releases previous to that back down to about 6.3.2, I
think, did not work as some assembly code inlines had been broken. I got
that fixed (see the email archives for this list for that patch), and sent
the patches to the pgsql maintainers who put them into atleast the 6.4.0
release.
	As for the more recent 6.4.{1,2}, I do not know. I have been on
vacation for the past three weeks, away from my Alphas :(, so I have not
had a chance to check. I should be back to them in a week and a half, and
I will check them out then.
	I do know there are still some lingering issues on date handling
on the alpha that need to be resolved, so don't expect everything to be
perfect if you can get it to compile. TTYL.

----------------------------------------------------------------------------
|   "For to me to live is Christ, and to die is gain."                     |
|                                            --- Philippians 1:21 (KJV)    |
----------------------------------------------------------------------------
|  Ryan Kirkpatrick  |  Boulder, Colorado  | rkirkpat@nag.cs.colorado.edu  |
----------------------------------------------------------------------------
|               http://www-ugrad.cs.colorado.edu/~rkirkpat/                |
----------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-01-06 15:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <rick@hojpoj.independence.net>
1998-10-16  6:39 ` Postgresql Larry Zimmerman
1999-01-03  0:30 postgreSQL Jonathan Vafai
1999-01-04 20:03 ` postgreSQL Chris Albertson
1999-01-06 14:48 ` postgreSQL Ryan Kirkpatrick
  -- strict thread matches above, loose matches on Subject: below --
1998-10-15 20:26 Postgresql Peter Rye
1998-10-16  1:06 ` Postgresql Adrian Gartland
1998-10-16  6:50   ` Postgresql Peter Rye
1998-10-16  5:58 ` Postgresql Rick Stewart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox