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

Commit3433c6b

Browse files
committed
Remove TOAST table from pg_database
The only toastable column now is datacl, but we don't really supportlong ACLs anyway. The TOAST table should have been removed when thepg_db_role_setting catalog was introduced in commit2eda8df, but I forgot to do that.Per -hackers discussion on March 2011.
1 parenta5c1a19 commit3433c6b

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

‎src/backend/catalog/catalog.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,7 @@ IsSharedRelation(Oid relationId)
402402
relationId==DbRoleSettingDatidRolidIndexId)
403403
return true;
404404
/* These are their toast tables and toast indexes (see toasting.h) */
405-
if (relationId==PgDatabaseToastTable||
406-
relationId==PgDatabaseToastIndex||
407-
relationId==PgShdescriptionToastTable||
405+
if (relationId==PgShdescriptionToastTable||
408406
relationId==PgShdescriptionToastIndex||
409407
relationId==PgDbRoleSettingToastTable||
410408
relationId==PgDbRoleSettingToastIndex)

‎src/include/catalog/catversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO201202271
56+
#defineCATALOG_VERSION_NO201203011
5757

5858
#endif

‎src/include/catalog/toasting.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ DECLARE_TOAST(pg_statistic, 2840, 2841);
5050
DECLARE_TOAST(pg_trigger,2336,2337);
5151

5252
/* shared catalogs */
53-
DECLARE_TOAST(pg_database,2844,2845);
54-
#definePgDatabaseToastTable 2844
55-
#definePgDatabaseToastIndex 2845
5653
DECLARE_TOAST(pg_shdescription,2846,2847);
5754
#definePgShdescriptionToastTable 2846
5855
#definePgShdescriptionToastIndex 2847

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp