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 d597e8fe8ac04b0e30b3908e53afb7cdb7524f47..9e0232c2f366799affac99ac9becb64d925325ef 100644 (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;