Hmm, seems a lot of the buildfarm is running versions of awk that
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Sep 2009 23:22:48 +0000 (23:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Sep 2009 23:22:48 +0000 (23:22 +0000)
don't have gensub().  Use sub() instead, tedious though it be.

src/backend/catalog/genbki.sh

index bda9a380fdb94194af0de57a0bd56957bdc77e53..18625a47301733e15aea1ef8e0cd3c4ea63e18a3 100644 (file)
@@ -11,7 +11,7 @@
 #
 #
 # IDENTIFICATION
-#    $PostgreSQL: pgsql/src/backend/catalog/genbki.sh,v 1.47 2009/09/26 22:42:01 tgl Exp $
+#    $PostgreSQL: pgsql/src/backend/catalog/genbki.sh,v 1.48 2009/09/26 23:22:48 tgl Exp $
 #
 # NOTES
 #    non-essential whitespace is removed from the generated file.
@@ -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;