From 9c95f8c9b298c1badb4376eabad53b35a8ac4f2b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 30 Dec 1999 05:05:13 +0000 Subject: Repair bugs discussed in pghackers thread of 15 May 1999: creation of a relcache entry no longer leaks a small amount of memory. index_endscan now releases all the memory acquired by index_beginscan, so callers of it should NOT pfree the scan descriptor anymore. --- src/include/access/genam.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/access/genam.h b/src/include/access/genam.h index fb98694b18c..76200f215e2 100644 --- a/src/include/access/genam.h +++ b/src/include/access/genam.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: genam.h,v 1.20 1999/07/16 17:07:25 momjian Exp $ + * $Id: genam.h,v 1.21 1999/12/30 05:05:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -47,5 +47,6 @@ extern Datum GetIndexValue(HeapTuple tuple, TupleDesc hTupDesc, /* in genam.c */ extern IndexScanDesc RelationGetIndexScan(Relation relation, bool scanFromEnd, uint16 numberOfKeys, ScanKey key); +extern void IndexScanEnd(IndexScanDesc scan); #endif /* GENAM_H */ -- cgit v1.2.3