From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | JC Jan Christensen <jan(dot)christensen(at)riva-systems(dot)dk> |
Cc: | "'jason(at)tishler(dot)net'" <jason(at)tishler(dot)net>, "'pgsql-cygwin(at)postgresql(dot)org'" <pgsql-cygwin(at)postgresql(dot)org>, "'pgsql-bugs(at)postgresql(dot)org'" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: [ADMIN] INITDB-error - end-of-copy marker error |
Date: | 2004-04-29 20:00:27 |
Message-ID: | 16168.1083268827@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-bugs pgsql-cygwin |
JC Jan Christensen <jan(dot)christensen(at)riva-systems(dot)dk> writes:
> creating system views....ok
> loading pg_description...ERROR: end-of-copy marker does
> not match previous newline style
> CONTEXT: COPY tmp_pg_description, line 1542: ""
> initdb: failed
I was about to say I thought we'd fixed that in 7.4.2 ... but on
inspection it seems only one of the two uses of COPY got fixed :-(.
Try the attached patch.
regards, tom lane
Index: initdb.sh
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/initdb/initdb.sh,v
retrieving revision 1.204.2.1
retrieving revision 1.204.2.2
diff -c -r1.204.2.1 -r1.204.2.2
*** initdb.sh 14 Jan 2004 03:47:12 -0000 1.204.2.1
--- initdb.sh 29 Apr 2004 19:56:35 -0000 1.204.2.2
***************
*** 1043,1053 ****
classname name, \
objsubid int4, \
description text) WITHOUT OIDS;
! COPY tmp_pg_description FROM STDIN;
! EOF
! cat "$POSTGRES_DESCR"
! cat <<EOF
! \.
INSERT INTO pg_description SELECT \
t.objoid, c.oid, t.objsubid, t.description \
FROM tmp_pg_description t, pg_class c WHERE c.relname = t.classname;
--- 1043,1049 ----
classname name, \
objsubid int4, \
description text) WITHOUT OIDS;
! COPY tmp_pg_description FROM '$POSTGRES_DESCR';
INSERT INTO pg_description SELECT \
t.objoid, c.oid, t.objsubid, t.description \
FROM tmp_pg_description t, pg_class c WHERE c.relname = t.classname;
From | Date | Subject | |
---|---|---|---|
Next Message | Christian Medins | 2004-04-29 20:26:40 | Error when invoking the postmaster |
Previous Message | jmauricio | 2004-04-29 15:55:36 | unsubscribe |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Necchi | 2004-04-30 00:44:45 | Problems.... |
Previous Message | Aldrey Galindo | 2004-04-28 19:51:32 | Erro |
From | Date | Subject | |
---|---|---|---|
Next Message | Phil Walker | 2004-05-01 19:48:13 | Re: postmaster cygwin1.dll SIGSEGV problem, easy to duplicate. |
Previous Message | Mike Preston | 2004-04-29 16:32:35 | postgresql date time at Cygwin On Windows 2000 - workaround available? |