summaryrefslogtreecommitdiff
path: root/src/backend/storage
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/storage
parent728775d781a1e18899240d099461dff163456225 (diff)
downloadpostgresql-a885ecd6efc28b57b8079ae865a6a09035d1fc3d.tar.gz
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/storage')
-rw-r--r--src/backend/storage/large_object/inv_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c
index a304cff9b3..3412926579 100644
--- a/src/backend/storage/large_object/inv_api.c
+++ b/src/backend/storage/large_object/inv_api.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/large_object/inv_api.c,v 1.108 2004/12/31 22:00:59 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/large_object/inv_api.c,v 1.109 2005/01/27 23:24:09 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -570,7 +570,7 @@ inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes)
memset(replace, ' ', sizeof(replace));
values[Anum_pg_largeobject_data - 1] = PointerGetDatum(&workbuf);
replace[Anum_pg_largeobject_data - 1] = 'r';
- newtup = heap_modifytuple(oldtuple, lo_heap_r,
+ newtup = heap_modifytuple(oldtuple, RelationGetDescr(lo_heap_r),
values, nulls, replace);
simple_heap_update(lo_heap_r, &newtup->t_self, newtup);
CatalogIndexInsert(indstate, newtup);