Skip to content

Commit 3433c6b

Browse files
committed
Remove TOAST table from pg_database
The only toastable column now is datacl, but we don't really support long ACLs anyway. The TOAST table should have been removed when the pg_db_role_setting catalog was introduced in commit 2eda8df, but I forgot to do that. Per -hackers discussion on March 2011.
1 parent a5c1a19 commit 3433c6b

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-
#define CATALOG_VERSION_NO 201202271
56+
#define CATALOG_VERSION_NO 201203011
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-
#define PgDatabaseToastTable 2844
55-
#define PgDatabaseToastIndex 2845
5653
DECLARE_TOAST(pg_shdescription, 2846, 2847);
5754
#define PgShdescriptionToastTable 2846
5855
#define PgShdescriptionToastIndex 2847

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy