File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
*
16
16
*
17
17
* IDENTIFICATION
18
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.80 2000/10/05 19:48:28 momjian Exp $
18
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.81 2000/11/10 09:38:21 inoue Exp $
19
19
*
20
20
*-------------------------------------------------------------------------
21
21
*/
@@ -1250,7 +1250,7 @@ getattstatistics(Oid relid,
1250
1250
* have at hand! (For example, we might have a '>' operator rather
1251
1251
* than the '<' operator that will appear in staop.)
1252
1252
*/
1253
- tuple = SearchSysCacheTuple (STATRELID ,
1253
+ tuple = SearchSysCacheTupleCopy (STATRELID ,
1254
1254
ObjectIdGetDatum (relid ),
1255
1255
Int16GetDatum ((int16 ) attnum ),
1256
1256
0 ,
@@ -1351,6 +1351,7 @@ getattstatistics(Oid relid,
1351
1351
pfree (strval );
1352
1352
}
1353
1353
}
1354
+ heap_freetuple (tuple );
1354
1355
1355
1356
return true;
1356
1357
}
You can’t perform that action at this time.
0 commit comments