summaryrefslogtreecommitdiff
path: root/src/bin/initdb
diff options
context:
space:
mode:
authorRobert Haas2022-01-20 13:56:54 +0000
committerRobert Haas2022-01-20 14:01:12 +0000
commitab4fd4f868edb4a59302db52857f4fe7c8d81f42 (patch)
tree3e8ea1e6d17546fdfb961edb6fd3e85207525fd6 /src/bin/initdb
parentb700f96cffd91efbe93827d22c76b8f069809450 (diff)
Remove 'datlastsysoid'.
It hasn't been used for anything for a long time. Up until recently, we still queried it when dumping very old servers, but since commit 30e7c175b81d53c0f60f6ad12d1913a6d7d77008, there's no longer any code at all that cares about it. Discussion: http://postgr.es/m/CA+Tgmoa14=BRq0WEd0eevjEMn9EkghDB1FZEkBw7+UAb7tF49A@mail.gmail.com
Diffstat (limited to 'src/bin/initdb')
-rw-r--r--src/bin/initdb/initdb.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index f964a000f80..0a2dba7d18e 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -1842,13 +1842,6 @@ make_template0(FILE *cmdfd)
"CREATE DATABASE template0 IS_TEMPLATE = true ALLOW_CONNECTIONS = false;\n\n",
/*
- * We use the OID of template0 to determine datlastsysoid
- */
- "UPDATE pg_database SET datlastsysoid = "
- " (SELECT oid FROM pg_database "
- " WHERE datname = 'template0');\n\n",
-
- /*
* Explicitly revoke public create-schema and create-temp-table
* privileges in template1 and template0; else the latter would be on
* by default