Packed varlena tuptoaster.c oops

Started by Bruce Momjianalmost 19 years ago2 messagespatches
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Caught this in my testing with enhanced debugging checks.

Index: src/backend/access/heap/tuptoaster.c
===================================================================
RCS file: /home/stark/src/REPOSITORY/pgsql/src/backend/access/heap/tuptoaster.c,v
retrieving revision 1.77
diff -u -r1.77 tuptoaster.c
--- src/backend/access/heap/tuptoaster.c	1 Oct 2007 16:25:56 -0000	1.77
+++ src/backend/access/heap/tuptoaster.c	11 Oct 2007 14:47:17 -0000
@@ -813,7 +813,6 @@
 			pfree(DatumGetPointer(old_value));

toast_free[i] = true;
- toast_sizes[i] = VARSIZE(toast_values[i]);

need_change = true;
need_free = true;

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#1)
Re: Packed varlena tuptoaster.c oops

Gregory Stark <stark@enterprisedb.com> writes:

Caught this in my testing with enhanced debugging checks.

Applied, thanks.

regards, tom lane