@@ -144,7 +144,6 @@ static const FormData_pg_attribute a1 = {
144144 .atttypid = TIDOID ,
145145 .attlen = sizeof (ItemPointerData ),
146146 .attnum = SelfItemPointerAttributeNumber ,
147- .attcacheoff = -1 ,
148147 .atttypmod = -1 ,
149148 .attbyval = false,
150149 .attalign = TYPALIGN_SHORT ,
@@ -158,7 +157,6 @@ static const FormData_pg_attribute a2 = {
158157 .atttypid = XIDOID ,
159158 .attlen = sizeof (TransactionId ),
160159 .attnum = MinTransactionIdAttributeNumber ,
161- .attcacheoff = -1 ,
162160 .atttypmod = -1 ,
163161 .attbyval = true,
164162 .attalign = TYPALIGN_INT ,
@@ -172,7 +170,6 @@ static const FormData_pg_attribute a3 = {
172170 .atttypid = CIDOID ,
173171 .attlen = sizeof (CommandId ),
174172 .attnum = MinCommandIdAttributeNumber ,
175- .attcacheoff = -1 ,
176173 .atttypmod = -1 ,
177174 .attbyval = true,
178175 .attalign = TYPALIGN_INT ,
@@ -186,7 +183,6 @@ static const FormData_pg_attribute a4 = {
186183 .atttypid = XIDOID ,
187184 .attlen = sizeof (TransactionId ),
188185 .attnum = MaxTransactionIdAttributeNumber ,
189- .attcacheoff = -1 ,
190186 .atttypmod = -1 ,
191187 .attbyval = true,
192188 .attalign = TYPALIGN_INT ,
@@ -200,7 +196,6 @@ static const FormData_pg_attribute a5 = {
200196 .atttypid = CIDOID ,
201197 .attlen = sizeof (CommandId ),
202198 .attnum = MaxCommandIdAttributeNumber ,
203- .attcacheoff = -1 ,
204199 .atttypmod = -1 ,
205200 .attbyval = true,
206201 .attalign = TYPALIGN_INT ,
@@ -220,7 +215,6 @@ static const FormData_pg_attribute a6 = {
220215 .atttypid = OIDOID ,
221216 .attlen = sizeof (Oid ),
222217 .attnum = TableOidAttributeNumber ,
223- .attcacheoff = -1 ,
224218 .atttypmod = -1 ,
225219 .attbyval = true,
226220 .attalign = TYPALIGN_INT ,
@@ -684,11 +678,10 @@ CheckAttributeType(const char *attname,
684678 * Construct and insert a set of tuples in pg_attribute.
685679 *
686680 * Caller has already opened and locked pg_attribute. tupdesc contains the
687- * attributes to insert. attcacheoff is always initialized to -1.
688- * tupdesc_extra supplies the values for certain variable-length/nullable
689- * pg_attribute fields and must contain the same number of elements as tupdesc
690- * or be NULL. The other variable-length fields of pg_attribute are always
691- * initialized to null values.
681+ * attributes to insert. tupdesc_extra supplies the values for certain
682+ * variable-length/nullable pg_attribute fields and must contain the same
683+ * number of elements as tupdesc or be NULL. The other variable-length fields
684+ * of pg_attribute are always initialized to null values.
692685 *
693686 * indstate is the index state for CatalogTupleInsertWithInfo. It can be
694687 * passed as NULL, in which case we'll fetch the necessary info. (Don't do
@@ -740,7 +733,6 @@ InsertPgAttributeTuples(Relation pg_attribute_rel,
740733 slot [slotCount ]-> tts_values [Anum_pg_attribute_atttypid - 1 ] = ObjectIdGetDatum (attrs -> atttypid );
741734 slot [slotCount ]-> tts_values [Anum_pg_attribute_attlen - 1 ] = Int16GetDatum (attrs -> attlen );
742735 slot [slotCount ]-> tts_values [Anum_pg_attribute_attnum - 1 ] = Int16GetDatum (attrs -> attnum );
743- slot [slotCount ]-> tts_values [Anum_pg_attribute_attcacheoff - 1 ] = Int32GetDatum (-1 );
744736 slot [slotCount ]-> tts_values [Anum_pg_attribute_atttypmod - 1 ] = Int32GetDatum (attrs -> atttypmod );
745737 slot [slotCount ]-> tts_values [Anum_pg_attribute_attndims - 1 ] = Int16GetDatum (attrs -> attndims );
746738 slot [slotCount ]-> tts_values [Anum_pg_attribute_attbyval - 1 ] = BoolGetDatum (attrs -> attbyval );
0 commit comments