initdb fails: problem with array?

Started by Andreas Pflugover 22 years ago5 messages
#1Andreas Pflug
pgadmin@pse-consulting.de

The current snapshot won't initdb, because running
information_schema.sql fails.
The two occurences of "WHERE u.usesysid = ANY( g.grolist )" are the
problem. Replacing the ANY clause with some dummy will let everything
run ok.

select usename from pg_user, pg_group where usesysid = ANY (grolist)
will yield ERROR: syntaxt error at or near "grolist", so I believe that
the ANY(ARRAY) support is broken.

Regards,
Andreas

#2Joe Conway
mail@joeconway.com
In reply to: Andreas Pflug (#1)
Re: initdb fails: problem with array?

Andreas Pflug wrote:

The current snapshot won't initdb, because running
information_schema.sql fails.
The two occurences of "WHERE u.usesysid = ANY( g.grolist )" are the
problem. Replacing the ANY clause with some dummy will let everything
run ok.

select usename from pg_user, pg_group where usesysid = ANY (grolist)
will yield ERROR: syntaxt error at or near "grolist", so I believe that
the ANY(ARRAY) support is broken.

I'm not seeing any problems with a fresh copy of cvs from 15 minutes
after you posted. Are you still having the problem?

Joe

#3Andreas Pflug
pgadmin@pse-consulting.de
In reply to: Joe Conway (#2)
Re: initdb fails: problem with array?

Joe Conway wrote:

Andreas Pflug wrote:

The current snapshot won't initdb, because running
information_schema.sql fails.
The two occurences of "WHERE u.usesysid = ANY( g.grolist )" are the
problem. Replacing the ANY clause with some dummy will let everything
run ok.

select usename from pg_user, pg_group where usesysid = ANY (grolist)
will yield ERROR: syntaxt error at or near "grolist", so I believe
that the ANY(ARRAY) support is broken.

I'm not seeing any problems with a fresh copy of cvs from 15 minutes
after you posted. Are you still having the problem?

I just checked out (at the moment hba.c changed, so I had to redo it),
make clean, make, pgsql stop, make install, pgsql start and it's still
there.

Regards,
Andreas

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andreas Pflug (#3)
Re: initdb fails: problem with array?

Andreas Pflug <pgadmin@pse-consulting.de> writes:

I just checked out (at the moment hba.c changed, so I had to redo it),
make clean, make, pgsql stop, make install, pgsql start and it's still
there.

It works fine for me too. Try removing
src/backend/parser/gram.c and src/backend/parser/parse.h
to force bison to get re-run when you build.

regards, tom lane

#5Andreas Pflug
pgadmin@pse-consulting.de
In reply to: Tom Lane (#4)
Re: initdb fails: problem with array?

Tom Lane wrote:

Andreas Pflug <pgadmin@pse-consulting.de> writes:

I just checked out (at the moment hba.c changed, so I had to redo it),
make clean, make, pgsql stop, make install, pgsql start and it's still
there.

It works fine for me too. Try removing
src/backend/parser/gram.c and src/backend/parser/parse.h
to force bison to get re-run when you build.

Thanks Tom,

rerunning bison did the job.

Regards,
Andreas