1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* indexing.c
|
1997-09-07 07:04:48 +02:00
|
|
|
* This file contains routines to support indices defined on system
|
|
|
|
* catalogs.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* IDENTIFICATION
|
2001-01-24 20:43:33 +01:00
|
|
|
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.76 2001/01/24 19:42:51 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-01-10 21:19:49 +01:00
|
|
|
|
1998-04-27 06:08:07 +02:00
|
|
|
#include "postgres.h"
|
|
|
|
|
|
|
|
#include "access/genam.h"
|
|
|
|
#include "access/heapam.h"
|
|
|
|
#include "catalog/catalog.h"
|
|
|
|
#include "catalog/catname.h"
|
|
|
|
#include "catalog/index.h"
|
|
|
|
#include "catalog/indexing.h"
|
2000-06-15 05:33:12 +02:00
|
|
|
#include "catalog/pg_index.h"
|
1998-04-27 06:08:07 +02:00
|
|
|
#include "miscadmin.h"
|
2000-05-28 19:56:29 +02:00
|
|
|
#include "utils/fmgroids.h"
|
1998-04-27 06:08:07 +02:00
|
|
|
#include "utils/syscache.h"
|
1996-11-04 00:27:08 +01:00
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
/*
|
1999-11-22 18:56:41 +01:00
|
|
|
* Names of indices - they match all system caches
|
1996-07-09 08:22:35 +02:00
|
|
|
*/
|
|
|
|
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_aggregate_indices[Num_pg_aggregate_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{AggregateNameTypeIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_am_indices[Num_pg_am_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{AmNameIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_amop_indices[Num_pg_amop_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{AccessMethodOpidIndex, AccessMethodStrategyIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_attr_indices[Num_pg_attr_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{AttributeRelidNameIndex, AttributeRelidNumIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_attrdef_indices[Num_pg_attrdef_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{AttrDefaultIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_class_indices[Num_pg_class_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{ClassNameIndex, ClassOidIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_group_indices[Num_pg_group_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{GroupNameIndex, GroupSysidIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_index_indices[Num_pg_index_indices] =
|
2000-06-07 04:44:40 +02:00
|
|
|
{IndexRelidIndex, IndexIndrelidIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_inherits_indices[Num_pg_inherits_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{InheritsRelidSeqnoIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_language_indices[Num_pg_language_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{LanguageOidIndex, LanguageNameIndex};
|
2000-10-24 03:38:44 +02:00
|
|
|
char *Name_pg_largeobject_indices[Num_pg_largeobject_indices] =
|
|
|
|
{LargeObjectLOidPNIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_listener_indices[Num_pg_listener_indices] =
|
2000-06-07 06:09:44 +02:00
|
|
|
{ListenerPidRelnameIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_opclass_indices[Num_pg_opclass_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{OpclassNameIndex, OpclassDeftypeIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_operator_indices[Num_pg_operator_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{OperatorOidIndex, OperatorNameIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_proc_indices[Num_pg_proc_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{ProcedureOidIndex, ProcedureNameIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_relcheck_indices[Num_pg_relcheck_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{RelCheckIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_rewrite_indices[Num_pg_rewrite_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{RewriteOidIndex, RewriteRulenameIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_shadow_indices[Num_pg_shadow_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{ShadowNameIndex, ShadowSysidIndex};
|
1999-11-25 01:15:57 +01:00
|
|
|
char *Name_pg_statistic_indices[Num_pg_statistic_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{StatisticRelidAttnumIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_trigger_indices[Num_pg_trigger_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{TriggerRelidIndex, TriggerConstrNameIndex, TriggerConstrRelidIndex};
|
1999-11-22 18:56:41 +01:00
|
|
|
char *Name_pg_type_indices[Num_pg_type_indices] =
|
2000-04-12 19:17:23 +02:00
|
|
|
{TypeNameIndex, TypeOidIndex};
|
|
|
|
char *Name_pg_description_indices[Num_pg_description_indices] =
|
|
|
|
{DescriptionObjIndex};
|
This patch implements ORACLE's COMMENT SQL command.
>From the ORACLE 7 SQL Language Reference Manual:
-----------------------------------------------------
COMMENT
Purpose:
To add a comment about a table, view, snapshot, or
column into the data dictionary.
Prerequisites:
The table, view, or snapshot must be in your own
schema
or you must have COMMENT ANY TABLE system privilege.
Syntax:
COMMENT ON [ TABLE table ] |
[ COLUMN table.column] IS 'text'
You can effectively drop a comment from the database
by setting it to the empty string ''.
-----------------------------------------------------
Example:
COMMENT ON TABLE workorders IS
'Maintains base records for workorder information';
COMMENT ON COLUMN workorders.hours IS
'Number of hours the engineer worked on the task';
to drop a comment:
COMMENT ON COLUMN workorders.hours IS '';
The current patch will simply perform the insert into
pg_description, as per the TODO. And, of course, when
the table is dropped, any comments relating to it
or any of its attributes are also dropped. I haven't
looked at the ODBC source yet, but I do know from
an ODBC client standpoint that the standard does
support the notion of table and column comments.
Hopefully the ODBC driver is already fetching these
values from pg_description, but if not, it should be
trivial.
Hope this makes the grade,
Mike Mascari
(mascarim@yahoo.com)
1999-10-15 03:49:49 +02:00
|
|
|
|
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1998-08-19 04:04:17 +02:00
|
|
|
static HeapTuple CatalogIndexFetchTuple(Relation heapRelation,
|
2000-04-12 19:17:23 +02:00
|
|
|
Relation idesc,
|
|
|
|
ScanKey skey,
|
|
|
|
int16 num_keys);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
2000-07-15 00:18:02 +02:00
|
|
|
* Changes (appends) to catalogs can and do happen at various places
|
1996-07-09 08:22:35 +02:00
|
|
|
* throughout the code. We need a generic routine that will open all of
|
2000-07-15 00:18:02 +02:00
|
|
|
* the indices defined on a given catalog and return the relation descriptors
|
1996-07-09 08:22:35 +02:00
|
|
|
* associated with them.
|
|
|
|
*/
|
|
|
|
void
|
1998-09-01 05:29:17 +02:00
|
|
|
CatalogOpenIndices(int nIndices, char **names, Relation *idescs)
|
1996-07-09 08:22:35 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
int i;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-02-18 10:30:20 +01:00
|
|
|
if (IsIgnoringSystemIndexes())
|
|
|
|
return;
|
1997-09-07 07:04:48 +02:00
|
|
|
for (i = 0; i < nIndices; i++)
|
|
|
|
idescs[i] = index_openr(names[i]);
|
1996-07-09 08:22:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This is the inverse routine to CatalogOpenIndices()
|
|
|
|
*/
|
|
|
|
void
|
1997-09-08 23:56:23 +02:00
|
|
|
CatalogCloseIndices(int nIndices, Relation *idescs)
|
1996-07-09 08:22:35 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
int i;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-02-18 10:30:20 +01:00
|
|
|
if (IsIgnoringSystemIndexes())
|
|
|
|
return;
|
1997-09-07 07:04:48 +02:00
|
|
|
for (i = 0; i < nIndices; i++)
|
|
|
|
index_close(idescs[i]);
|
1996-07-09 08:22:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2000-07-15 00:18:02 +02:00
|
|
|
* For the same reasons outlined above for CatalogOpenIndices(), we need a
|
|
|
|
* routine that takes a new catalog tuple and inserts an associated index
|
|
|
|
* tuple into each catalog index.
|
|
|
|
*
|
|
|
|
* NOTE: since this routine looks up all the pg_index data on each call,
|
|
|
|
* it's relatively inefficient for inserting a large number of tuples into
|
|
|
|
* the same catalog. We use it only for inserting one or a few tuples
|
|
|
|
* in a given command. See ExecOpenIndices() and related routines if you
|
|
|
|
* are inserting tuples in bulk.
|
|
|
|
*
|
|
|
|
* NOTE: we do not bother to handle partial indices. Nor do we try to
|
|
|
|
* be efficient for functional indices (the code should work for them,
|
|
|
|
* but may leak memory intraquery). This should be OK for system catalogs,
|
|
|
|
* but don't use this routine for user tables!
|
1996-07-09 08:22:35 +02:00
|
|
|
*/
|
|
|
|
void
|
1997-09-08 23:56:23 +02:00
|
|
|
CatalogIndexInsert(Relation *idescs,
|
1997-09-07 07:04:48 +02:00
|
|
|
int nIndices,
|
|
|
|
Relation heapRelation,
|
|
|
|
HeapTuple heapTuple)
|
1996-07-09 08:22:35 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
TupleDesc heapDescriptor;
|
1998-09-03 01:05:37 +02:00
|
|
|
Datum datum[INDEX_MAX_KEYS];
|
2000-07-15 00:18:02 +02:00
|
|
|
char nullv[INDEX_MAX_KEYS];
|
1997-09-08 04:41:22 +02:00
|
|
|
int i;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-12-14 08:02:42 +01:00
|
|
|
if (IsIgnoringSystemIndexes() || (!heapRelation->rd_rel->relhasindex))
|
2000-02-18 10:30:20 +01:00
|
|
|
return;
|
1998-09-01 05:29:17 +02:00
|
|
|
heapDescriptor = RelationGetDescr(heapRelation);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
for (i = 0; i < nIndices; i++)
|
1996-07-09 08:22:35 +02:00
|
|
|
{
|
2000-07-15 00:18:02 +02:00
|
|
|
HeapTuple index_tup;
|
|
|
|
IndexInfo *indexInfo;
|
1997-09-07 07:04:48 +02:00
|
|
|
InsertIndexResult indexRes;
|
|
|
|
|
2000-11-16 23:30:52 +01:00
|
|
|
index_tup = SearchSysCache(INDEXRELID,
|
|
|
|
ObjectIdGetDatum(idescs[i]->rd_id),
|
|
|
|
0, 0, 0);
|
2000-07-15 00:18:02 +02:00
|
|
|
if (!HeapTupleIsValid(index_tup))
|
|
|
|
elog(ERROR, "CatalogIndexInsert: index %u not found",
|
|
|
|
idescs[i]->rd_id);
|
|
|
|
indexInfo = BuildIndexInfo(index_tup);
|
2000-11-16 23:30:52 +01:00
|
|
|
ReleaseSysCache(index_tup);
|
1999-05-25 18:15:34 +02:00
|
|
|
|
2000-07-15 00:18:02 +02:00
|
|
|
FormIndexDatum(indexInfo,
|
1997-09-07 07:04:48 +02:00
|
|
|
heapTuple,
|
|
|
|
heapDescriptor,
|
2000-07-15 00:18:02 +02:00
|
|
|
CurrentMemoryContext,
|
1998-09-03 01:05:37 +02:00
|
|
|
datum,
|
2000-07-15 00:18:02 +02:00
|
|
|
nullv);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-15 00:18:02 +02:00
|
|
|
indexRes = index_insert(idescs[i], datum, nullv,
|
1998-11-27 20:52:36 +01:00
|
|
|
&heapTuple->t_self, heapRelation);
|
1997-09-07 07:04:48 +02:00
|
|
|
if (indexRes)
|
|
|
|
pfree(indexRes);
|
2000-07-15 00:18:02 +02:00
|
|
|
pfree(indexInfo);
|
1996-07-09 08:22:35 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
1998-10-02 07:10:11 +02:00
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
/*
|
1997-09-07 07:04:48 +02:00
|
|
|
* CatalogIndexFetchTuple() -- Get a tuple that satisfies a scan key
|
|
|
|
* from a catalog relation.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
1997-09-07 07:04:48 +02:00
|
|
|
* Since the index may contain pointers to dead tuples, we need to
|
|
|
|
* iterate until we find a tuple that's valid and satisfies the scan
|
|
|
|
* key.
|
1996-07-09 08:22:35 +02:00
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
static HeapTuple
|
1996-07-09 08:22:35 +02:00
|
|
|
CatalogIndexFetchTuple(Relation heapRelation,
|
1997-09-07 07:04:48 +02:00
|
|
|
Relation idesc,
|
1998-08-19 04:04:17 +02:00
|
|
|
ScanKey skey,
|
|
|
|
int16 num_keys)
|
1996-07-09 08:22:35 +02:00
|
|
|
{
|
1999-05-25 18:15:34 +02:00
|
|
|
IndexScanDesc sd;
|
1997-09-07 07:04:48 +02:00
|
|
|
RetrieveIndexResult indexRes;
|
1999-05-25 18:15:34 +02:00
|
|
|
HeapTupleData tuple;
|
|
|
|
HeapTuple result = NULL;
|
|
|
|
Buffer buffer;
|
1998-09-01 06:40:42 +02:00
|
|
|
|
1998-08-19 04:04:17 +02:00
|
|
|
sd = index_beginscan(idesc, false, num_keys, skey);
|
1999-12-16 23:20:03 +01:00
|
|
|
tuple.t_datamcxt = CurrentMemoryContext;
|
1998-11-27 20:52:36 +01:00
|
|
|
tuple.t_data = NULL;
|
1998-08-31 01:25:56 +02:00
|
|
|
while ((indexRes = index_getnext(sd, ForwardScanDirection)))
|
1997-09-07 07:04:48 +02:00
|
|
|
{
|
1998-11-27 20:52:36 +01:00
|
|
|
tuple.t_self = indexRes->heap_iptr;
|
|
|
|
heap_fetch(heapRelation, SnapshotNow, &tuple, &buffer);
|
1998-08-31 01:25:56 +02:00
|
|
|
pfree(indexRes);
|
1998-11-27 20:52:36 +01:00
|
|
|
if (tuple.t_data != NULL)
|
1997-09-07 07:04:48 +02:00
|
|
|
break;
|
1998-09-01 06:40:42 +02:00
|
|
|
}
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1998-11-27 20:52:36 +01:00
|
|
|
if (tuple.t_data != NULL)
|
1998-08-31 01:25:56 +02:00
|
|
|
{
|
1998-11-27 20:52:36 +01:00
|
|
|
result = heap_copytuple(&tuple);
|
1997-09-07 07:04:48 +02:00
|
|
|
ReleaseBuffer(buffer);
|
1998-08-31 01:25:56 +02:00
|
|
|
}
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
index_endscan(sd);
|
1999-12-30 06:05:13 +01:00
|
|
|
|
1998-11-27 20:52:36 +01:00
|
|
|
return result;
|
1996-07-09 08:22:35 +02:00
|
|
|
}
|
|
|
|
|
1998-10-02 07:10:11 +02:00
|
|
|
|
1999-11-01 03:29:27 +01:00
|
|
|
/*---------------------------------------------------------------------
|
2000-04-12 19:17:23 +02:00
|
|
|
* Class-specific index lookups
|
1999-11-01 03:29:27 +01:00
|
|
|
*---------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
/*
|
2000-11-10 01:33:12 +01:00
|
|
|
* The remainder of the file is for individual index scan routines.
|
|
|
|
* These routines provide canned scanning code for certain widely-used
|
|
|
|
* indexes. Most indexes don't need one of these.
|
1996-07-09 08:22:35 +02:00
|
|
|
*/
|
1999-11-22 18:56:41 +01:00
|
|
|
|
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
HeapTuple
|
1999-11-22 18:56:41 +01:00
|
|
|
AttributeRelidNumIndexScan(Relation heapRelation,
|
2000-06-17 06:56:39 +02:00
|
|
|
Datum relid,
|
|
|
|
Datum attnum)
|
1996-07-09 08:22:35 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
Relation idesc;
|
1998-08-19 04:04:17 +02:00
|
|
|
ScanKeyData skey[2];
|
1997-09-08 04:41:22 +02:00
|
|
|
HeapTuple tuple;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1998-08-19 04:04:17 +02:00
|
|
|
ScanKeyEntryInitialize(&skey[0],
|
1997-09-07 07:04:48 +02:00
|
|
|
(bits16) 0x0,
|
|
|
|
(AttrNumber) 1,
|
1998-09-01 06:40:42 +02:00
|
|
|
(RegProcedure) F_OIDEQ,
|
2000-06-17 06:56:39 +02:00
|
|
|
relid);
|
1998-08-19 04:04:17 +02:00
|
|
|
|
|
|
|
ScanKeyEntryInitialize(&skey[1],
|
|
|
|
(bits16) 0x0,
|
|
|
|
(AttrNumber) 2,
|
1998-09-01 06:40:42 +02:00
|
|
|
(RegProcedure) F_INT2EQ,
|
2000-06-17 06:56:39 +02:00
|
|
|
attnum);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1999-11-22 18:56:41 +01:00
|
|
|
idesc = index_openr(AttributeRelidNumIndex);
|
1998-08-19 04:04:17 +02:00
|
|
|
tuple = CatalogIndexFetchTuple(heapRelation, idesc, skey, 2);
|
1999-11-22 18:56:41 +01:00
|
|
|
index_close(idesc);
|
|
|
|
return tuple;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HeapTuple
|
2000-11-10 01:33:12 +01:00
|
|
|
ClassNameIndexScan(Relation heapRelation, Datum relName)
|
1999-11-22 18:56:41 +01:00
|
|
|
{
|
|
|
|
Relation idesc;
|
|
|
|
ScanKeyData skey[1];
|
|
|
|
HeapTuple tuple;
|
2000-04-12 19:17:23 +02:00
|
|
|
|
1999-11-22 18:56:41 +01:00
|
|
|
ScanKeyEntryInitialize(&skey[0],
|
|
|
|
(bits16) 0x0,
|
|
|
|
(AttrNumber) 1,
|
|
|
|
(RegProcedure) F_NAMEEQ,
|
2000-11-10 01:33:12 +01:00
|
|
|
relName);
|
1999-11-22 18:56:41 +01:00
|
|
|
|
2000-11-10 01:33:12 +01:00
|
|
|
idesc = index_openr(ClassNameIndex);
|
1999-11-22 18:56:41 +01:00
|
|
|
tuple = CatalogIndexFetchTuple(heapRelation, idesc, skey, 1);
|
|
|
|
index_close(idesc);
|
|
|
|
return tuple;
|
|
|
|
}
|
|
|
|
|
1998-10-02 07:10:11 +02:00
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
HeapTuple
|
2000-11-10 01:33:12 +01:00
|
|
|
ClassOidIndexScan(Relation heapRelation, Datum relId)
|
1996-07-09 08:22:35 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
Relation idesc;
|
1998-08-19 04:04:17 +02:00
|
|
|
ScanKeyData skey[1];
|
1997-09-08 04:41:22 +02:00
|
|
|
HeapTuple tuple;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1998-08-19 04:04:17 +02:00
|
|
|
ScanKeyEntryInitialize(&skey[0],
|
1997-09-07 07:04:48 +02:00
|
|
|
(bits16) 0x0,
|
|
|
|
(AttrNumber) 1,
|
1998-04-27 06:08:07 +02:00
|
|
|
(RegProcedure) F_OIDEQ,
|
2000-11-10 01:33:12 +01:00
|
|
|
relId);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-11-10 01:33:12 +01:00
|
|
|
idesc = index_openr(ClassOidIndex);
|
1999-11-22 18:56:41 +01:00
|
|
|
tuple = CatalogIndexFetchTuple(heapRelation, idesc, skey, 1);
|
1997-09-07 07:04:48 +02:00
|
|
|
index_close(idesc);
|
|
|
|
return tuple;
|
1996-07-09 08:22:35 +02:00
|
|
|
}
|