summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-09-26 23:22:48 +0000
committerTom Lane2009-09-26 23:22:48 +0000
commit914bc4d986dba4b580af671bfe5f3ef146818c63 (patch)
treee0af0ddda68bc1cc3f4773c6dc59cc37c960577a
parent0c8704aa57e9a78fdbfb270c49b4bd0d7060a167 (diff)
Hmm, seems a lot of the buildfarm is running versions of awk that
don't have gensub(). Use sub() instead, tedious though it be.
-rw-r--r--src/backend/catalog/genbki.sh5
1 files changed, 4 insertions, 1 deletions
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;