diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-11-27 19:52:36 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-11-27 19:52:36 +0000 |
commit | 6beba218d7f6f764e946751df6dc0d0180da05fa (patch) | |
tree | 2801029d61d798d6150bb43a24561a4615aedb8b /src/backend/commands/defind.c | |
parent | 2435c7d501b0a3129f6fc597a9c85863541cd596 (diff) |
New HeapTuple structure/interface.
Diffstat (limited to 'src/backend/commands/defind.c')
-rw-r--r-- | src/backend/commands/defind.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/commands/defind.c b/src/backend/commands/defind.c index f0d985d3a93..c071c2d9fe8 100644 --- a/src/backend/commands/defind.c +++ b/src/backend/commands/defind.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.27 1998/09/23 04:22:03 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.28 1998/11/27 19:51:56 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -105,7 +105,7 @@ DefineIndex(char *heapRelationName, elog(ERROR, "DefineIndex: %s relation not found", heapRelationName); } - relationId = tuple->t_oid; + relationId = tuple->t_data->t_oid; if (unique && strcmp(accessMethodName, "btree") != 0) elog(ERROR, "DefineIndex: unique indices are only available with the btree access method"); @@ -124,7 +124,7 @@ DefineIndex(char *heapRelationName, elog(ERROR, "DefineIndex: %s access method not found", accessMethodName); } - accessMethodId = tuple->t_oid; + accessMethodId = tuple->t_data->t_oid; /* @@ -250,7 +250,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable) elog(ERROR, "ExtendIndex: %s index not found", indexRelationName); } - indexId = tuple->t_oid; + indexId = tuple->t_data->t_oid; accessMethodId = ((Form_pg_class) GETSTRUCT(tuple))->relam; /* @@ -336,7 +336,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable) namecpy(&(funcInfo->funcName), &(((Form_pg_proc) GETSTRUCT(tuple))->proname)); - FIsetProcOid(funcInfo, tuple->t_oid); + FIsetProcOid(funcInfo, tuple->t_data->t_oid); } heapRelation = heap_open(relationId); @@ -429,7 +429,7 @@ FuncIndexArgs(IndexElem *funcIndex, elog(ERROR, "DefineIndex: %s class not found", funcIndex->class); } - *opOidP = tuple->t_oid; + *opOidP = tuple->t_data->t_oid; MemSet(argTypes, 0, 8 * sizeof(Oid)); @@ -531,7 +531,7 @@ NormIndexAttrs(List *attList, /* list of IndexElem's */ elog(ERROR, "DefineIndex: %s class not found", attribute->class); } - *classOidP++ = tuple->t_oid; + *classOidP++ = tuple->t_data->t_oid; pfree(atttuple); } } @@ -578,5 +578,5 @@ RemoveIndex(char *name) ((Form_pg_class) GETSTRUCT(tuple))->relkind); } - index_destroy(tuple->t_oid); + index_destroy(tuple->t_data->t_oid); } |