patch for src/backends/catalog/genbki.sh.in - Mailing list pgsql-patches

From Achim Gottinger
Subject patch for src/backends/catalog/genbki.sh.in
Date
Msg-id 3A719DCC.35E3A6A7@gottinger.de
Whole thread Raw
Responses Re: patch for src/backends/catalog/genbki.sh.in
List pgsql-patches
Hi,

I attached a patch to that mail that is required if you use sed 3.02.80
instead of 3.08.
Sed now treats \n as an escape sequence. Old sed ignored the \ so this
patch removes the \.
This issue occures in postgres-7.0.3 and 7.1-beta3 and leads to a
segfault or error in initdb because
global1.bki.source and local1_template1.bki.source are generated wrong (
ame instead of name ).

Bye Achim
--- genbki.sh.orig    Fri Jan 26 18:09:57 2001
+++ genbki.sh.in    Fri Jan 26 18:09:57 2001
@@ -86,7 +86,7 @@
     -e "s/[     ]Oid/\ oid/g" \
     -e "s/[     ]NameData/\ name/g" \
     -e "s/^Oid/oid/g" \
-    -e "s/^NameData/\name/g" \
+    -e "s/^NameData/name/g" \
     -e "s/(NameData/(name/g" \
     -e "s/(Oid/(oid/g" \
     -e "s/NAMEDATALEN/$NAMEDATALEN/g" \

pgsql-patches by date:

Previous
From: Peter T Mount
Date:
Subject: Re: [JDBC] Re: Patch for jdbc Makefile
Next
From: Jason Schroeder
Date:
Subject: configure.in patch for readline and curses.