diff --git a/lib/modules/Sql.pmod/postgres.pike b/lib/modules/Sql.pmod/postgres.pike
index 3f240538f165005f0c75c2085499856fcbdceec6..fa8ddd8e223c110f8436f061d541dba331436a7b 100644
--- a/lib/modules/Sql.pmod/postgres.pike
+++ b/lib/modules/Sql.pmod/postgres.pike
@@ -2,10 +2,12 @@
  * This is part of the Postgres module for Pike.
  * (C) 1997 Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it>
  *
- * $Id: postgres.pike,v 1.4 1998/08/25 13:11:21 grubba Exp $
+ * $Id: postgres.pike,v 1.5 1998/10/17 02:54:58 grubba Exp $
  *
  */
 
+#if constant(Postgres.postgres)
+
 #define ERROR(X) throw (({X,backtrace()}))
 
 inherit Postgres.postgres: mo;
@@ -122,3 +124,9 @@ mapping(string:array(mixed)) list_fields (string table, void|string wild) {
 	}
 	return ret;
 }
+#else /* !constant(Postgres.postgres) */
+void create()
+{
+  destruct();
+}
+#endif /* constant(Postgres.postgres) */