Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite349584

Browse files
committed
Make dump files created by initdb have consistent EOL termination, to
pass COPY's EOL tests.
1 parent391dceb commite349584

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/bin/initdb/initdb.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
2828
# Portions Copyright (c) 1994, Regents of the University of California
2929
#
30-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.202 2003/09/2709:21:26 petere Exp $
30+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.203 2003/09/2716:27:57 momjian Exp $
3131
#
3232
#-------------------------------------------------------------------------
3333

@@ -1091,8 +1091,9 @@ $ECHO_N "creating information schema... "$ECHO_C
10911091
echo"COPY information_schema.sql_features (feature_id, feature_name, sub_feature_id, sub_feature_name, is_supported, comments) FROM STDIN;"
10921092
cat"$datadir"/sql_features.txt
10931093
echo"\."
1094-
) \
1095-
|"$PGPATH"/postgres$PGSQL_OPT template1> /dev/null|| exit_nicely
1094+
)|
1095+
tr -d'\r'|# make newlines consistent for Win32
1096+
"$PGPATH"/postgres$PGSQL_OPT template1> /dev/null|| exit_nicely
10961097
echo"ok"
10971098

10981099
$ECHO_N"vacuuming database template1..."$ECHO_C

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp