From: Galen Charlton Date: Wed, 26 Aug 2009 19:00:28 +0000 (+0000) Subject: declare expand_barcode to be STABLE X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=641f5cbd00dcad6973ef8def210ffbe0cbd96c3f declare expand_barcode to be STABLE As noticed by Jason, doing this gives a signficant performance boost. --- diff --git a/sql/base/base.sql b/sql/base/base.sql index 6ae7e39..3c12cc3 100644 --- a/sql/base/base.sql +++ b/sql/base/base.sql @@ -593,4 +593,4 @@ CREATE OR REPLACE FUNCTION migration_tools.expand_barcode (TEXT, TEXT, INTEGER, return $barcode if (length($prefix) + length($new_barcode) + length($suffix)) > $maxlen; return "$prefix$new_barcode$suffix"; -$$ LANGUAGE PLPERL; +$$ LANGUAGE PLPERL STABLE;