aboutsummaryrefslogtreecommitdiff
path: root/src/bin/initdb/initdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/initdb/initdb.c')
-rw-r--r--src/bin/initdb/initdb.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index ec6d0bdf8e9..7f1534aebb4 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -151,8 +151,6 @@ static int wal_segment_size_mb;
static const char *progname;
static int encodingid;
static char *bki_file;
-static char *desc_file;
-static char *shdesc_file;
static char *hba_file;
static char *ident_file;
static char *conf_file;
@@ -1644,38 +1642,11 @@ setup_sysviews(FILE *cmdfd)
}
/*
- * load description data
+ * fill in extra description data
*/
static void
setup_description(FILE *cmdfd)
{
- PG_CMD_PUTS("CREATE TEMP TABLE tmp_pg_description ( "
- " objoid oid, "
- " classname name, "
- " objsubid int4, "
- " description text);\n\n");
-
- PG_CMD_PRINTF("COPY tmp_pg_description FROM E'%s';\n\n",
- escape_quotes(desc_file));
-
- PG_CMD_PUTS("INSERT INTO pg_description "
- " SELECT t.objoid, c.oid, t.objsubid, t.description "
- " FROM tmp_pg_description t, pg_class c "
- " WHERE c.relname = t.classname;\n\n");
-
- PG_CMD_PUTS("CREATE TEMP TABLE tmp_pg_shdescription ( "
- " objoid oid, "
- " classname name, "
- " description text);\n\n");
-
- PG_CMD_PRINTF("COPY tmp_pg_shdescription FROM E'%s';\n\n",
- escape_quotes(shdesc_file));
-
- PG_CMD_PUTS("INSERT INTO pg_shdescription "
- " SELECT t.objoid, c.oid, t.description "
- " FROM tmp_pg_shdescription t, pg_class c "
- " WHERE c.relname = t.classname;\n\n");
-
/* Create default descriptions for operator implementation functions */
PG_CMD_PUTS("WITH funcdescs AS ( "
"SELECT p.oid as p_oid, o.oid as o_oid, oprname "
@@ -1689,13 +1660,6 @@ setup_description(FILE *cmdfd)
" AND NOT EXISTS (SELECT 1 FROM pg_description "
" WHERE objoid = o_oid AND classoid = 'pg_operator'::regclass"
" AND description LIKE 'deprecated%');\n\n");
-
- /*
- * Even though the tables are temp, drop them explicitly so they don't get
- * copied into template0/postgres databases.
- */
- PG_CMD_PUTS("DROP TABLE tmp_pg_description;\n\n");
- PG_CMD_PUTS("DROP TABLE tmp_pg_shdescription;\n\n");
}
/*
@@ -2586,8 +2550,6 @@ void
setup_data_file_paths(void)
{
set_input(&bki_file, "postgres.bki");
- set_input(&desc_file, "postgres.description");
- set_input(&shdesc_file, "postgres.shdescription");
set_input(&hba_file, "pg_hba.conf.sample");
set_input(&ident_file, "pg_ident.conf.sample");
set_input(&conf_file, "postgresql.conf.sample");
@@ -2602,13 +2564,11 @@ setup_data_file_paths(void)
"VERSION=%s\n"
"PGDATA=%s\nshare_path=%s\nPGPATH=%s\n"
"POSTGRES_SUPERUSERNAME=%s\nPOSTGRES_BKI=%s\n"
- "POSTGRES_DESCR=%s\nPOSTGRES_SHDESCR=%s\n"
"POSTGRESQL_CONF_SAMPLE=%s\n"
"PG_HBA_SAMPLE=%s\nPG_IDENT_SAMPLE=%s\n",
PG_VERSION,
pg_data, share_path, bin_path,
username, bki_file,
- desc_file, shdesc_file,
conf_file,
hba_file, ident_file);
if (show_setting)
@@ -2616,8 +2576,6 @@ setup_data_file_paths(void)
}
check_input(bki_file);
- check_input(desc_file);
- check_input(shdesc_file);
check_input(hba_file);
check_input(ident_file);
check_input(conf_file);