Re: [HACKERS] Error while restoring database

2001-10-22 Thread Johann Zuschlag
On Sat, 20 Oct 2001 12:36:16 -0400, Tom Lane wrote: >That's what you showed us already. What I'd like to see is the >original database contents, particularly > > select * from pg_operator where oid = 280343; > select * from pg_operator where oid = 280344; > >so we can see why pg_dump

Re: [HACKERS] Error while restoring database

2001-10-22 Thread Johann Zuschlag
On Sun, 21 Oct 2001 12:42:57 -0400, Tom Lane wrote: >>> select * from pg_operator where oid = 280343; >>> select * from pg_operator where oid = 280344; >> Attached you find the results of the above selects. > >Okay ... are there any rows in pg_operator with OID 280346 or 280347 ? Yes, seems so.

Re: [HACKERS] Error while restoring database

2001-10-22 Thread Johann Zuschlag
On Sun, 21 Oct 2001 14:14:05 -0400, Tom Lane wrote: >Looks like these are "shell" operator definitions left over from >commutator or negator forward references that were never satisfied. >pg_dump did the right thing to not dump them. I'd say that the backend >should never have accepted a shell o

Re: [HACKERS] Error while restoring database

2001-10-22 Thread Tom Lane
"Johann Zuschlag" <[EMAIL PROTECTED]> writes: >> Okay ... are there any rows in pg_operator with OID 280346 or 280347 ? > Yes, seems so. See the attachment. Again, the negator stuff > never worked for numeric. Looks like these are "shell" operator definitions left over from commutator or negator

Re: [HACKERS] Error while restoring database

2001-10-22 Thread Tom Lane
"Johann Zuschlag" <[EMAIL PROTECTED]> writes: >> select * from pg_operator where oid = 280343; >> select * from pg_operator where oid = 280344; > Attached you find the results of the above selects. Okay ... are there any rows in pg_operator with OID 280346 or 280347 ? reg

Re: [HACKERS] Error while restoring database

2001-10-22 Thread Tom Lane
"Johann Zuschlag" <[EMAIL PROTECTED]> writes: > create function numeric_neq(numeric,float8) returns bool as ' > select $1 = $2::numeric; > ' language 'sql'; > create operator <> ( > leftarg=numeric, > rightarg=float8, > procedure=numeric_neq, > commutator='<>', > negator='', ^

Re: [HACKERS] Error while restoring database

2001-10-20 Thread Tom Lane
"Johann Zuschlag" <[EMAIL PROTECTED]> writes: > Here is an excerpt of the original dump-file. That's what you showed us already. What I'd like to see is the original database contents, particularly select * from pg_operator where oid = 280343; select * from pg_operator where oid

Re: [HACKERS] Error while restoring database

2001-10-19 Thread Tom Lane
"Johann Zuschlag" <[EMAIL PROTECTED]> writes: > DEBUG: query: CREATE OPERATOR <> (PROCEDURE = numeric_neq , > LEFTARG = numeric , > RIGHTARG = double precision , > COMMUTATOR = <> , > NEGATOR = , > RESTRICT = eqsel , > JOIN = eqjoinsel ); > ERROR:

[HACKERS] Error while restoring database

2001-10-19 Thread Johann Zuschlag
Hi, Version 7.1.3, Linux 2.2.18 Following procedure: 1. pg_dump dbname > outfile Everything is fine. 2. Recreating the database on another system (same Versions) psql dbname < infile I get once: ERROR: parser: parse error at or near "," The rest works fine. Debug -d2 shows that recreating a