aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common/heaptuple.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-01-27 23:24:11 +0000
committerNeil Conway <neilc@samurai.com>2005-01-27 23:24:11 +0000
commita885ecd6efc28b57b8079ae865a6a09035d1fc3d (patch)
tree8c1a1dcd62a1c842823a839b721f689cf65ccf6d /src/backend/access/common/heaptuple.c
parent728775d781a1e18899240d099461dff163456225 (diff)
downloadpostgresql-a885ecd6efc28b57b8079ae865a6a09035d1fc3d.tar.gz
postgresql-a885ecd6efc28b57b8079ae865a6a09035d1fc3d.zip
Change heap_modifytuple() to require a TupleDesc rather than a
Relation. Patch from Alvaro Herrera, minor editorializing by Neil Conway.
Diffstat (limited to 'src/backend/access/common/heaptuple.c')
-rw-r--r--src/backend/access/common/heaptuple.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c
index d60cd2a214a..42643a87529 100644
--- a/src/backend/access/common/heaptuple.c
+++ b/src/backend/access/common/heaptuple.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.95 2004/12/31 21:59:07 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.96 2005/01/27 23:23:49 neilc Exp $
*
* NOTES
* The old interface functions have been converted to macros
@@ -662,19 +662,15 @@ heap_formtuple(TupleDesc tupleDescriptor,
*
* forms a new tuple from an old tuple and a set of replacement values.
* returns a new palloc'ed tuple.
- *
- * XXX it is misdesign that this is passed a Relation and not just a
- * TupleDesc to describe the tuple structure.
* ----------------
*/
HeapTuple
heap_modifytuple(HeapTuple tuple,
- Relation relation,
+ TupleDesc tupleDesc,
Datum *replValues,
char *replNulls,
char *replActions)
{
- TupleDesc tupleDesc = RelationGetDescr(relation);
int numberOfAttributes = tupleDesc->natts;
int attoff;
Datum *values;