mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix duplicate OIDs introduced by SECURITY LABEL patch.
Report by Shigeru Hanada.
This commit is contained in:
		@@ -53,6 +53,6 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*							yyyymmddN */
 | 
					/*							yyyymmddN */
 | 
				
			||||||
#define CATALOG_VERSION_NO	201009271
 | 
					#define CATALOG_VERSION_NO	201009281
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -281,8 +281,8 @@ DECLARE_UNIQUE_INDEX(pg_default_acl_oid_index, 828, on pg_default_acl using btre
 | 
				
			|||||||
DECLARE_UNIQUE_INDEX(pg_db_role_setting_databaseid_rol_index, 2965, on pg_db_role_setting using btree(setdatabase oid_ops, setrole oid_ops));
 | 
					DECLARE_UNIQUE_INDEX(pg_db_role_setting_databaseid_rol_index, 2965, on pg_db_role_setting using btree(setdatabase oid_ops, setrole oid_ops));
 | 
				
			||||||
#define DbRoleSettingDatidRolidIndexId	2965
 | 
					#define DbRoleSettingDatidRolidIndexId	2965
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DECLARE_UNIQUE_INDEX(pg_seclabel_object_index, 3038, on pg_seclabel using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops, provider text_ops));
 | 
					DECLARE_UNIQUE_INDEX(pg_seclabel_object_index, 3597, on pg_seclabel using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops, provider text_ops));
 | 
				
			||||||
#define SecLabelObjectIndexId				3038
 | 
					#define SecLabelObjectIndexId				3597
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* last step of initialization script: build the indexes declared above */
 | 
					/* last step of initialization script: build the indexes declared above */
 | 
				
			||||||
BUILD_INDICES
 | 
					BUILD_INDICES
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,9 +18,9 @@
 | 
				
			|||||||
 *		typedef struct FormData_pg_seclabel
 | 
					 *		typedef struct FormData_pg_seclabel
 | 
				
			||||||
 * ----------------
 | 
					 * ----------------
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
#define SecLabelRelationId		3037
 | 
					#define SecLabelRelationId		3596
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CATALOG(pg_seclabel,3037) BKI_WITHOUT_OIDS
 | 
					CATALOG(pg_seclabel,3596) BKI_WITHOUT_OIDS
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	Oid			objoid;		/* OID of the object itself */
 | 
						Oid			objoid;		/* OID of the object itself */
 | 
				
			||||||
	Oid			classoid;	/* OID of table containing the object */
 | 
						Oid			classoid;	/* OID of table containing the object */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,7 @@ DECLARE_TOAST(pg_constraint, 2832, 2833);
 | 
				
			|||||||
DECLARE_TOAST(pg_description, 2834, 2835);
 | 
					DECLARE_TOAST(pg_description, 2834, 2835);
 | 
				
			||||||
DECLARE_TOAST(pg_proc, 2836, 2837);
 | 
					DECLARE_TOAST(pg_proc, 2836, 2837);
 | 
				
			||||||
DECLARE_TOAST(pg_rewrite, 2838, 2839);
 | 
					DECLARE_TOAST(pg_rewrite, 2838, 2839);
 | 
				
			||||||
DECLARE_TOAST(pg_seclabel, 3039, 3040);
 | 
					DECLARE_TOAST(pg_seclabel, 3598, 3599);
 | 
				
			||||||
DECLARE_TOAST(pg_statistic, 2840, 2841);
 | 
					DECLARE_TOAST(pg_statistic, 2840, 2841);
 | 
				
			||||||
DECLARE_TOAST(pg_trigger, 2336, 2337);
 | 
					DECLARE_TOAST(pg_trigger, 2336, 2337);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user