]> granicus.if.org Git - postgresql/commitdiff
Remove TOAST table from pg_database
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 29 Feb 2012 02:43:36 +0000 (23:43 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 1 Mar 2012 15:50:52 +0000 (12:50 -0300)
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
2eda8dfb52ed9962920282d8384da8bb4c22514d, but I forgot to do that.

Per -hackers discussion on March 2011.

src/backend/catalog/catalog.c
src/include/catalog/catversion.h
src/include/catalog/toasting.h

index c1f1db9a3291f2b72034983ce91c47d2bcc9e7f8..2547f33552ea681584fb56bcccd994c7beb4ccaf 100644 (file)
@@ -402,9 +402,7 @@ IsSharedRelation(Oid relationId)
                relationId == DbRoleSettingDatidRolidIndexId)
                return true;
        /* These are their toast tables and toast indexes (see toasting.h) */
-       if (relationId == PgDatabaseToastTable ||
-               relationId == PgDatabaseToastIndex ||
-               relationId == PgShdescriptionToastTable ||
+       if (relationId == PgShdescriptionToastTable ||
                relationId == PgShdescriptionToastIndex ||
                relationId == PgDbRoleSettingToastTable ||
                relationId == PgDbRoleSettingToastIndex)
index 8451dfde040a34d2c107d3735e123105783feca7..e5fbbfc8fda6a730a76d733356001db4504d5e78 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                                                     yyyymmddN */
-#define CATALOG_VERSION_NO     201202271
+#define CATALOG_VERSION_NO     201203011
 
 #endif
index a4f1718a2d80783be87edb9b97cb7f466a43767e..22211cbe3f375622e2ed4cbeffcadb6588c299e1 100644 (file)
@@ -50,9 +50,6 @@ DECLARE_TOAST(pg_statistic, 2840, 2841);
 DECLARE_TOAST(pg_trigger, 2336, 2337);
 
 /* shared catalogs */
-DECLARE_TOAST(pg_database, 2844, 2845);
-#define PgDatabaseToastTable 2844
-#define PgDatabaseToastIndex 2845
 DECLARE_TOAST(pg_shdescription, 2846, 2847);
 #define PgShdescriptionToastTable 2846
 #define PgShdescriptionToastIndex 2847