pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: JC Jan Christensen <jan.christensen@riva-systems.dk>
Cc: 'jason@tishler.net' <jason@tishler.net>
Cc: 'pgsql-cygwin@postgresql.org' <pgsql-cygwin@postgresql.org>
Cc: 'pgsql-bugs@postgresql.org' <pgsql-bugs@postgresql.org>
Subject: Re: [ADMIN] INITDB-error - end-of-copy marker error
Date: Thu, 29 Apr 2004 16:00:27 -0400
Message-ID: <16168.1083268827@sss.pgh.pa.us> (raw)
In-Reply-To: <519590683F85D311A7C200105A4CFA334AF6A9@mailserver.riva-systems.dk>
References: <519590683F85D311A7C200105A4CFA334AF6A9@mailserver.riva-systems.dk>

JC Jan Christensen <jan.christensen@riva-systems.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

inline patch 1: initdb.sh (+1/-5 lines) download inline-1.patchIndex: 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;

view thread (6+ messages)  latest in thread

Message-ID: <16168.1083268827@sss.pgh.pa.us>
Permalink:  ../16168.1083268827@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16168.1083268827@sss.pgh.pa.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jan.christensen@riva-systems.dk, jason@tishler.net, pgsql-cygwin@postgresql.org, pgsql-bugs@postgresql.org
  Subject: Re: [ADMIN] INITDB-error - end-of-copy marker error
  In-Reply-To: <16168.1083268827@sss.pgh.pa.us>
  References: <519590683F85D311A7C200105A4CFA334AF6A9@mailserver.riva-systems.dk> <16168.1083268827@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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