diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc
index a5c11cedd55dffa71999ab05b73fe80832410868..8a013136aac1f90daec904d2fa3917f33a7c6ffb 100644
--- a/includes/database.pgsql.inc
+++ b/includes/database.pgsql.inc
@@ -145,7 +145,7 @@ function db_error() {
  * will be created.
  */
 function db_next_id($name) {
-  $id = db_result(db_query("SELECT nextval('public.%s_seq')", db_prefix_tables($name)));
+  $id = db_result(db_query("SELECT nextval('%s_seq')", db_prefix_tables($name)));
   return $id;
 }
 
@@ -234,4 +234,4 @@ function db_escape_string($text) {
  * @} End of "ingroup database".
  */
 
-?>
\ No newline at end of file
+?>