pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Attribute 'aggtransfn1' is repeated
3+ messages / 2 participants
[nested] [flat]

* Attribute 'aggtransfn1' is repeated
@ 2000-01-28 11:58 Peter Vazsonyi <neko@kredit.sth.szif.hu>
  2000-01-31 14:13 ` Re: [ADMIN] Attribute 'aggtransfn1' is repeated Peter Vazsonyi <neko@kredit.sth.szif.hu>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Vazsonyi @ 2000-01-28 11:58 UTC (permalink / raw)
  To: pgsql-admin@hub.org

I installed postgresql-v6.5.3 on my sparc64-linux from source.
When that was done, i tried to run initdb, and:
[postgres@sun2 pgsql]$ PATH=$PATH:/usr/local/pgsql/bin
[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
initdb: could not create template database
initdb: cleaning up by wiping out /var/lib/pgsql/base/template1
From $PGLIB/local1_template1.bki.source
create pg_aggregate
 (
 aggname = name ,
 aggowner = int4 ,
 aggtransfn1 = regproc ,
 aggtransfn2 = regproc ,
 aggfinalfn = regproc ,
 aggbasetype = oid ,
 aggtranstype1 = oid ,
 aggtranstype2 = oid ,
 aggfinaltype = oid ,
 agginitval1 = text ,
 agginitval2 = text
 )
So i try to change this:
inline patch 1: local1_template1.bki.source Fri Jan 28 12:33:39 2000 (+2/-2 lines) download inline-1.patch--- local1_template1.bki.source.orig Fri Jan 28 12:34:07 2000 +++ local1_template1.bki.source Fri Jan 28 12:33:39 2000 @@ -2235,8 +2235,8 @@ create pg_aggregate aggowner = int4 , - aggtransfn1 = regproc , - aggtransfn2 = regproc , + 1aggtransfn = regproc , + 2aggtransfn = regproc , aggfinalfn = regproc ,
And now the ERROR message changed: ERROR: Attribute 'agginitval1' is repeated Maybe there are some problems, with length of field names, but the same source works properly on a i586-linux. I run configure script as: ./configure --enable-locale --with-template=linux_sparc I had problems with daily snapshot too, but the error was something else. Can anybody help me? -- nek;( ^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: [ADMIN] Attribute 'aggtransfn1' is repeated
  2000-01-28 11:58 Attribute 'aggtransfn1' is repeated Peter Vazsonyi <neko@kredit.sth.szif.hu>
@ 2000-01-31 14:13 ` Peter Vazsonyi <neko@kredit.sth.szif.hu>
  2000-02-01 01:51   ` Re: [HACKERS] Re: [ADMIN] Attribute 'aggtransfn1' is repeated Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Vazsonyi @ 2000-01-31 14:13 UTC (permalink / raw)
  To: pgsql-admin@hub.org; +Cc: pgsql-hackers@postgresql.org

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;(

Attachments:

nameerr.patch (text/plain, 374B) download --- 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); }
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: [HACKERS] Re: [ADMIN] Attribute 'aggtransfn1' is repeated
  2000-01-28 11:58 Attribute 'aggtransfn1' is repeated Peter Vazsonyi <neko@kredit.sth.szif.hu>
  2000-01-31 14:13 ` Re: [ADMIN] Attribute 'aggtransfn1' is repeated Peter Vazsonyi <neko@kredit.sth.szif.hu>
@ 2000-02-01 01:51   ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2000-02-01 01:51 UTC (permalink / raw)
  To: Peter Vazsonyi <neko@kredit.sth.szif.hu>; +Cc: pgsql-admin@hub.org; pgsql-hackers@postgresql.org

> 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.

Already patched in current tree.  Thanks.


> 
> 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;(
> 
Content-Description: 

[Attachment, skipping...]


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



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


end of thread, other threads:[~2000-02-01 01:51 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-28 11:58 Attribute 'aggtransfn1' is repeated Peter Vazsonyi <neko@kredit.sth.szif.hu>
2000-01-31 14:13 ` Peter Vazsonyi <neko@kredit.sth.szif.hu>
2000-02-01 01:51   ` Bruce Momjian <pgman@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox