From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Tim McAuley <mcauleyt(at)tcd(dot)ie> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Subject: | initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Date: | 2003-09-26 15:01:34 |
Message-ID: | 15745.1064588494@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-jdbc |
Tim McAuley <mcauleyt(at)tcd(dot)ie> writes:
> Another question now. I am unable to compile Postgresql 7.4 beta 3 under
> cygwin (Windows 2K, using cgyipc 2).
> I am getting the error:
> "
> creating information schema... ERROR: end-of-copy marker does not match
> previous newline style
> CONTEXT: COPY FROM, line 361
> "
That's interesting. COPY is complaining because the \. terminator in
the file it's been fed has a different kind of newline after it than
the newlines earlier in the file (LF vs CR/LF, no doubt). The part
of the initdb script that must be causing this is
echo "COPY information_schema.sql_features (feature_id, feature_name, sub_feature_id, sub_feature_name, is_supported, comments) FROM STDIN;"
cat "$datadir"/sql_features.txt
echo "\."
) \
| "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely
echo "ok"
so it appears that cygwin's "echo" generates a different newline style
than what got put into sql_features.txt. A possible way to fix this is
to put the "\." line into sql_features.txt, but maybe there's a cleaner
answer. Peter, any thoughts?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2003-09-26 15:15:48 | Re: Good way to insert/update when you're not sure of duplicates? |
Previous Message | Marco Colombo | 2003-09-26 14:39:33 | newbie pl/pgsql question |
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew T. O'Connor | 2003-09-26 15:17:25 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Previous Message | Shridhar Daithankar | 2003-09-26 14:58:00 | Re: [HACKERS] Threads vs Processes |
From | Date | Subject | |
---|---|---|---|
Next Message | Stuart M Easterling | 2003-09-26 15:02:05 | problem with setting boolean value on AbstractJdbc1Statement |
Previous Message | Tim McAuley | 2003-09-26 14:00:30 | Re: sequence's plpgsql |