dbTalk Databases Forums  

Re: [BUGS] [ADMIN] INITDB-error - end-of-copy marker error

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] [ADMIN] INITDB-error - end-of-copy marker error in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] [ADMIN] INITDB-error - end-of-copy marker error - 04-29-2004 , 03:18 PM






JC Jan Christensen <jan.christensen (AT) riva-systems (DOT) dk> writes:
Quote:
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;

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.