diff options
| author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-17 21:37:28 +0000 |
|---|---|---|
| committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-17 21:37:28 +0000 |
| commit | 2f0f7b4bce13e68394543728801ef011fd82fac6 (patch) | |
| tree | 0a8d0a662ac316ac07f33e10cd607ca0a49eac25 /src/backend/access/common/printtup.c | |
| parent | 25e46a504b215fb7e11463d628d3477098323367 (diff) | |
Clean up a few places where Datums were being treated as pointers (and vice
versa) without going through DatumGetPointer.
Gavin Sherry, with Feng Tian.
Diffstat (limited to 'src/backend/access/common/printtup.c')
| -rw-r--r-- | src/backend/access/common/printtup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/common/printtup.c b/src/backend/access/common/printtup.c index d3f017ab95d..346f6e1d8ab 100644 --- a/src/backend/access/common/printtup.c +++ b/src/backend/access/common/printtup.c @@ -9,7 +9,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/common/printtup.c,v 1.101 2008/01/01 19:45:45 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/common/printtup.c,v 1.102 2008/04/17 21:37:28 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -340,7 +340,7 @@ printtup(TupleTableSlot *slot, DestReceiver *self) } /* Clean up detoasted copy, if any */ - if (attr != origattr) + if (DatumGetPointer(attr) != DatumGetPointer(origattr)) pfree(DatumGetPointer(attr)); } @@ -423,7 +423,7 @@ printtup_20(TupleTableSlot *slot, DestReceiver *self) pfree(outputstr); /* Clean up detoasted copy, if any */ - if (attr != origattr) + if (DatumGetPointer(attr) != DatumGetPointer(origattr)) pfree(DatumGetPointer(attr)); } @@ -537,7 +537,7 @@ debugtup(TupleTableSlot *slot, DestReceiver *self) pfree(value); /* Clean up detoasted copy, if any */ - if (attr != origattr) + if (DatumGetPointer(attr) != DatumGetPointer(origattr)) pfree(DatumGetPointer(attr)); } printf("\t----\n"); @@ -627,7 +627,7 @@ printtup_internal_20(TupleTableSlot *slot, DestReceiver *self) pfree(outputbytes); /* Clean up detoasted copy, if any */ - if (attr != origattr) + if (DatumGetPointer(attr) != DatumGetPointer(origattr)) pfree(DatumGetPointer(attr)); } |
