1996-08-27 21:59:28 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* lsyscache.h
|
1999-08-08 23:13:31 -04:00
|
|
|
* Convenience routines for common queries in the system catalog cache.
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
2000-08-12 22:50:35 -04:00
|
|
|
* $Id: lsyscache.h,v 1.25 2000/08/13 02:50:31 tgl Exp $
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
1997-09-07 01:04:48 -04:00
|
|
|
#ifndef LSYSCACHE_H
|
|
|
|
|
#define LSYSCACHE_H
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1999-07-15 19:04:24 -04:00
|
|
|
#include "access/htup.h"
|
1996-08-27 21:59:28 -04:00
|
|
|
|
2000-08-12 22:50:35 -04:00
|
|
|
extern bool op_class(Oid opno, Oid opclass, Oid amopid);
|
1997-09-07 22:41:22 -04:00
|
|
|
extern char *get_attname(Oid relid, AttrNumber attnum);
|
1996-08-27 21:59:28 -04:00
|
|
|
extern AttrNumber get_attnum(Oid relid, char *attname);
|
1997-09-07 22:41:22 -04:00
|
|
|
extern Oid get_atttype(Oid relid, AttrNumber attnum);
|
|
|
|
|
extern bool get_attisset(Oid relid, char *attname);
|
1998-07-12 17:29:40 -04:00
|
|
|
extern int32 get_atttypmod(Oid relid, AttrNumber attnum);
|
1999-08-08 23:13:31 -04:00
|
|
|
extern double get_attdisbursion(Oid relid, AttrNumber attnum,
|
2000-04-12 13:17:23 -04:00
|
|
|
double min_estimate);
|
2000-08-12 22:50:35 -04:00
|
|
|
extern RegProcedure get_opcode(Oid opno);
|
|
|
|
|
extern char *get_opname(Oid opno);
|
|
|
|
|
extern bool op_mergejoinable(Oid opno, Oid ltype, Oid rtype,
|
1997-09-08 17:56:23 -04:00
|
|
|
Oid *leftOp, Oid *rightOp);
|
2000-08-12 22:50:35 -04:00
|
|
|
extern Oid op_hashjoinable(Oid opno, Oid ltype, Oid rtype);
|
|
|
|
|
extern bool op_iscachable(Oid opno);
|
1996-08-27 21:59:28 -04:00
|
|
|
extern HeapTuple get_operator_tuple(Oid opno);
|
2000-08-12 22:50:35 -04:00
|
|
|
extern Oid get_commutator(Oid opno);
|
|
|
|
|
extern Oid get_negator(Oid opno);
|
|
|
|
|
extern RegProcedure get_oprrest(Oid opno);
|
|
|
|
|
extern RegProcedure get_oprjoin(Oid opno);
|
1999-08-15 22:06:25 -04:00
|
|
|
extern Oid get_func_rettype(Oid funcid);
|
2000-08-12 22:50:35 -04:00
|
|
|
extern bool func_iscachable(Oid funcid);
|
1997-09-07 22:41:22 -04:00
|
|
|
extern char *get_rel_name(Oid relid);
|
|
|
|
|
extern int16 get_typlen(Oid typid);
|
|
|
|
|
extern bool get_typbyval(Oid typid);
|
1999-08-08 23:13:31 -04:00
|
|
|
extern Datum get_typdefault(Oid typid);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
#endif /* LSYSCACHE_H */
|