Michael Meskes <meskes@postgresql.org> writes:
>>> I just tried the latest Debian packages for beta4 and I still cannot
>>> initdb. It's the same old problem. Once I add a "\." to sql_features.txt
>>> it works well, but without it it errors out.
I have fixed this (I hope) using the approach Peter suggested: read
sql_features.txt using COPY FROM 'filename' instead of COPY FROM STDIN.
This avoids needing to make any assumptions about what sort of newlines
will be produced in a shell script.
regards, tom lane