aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>1999-12-16 22:20:03 +0000
committerJan Wieck <JanWieck@Yahoo.com>1999-12-16 22:20:03 +0000
commit397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73 (patch)
tree17583111e0e7c2ca83b94040d48a1036f870b9a4 /src/backend/utils/cache
parent5ca971a18a708341dd49f27c23fec40ea4342d13 (diff)
downloadpostgresql-397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73.tar.gz
postgresql-397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73.zip
Some changes to prepare for LONG attributes.
Jan
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r--src/backend/utils/cache/catcache.c4
-rw-r--r--src/backend/utils/cache/relcache.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c
index 96e8288916a..e061e8feaef 100644
--- a/src/backend/utils/cache/catcache.c
+++ b/src/backend/utils/cache/catcache.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.54 1999/11/22 17:56:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.55 1999/12/16 22:19:54 wieck Exp $
*
*-------------------------------------------------------------------------
*/
@@ -839,7 +839,7 @@ SearchSelfReferences(struct catcache * cache)
elog(ERROR, "SearchSelfReferences: %s not found in %s",
IndexRelidIndex, RelationRelationName);
indexSelfOid = ntp->t_data->t_oid;
- pfree(ntp);
+ heap_freetuple(ntp);
heap_close(rel, AccessShareLock);
}
/* Looking for something other than pg_index_indexrelid_index? */
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index c2f5a7d655c..007adfb01f0 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.81 1999/11/22 17:56:32 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.82 1999/12/16 22:19:54 wieck Exp $
*
*-------------------------------------------------------------------------
*/
@@ -871,7 +871,7 @@ RelationBuildDesc(RelationBuildDescInfo buildinfo,
* and for lock data pointed to by pg_class_tuple
* -------------------
*/
- pfree(pg_class_tuple);
+ heap_freetuple(pg_class_tuple);
MemoryContextSwitchTo(oldcxt);
@@ -1714,6 +1714,7 @@ AttrDefaultFetch(Relation relation)
adrel = heap_openr(AttrDefaultRelationName, AccessShareLock);
irel = index_openr(AttrDefaultIndex);
sd = index_beginscan(irel, false, 1, &skey);
+ tuple.t_datamcxt = NULL;
tuple.t_data = NULL;
for (found = 0;;)
@@ -1793,6 +1794,7 @@ RelCheckFetch(Relation relation)
rcrel = heap_openr(RelCheckRelationName, AccessShareLock);
irel = index_openr(RelCheckIndex);
sd = index_beginscan(irel, false, 1, &skey);
+ tuple.t_datamcxt = NULL;
tuple.t_data = NULL;
for (found = 0;;)