diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-23 14:18:57 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-23 14:18:57 +0000 |
commit | 6c61b0d93cd5378bfb64959b9e738fe02413cefe (patch) | |
tree | 9fd3878b9e628426cfba5ed12cefc38aae59efe9 /src/test/regress/input/create_function_1.source | |
parent | 5ddeffb676e6bb64b82fc98576f3fe54f8671527 (diff) | |
download | postgresql-6c61b0d93cd5378bfb64959b9e738fe02413cefe.tar.gz postgresql-6c61b0d93cd5378bfb64959b9e738fe02413cefe.zip |
In the stats test, delay for the stats collector to catch up using a
function that actually sleeps, instead of busy-waiting. Perhaps this
will resolve some of the intermittent stats failures we keep seeing.
Diffstat (limited to 'src/test/regress/input/create_function_1.source')
-rw-r--r-- | src/test/regress/input/create_function_1.source | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/test/regress/input/create_function_1.source b/src/test/regress/input/create_function_1.source index f657e3740cd..14b90ca1a1b 100644 --- a/src/test/regress/input/create_function_1.source +++ b/src/test/regress/input/create_function_1.source @@ -5,22 +5,22 @@ CREATE FUNCTION widget_in(cstring) RETURNS widget AS '@abs_builddir@/regress@DLSUFFIX@' - LANGUAGE 'c'; + LANGUAGE 'C' STRICT; CREATE FUNCTION widget_out(widget) RETURNS cstring AS '@abs_builddir@/regress@DLSUFFIX@' - LANGUAGE 'c'; + LANGUAGE 'C' STRICT; CREATE FUNCTION int44in(cstring) RETURNS city_budget AS '@abs_builddir@/regress@DLSUFFIX@' - LANGUAGE 'c'; + LANGUAGE 'C' STRICT; CREATE FUNCTION int44out(city_budget) RETURNS cstring AS '@abs_builddir@/regress@DLSUFFIX@' - LANGUAGE 'c'; + LANGUAGE 'C' STRICT; CREATE FUNCTION check_primary_key () RETURNS trigger @@ -50,7 +50,12 @@ CREATE FUNCTION ttdummy () CREATE FUNCTION set_ttdummy (int4) RETURNS int4 AS '@abs_builddir@/regress@DLSUFFIX@' - LANGUAGE 'C'; + LANGUAGE 'C' STRICT; + +CREATE FUNCTION do_sleep (int4) + RETURNS void + AS '@abs_builddir@/regress@DLSUFFIX@' + LANGUAGE 'C' STRICT; -- Things that shouldn't work: |