Opps... that was simple bug.
I don't understand why works on x86, why not on sparc (gcc?), but this small
patch should correct the error.

On Fri, 28 Jan 2000, Peter Vazsonyi wrote:

> [postgres@sun2 pgsql]$ initdb -r $PWD -l /usr/local/pgsql/lib/
> 
> We are initializing the database system with username postgres (uid=40).
> This user will own all the files and must also own the server process.
> 
> Creating template database in /var/lib/pgsql/base/template1
> ERROR:  Attribute 'aggtransfn1' is repeated
> ERROR:  Attribute 'aggtransfn1' is repeated

--
 nek;(

--- src/backend/utils/adt/name.c.orig   Mon Jan 31 14:26:03 2000
+++ src/backend/utils/adt/name.c        Mon Jan 31 14:26:50 2000
@@ -89,3 +89,3 @@ nameeq(NameData *arg1, NameData *arg2)
        else
-               return (bool) strncmp(arg1->data, arg2->data, NAMEDATALEN) == 0;
+               return (bool) (strncmp(arg1->data, arg2->data, NAMEDATALEN) == 0);
 }

Reply via email to