Skip site navigation (1) Skip section navigation (2)

Packed varlena tuptoaster.c oops

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: PostgreSQL-development Hackers <pgsql-patches(at)postgresql(dot)org>
Subject: Packed varlena tuptoaster.c oops
Date: 2007-10-11 14:51:22
Message-ID: 87abqpyaad.fsf@oxford.xeocode.com (view raw or flat)
Thread:
Lists: 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

Responses

pgsql-patches by date

Next:From: Brendan JurdDate: 2007-10-11 16:11:28
Subject: Re: [HACKERS] quote_literal with NULL
Previous:From: Marko KreenDate: 2007-10-11 14:48:35
Subject: Patch: txid in core

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group