Make setseed() return void, rather than an int4 without any use. Per
authorNeil Conway <neilc@samurai.com>
Sat, 20 Jan 2007 21:47:10 +0000 (21:47 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 20 Jan 2007 21:47:10 +0000 (21:47 +0000)
pgsql-patches discussion of September 20, 2006. Bump the catversion.

src/backend/utils/adt/float.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h

index fe3cc8215ed53a30f985db6228f7a770f0e570b6..a123d106fac5109f38387386b653fb961d614241 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.147 2007/01/16 21:41:13 neilc Exp $
+ *   $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.148 2007/01/20 21:47:10 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1787,7 +1787,7 @@ setseed(PG_FUNCTION_ARGS)
 
    srandom((unsigned int) iseed);
 
-   PG_RETURN_INT32(iseed);
+   PG_RETURN_VOID();
 }
 
 
index 896f1513fb811719bbf67e3b7098631163315ffb..7e2b19cc9e895d2f50bacd80c7b003f4c45f21f2 100644 (file)
@@ -37,7 +37,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.373 2007/01/20 09:27:19 petere Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.374 2007/01/20 21:47:10 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -53,6 +53,6 @@
  */
 
 /*                         yyyymmddN */
-#define CATALOG_VERSION_NO 200701201
+#define CATALOG_VERSION_NO 200701202
 
 #endif
index f22a0d15b893bfb70acf5c256b1b9e7e496c5c25..d8f121aaaee3f2f9400f1c5c78d086cb65bf5592 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.438 2007/01/20 09:27:19 petere Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.439 2007/01/20 21:47:10 neilc Exp $
  *
  * NOTES
  *   The script catalog/genbki.sh reads this file and generates .bki
@@ -2134,7 +2134,7 @@ DESCR("compare");
 
 DATA(insert OID = 1598 (  random           PGNSP PGUID 12 f f t f v 0 701 "" _null_ _null_ _null_  drandom - _null_ ));
 DESCR("random value");
-DATA(insert OID = 1599 (  setseed          PGNSP PGUID 12 f f t f v 1  23 "701" _null_ _null_ _null_ setseed - _null_ ));
+DATA(insert OID = 1599 (  setseed          PGNSP PGUID 12 f f t f v 1 2278 "701" _null_ _null_ _null_ setseed - _null_ ));
 DESCR("set random seed");
 
 /* OIDS 1600 - 1699 */