aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-10-11 18:19:58 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-10-11 18:19:58 +0000
commit56b7695cf5517a78045798fd034ed9819e61a8ac (patch)
tree000124ad9f74048871601804a12e581f86428e81 /src
parent82d8ab6fc4c1a0330c91022728e1e766db207069 (diff)
downloadpostgresql-56b7695cf5517a78045798fd034ed9819e61a8ac.tar.gz
postgresql-56b7695cf5517a78045798fd034ed9819e61a8ac.zip
Remove incorrect use of VARSIZE() on a toasted datum. We can just remove it
instead of fix it, since once we've set toast_action[i] to 'p' it no longer matters what toast_sizes[i] is. Greg Stark
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/heap/tuptoaster.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/access/heap/tuptoaster.c b/src/backend/access/heap/tuptoaster.c
index e6801e40350..4f62b1f8598 100644
--- a/src/backend/access/heap/tuptoaster.c
+++ b/src/backend/access/heap/tuptoaster.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.77 2007/10/01 16:25:56 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.78 2007/10/11 18:19:58 tgl Exp $
*
*
* INTERFACE ROUTINES
@@ -811,9 +811,7 @@ toast_insert_or_update(Relation rel, HeapTuple newtup, HeapTuple oldtup,
use_wal, use_fsm);
if (toast_free[i])
pfree(DatumGetPointer(old_value));
-
toast_free[i] = true;
- toast_sizes[i] = VARSIZE(toast_values[i]);
need_change = true;
need_free = true;