diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-11 20:12:43 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-11 20:12:43 +0000 |
commit | 782eefc580a503db4773cd177b17dcc6fd33b058 (patch) | |
tree | 047dfd54ec77992eb816e7b2250fec5f584eb1fb /src/test/regress/regress.c | |
parent | fb627b76ccc4c7074e37b6b94155864f6cbd1b23 (diff) | |
download | postgresql-782eefc580a503db4773cd177b17dcc6fd33b058.tar.gz postgresql-782eefc580a503db4773cd177b17dcc6fd33b058.zip |
Create a standard function pg_sleep() to sleep for a specified amount of time.
Replace the former ad-hoc implementation used in the regression tests.
Joachim Wieland
Diffstat (limited to 'src/test/regress/regress.c')
-rw-r--r-- | src/test/regress/regress.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/test/regress/regress.c b/src/test/regress/regress.c index 97fe608602a..7c58f950cbb 100644 --- a/src/test/regress/regress.c +++ b/src/test/regress/regress.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.64 2005/10/15 02:49:51 momjian Exp $ + * $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.65 2006/01/11 20:12:43 tgl Exp $ */ #include "postgres.h" @@ -26,7 +26,6 @@ extern char *reverse_name(char *string); extern int oldstyle_length(int n, text *t); extern Datum int44in(PG_FUNCTION_ARGS); extern Datum int44out(PG_FUNCTION_ARGS); -extern Datum do_sleep(PG_FUNCTION_ARGS); /* @@ -735,18 +734,3 @@ int44out(PG_FUNCTION_ARGS) *--walk = '\0'; PG_RETURN_CSTRING(result); } - -/* - * do_sleep - delay for N seconds - */ -PG_FUNCTION_INFO_V1(do_sleep); - -Datum -do_sleep(PG_FUNCTION_ARGS) -{ - int32 secs = PG_GETARG_INT32(0); - - pg_usleep(secs * 1000000L); - - PG_RETURN_VOID(); -} |