Packed varlena tuptoaster.c oops - Mailing list pgsql-patches

From Gregory Stark
Subject Packed varlena tuptoaster.c oops
Date
Msg-id 87abqpyaad.fsf@oxford.xeocode.com
Whole thread Raw
Responses Re: Packed varlena tuptoaster.c oops
List pgsql-patches
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

pgsql-patches by date:

Previous
From: "Marko Kreen"
Date:
Subject: Patch: txid in core
Next
From: "Brendan Jurd"
Date:
Subject: Re: [HACKERS] quote_literal with NULL