Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitddd6ff2

Browse files
committed
Add database comments to template0 and postgres databases, and improve
the comments on the template1 database. No catalog version bump becausethey are just comments.
1 parentf0f3617 commitddd6ff2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,8 @@ make_template0(void)
19761976
"REVOKE CREATE,TEMPORARY ON DATABASE template1 FROM public;\n",
19771977
"REVOKE CREATE,TEMPORARY ON DATABASE template0 FROM public;\n",
19781978

1979+
"COMMENT ON DATABASE template0 IS 'unmodifiable empty database';\n",
1980+
19791981
/*
19801982
* Finally vacuum to clean up dead rows in pg_database
19811983
*/
@@ -2011,6 +2013,7 @@ make_postgres(void)
20112013
constchar**line;
20122014
staticconstchar*postgres_setup[]= {
20132015
"CREATE DATABASE postgres;\n",
2016+
"COMMENT ON DATABASE postgres IS 'default administrative connection database';\n",
20142017
NULL
20152018
};
20162019

‎src/include/catalog/pg_database.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ typedef FormData_pg_database *Form_pg_database;
7171
#defineAnum_pg_database_datacl12
7272

7373
DATA(insertOID=1 (template1PGUIDENCODING"LC_COLLATE""LC_CTYPE"tt-1001663_null_));
74-
SHDESCR("default templatedatabase");
74+
SHDESCR("default templatefor new databases");
7575
#defineTemplateDbOid1
7676

7777
#endif/* PG_DATABASE_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp