From: Tom Lane Date: Sat, 26 Sep 2009 23:22:48 +0000 (+0000) Subject: Hmm, seems a lot of the buildfarm is running versions of awk that X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=914bc4d986dba4b580af671bfe5f3ef146818c63;p=users%2Fsimon%2Fpostgres.git Hmm, seems a lot of the buildfarm is running versions of awk that don't have gensub(). Use sub() instead, tedious though it be. --- diff --git a/src/backend/catalog/genbki.sh b/src/backend/catalog/genbki.sh index d597e8fe8a..9e0232c2f3 100644 --- a/src/backend/catalog/genbki.sh +++ b/src/backend/catalog/genbki.sh @@ -329,7 +329,10 @@ comment_level > 0 { next; } without_oids = " without_oids"; } if ($0 ~ /BKI_ROWTYPE_OID\([0-9]*\)/) { - rowtype_oid = gensub(/^.*BKI_ROWTYPE_OID\(([0-9]*)\).*$/, " rowtype_oid \\1", 1); + tmp = $0; + sub(/^.*BKI_ROWTYPE_OID\(/, "", tmp); + sub(/\).*$/, "", tmp); + rowtype_oid = " rowtype_oid " tmp; } i = 1;