Skip site navigation (1) Skip section navigation (2)

Re: patch for src/backends/catalog/genbki.sh.in

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: achim(at)gentoo(dot)org
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: patch for src/backends/catalog/genbki.sh.in
Date: 2001-01-27 04:41:21
Message-ID: 200101270441.XAA03900@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
We discovered this a few weeks ago and fixed it.  You will not see it in
beta4.  Thanks.


> 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" \


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-01-27 09:12:54
Subject: Re: configure.in patch for readline and curses.
Previous:From: Tom LaneDate: 2001-01-27 01:14:58
Subject: Re: configure.in patch for readline and curses.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group