From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tim McAuley <mcauleyt(at)tcd(dot)ie>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Date: | 2003-09-27 17:13:32 |
Message-ID: | 200309271713.h8RHDWx16856@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-jdbc |
Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > OK, I have applied a patch to make initdb create a COPY file with
> > consistent end-of-line termination, so it passes the COPY EOL checking.
>
> Maybe instead we can change the COPY command to read the file directly and
> not via stdin? Then we don't need the \. marker.
Yes, we need a temp table then. The single-line fix seemed easier.
Also, the file is a mix of things from a file and echo's, it isn't just
the \.:
echo "UPDATE information_schema.sql_implementation_info SET character_value = '$combined_version' WHERE implementation_info_name = 'DBMS VERSION';"
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 "\."
) |
tr -d '\r' | # make newlines consistent for Win32
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Andre Truter | 2003-09-27 17:20:32 | Re: PostgreSQL Delphi |
Previous Message | Bruce Momjian | 2003-09-27 17:08:37 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2003-09-27 17:21:45 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Previous Message | Bruce Momjian | 2003-09-27 17:08:37 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2003-09-27 17:21:45 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Previous Message | Bruce Momjian | 2003-09-27 17:08:37 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |