Fix thinko: errmsg -> ereport.
authorTom Lane
Thu, 19 Nov 2015 19:16:39 +0000 (14:16 -0500)
committerTom Lane
Thu, 19 Nov 2015 19:16:45 +0000 (14:16 -0500)
Silly mistake in my commit 09cecdf285ea9f51, reported by Erik Rijkers.

The fact that the buildfarm didn't find this implies that we are not
testing Perl builds that lack MULTIPLICITY, which is a bit disturbing
from a coverage standpoint.  Until today I'd have said nobody cared
about such configurations anymore; but maybe not.

src/pl/plperl/plperl.c

index eb25ffae939313b318945a432106b51d28981f41..549034f7640badc97f8a6ef8c09e562e14039865 100644 (file)
@@ -640,9 +640,9 @@ select_perl_context(bool trusted)
        else
            plperl_untrusted_init();
 #else
-       errmsg(ERROR,
-              (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-               errmsg("cannot allocate multiple Perl interpreters on this platform")));
+       ereport(ERROR,
+               (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+                errmsg("cannot allocate multiple Perl interpreters on this platform")));
 #endif
    }