@@ -303,7 +303,7 @@ static void MergeConstraintsIntoExisting(Relation child_rel, Relation parent_rel
303
303
static void StoreCatalogInheritance (Oid relationId , List * supers ,
304
304
bool child_is_partition );
305
305
static void StoreCatalogInheritance1 (Oid relationId , Oid parentOid ,
306
- int16 seqNumber , Relation inhRelation ,
306
+ int32 seqNumber , Relation inhRelation ,
307
307
bool child_is_partition );
308
308
static int findAttrByName (const char * attributeName , List * schema );
309
309
static void AlterIndexNamespaces (Relation classRel , Relation rel ,
@@ -2352,7 +2352,7 @@ StoreCatalogInheritance(Oid relationId, List *supers,
2352
2352
bool child_is_partition )
2353
2353
{
2354
2354
Relation relation ;
2355
- int16 seqNumber ;
2355
+ int32 seqNumber ;
2356
2356
ListCell * entry ;
2357
2357
2358
2358
/*
@@ -2393,7 +2393,7 @@ StoreCatalogInheritance(Oid relationId, List *supers,
2393
2393
*/
2394
2394
static void
2395
2395
StoreCatalogInheritance1 (Oid relationId , Oid parentOid ,
2396
- int16 seqNumber , Relation inhRelation ,
2396
+ int32 seqNumber , Relation inhRelation ,
2397
2397
bool child_is_partition )
2398
2398
{
2399
2399
TupleDesc desc = RelationGetDescr (inhRelation );
@@ -2408,7 +2408,7 @@ StoreCatalogInheritance1(Oid relationId, Oid parentOid,
2408
2408
*/
2409
2409
values [Anum_pg_inherits_inhrelid - 1 ] = ObjectIdGetDatum (relationId );
2410
2410
values [Anum_pg_inherits_inhparent - 1 ] = ObjectIdGetDatum (parentOid );
2411
- values [Anum_pg_inherits_inhseqno - 1 ] = Int16GetDatum (seqNumber );
2411
+ values [Anum_pg_inherits_inhseqno - 1 ] = Int32GetDatum (seqNumber );
2412
2412
2413
2413
memset (nulls , 0 , sizeof (nulls ));
2414
2414
0 commit comments