mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-10 06:37:34 +08:00
in pghackers list. Support for oldstyle internal functions is gone (no longer needed, since conversion is complete) and pg_language entry 'internal' now implies newstyle call convention. pg_language entry 'newC' is gone; both old and newstyle dynamically loaded C functions are now called language 'C'. A newstyle function must be identified by an associated info routine. See src/backend/utils/fmgr/README.
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* lsyscache.h
|
|
* Convenience routines for common queries in the system catalog cache.
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: lsyscache.h,v 1.28 2000/11/20 20:36:51 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef LSYSCACHE_H
|
|
#define LSYSCACHE_H
|
|
|
|
#include "access/htup.h"
|
|
|
|
extern bool op_class(Oid opno, Oid opclass, Oid amopid);
|
|
extern char *get_attname(Oid relid, AttrNumber attnum);
|
|
extern AttrNumber get_attnum(Oid relid, char *attname);
|
|
extern Oid get_atttype(Oid relid, AttrNumber attnum);
|
|
extern bool get_attisset(Oid relid, char *attname);
|
|
extern int32 get_atttypmod(Oid relid, AttrNumber attnum);
|
|
extern double get_attdispersion(Oid relid, AttrNumber attnum,
|
|
double min_estimate);
|
|
extern RegProcedure get_opcode(Oid opno);
|
|
extern char *get_opname(Oid opno);
|
|
extern bool op_mergejoinable(Oid opno, Oid ltype, Oid rtype,
|
|
Oid *leftOp, Oid *rightOp);
|
|
extern Oid op_hashjoinable(Oid opno, Oid ltype, Oid rtype);
|
|
extern bool op_iscachable(Oid opno);
|
|
extern Oid get_commutator(Oid opno);
|
|
extern Oid get_negator(Oid opno);
|
|
extern RegProcedure get_oprrest(Oid opno);
|
|
extern RegProcedure get_oprjoin(Oid opno);
|
|
extern Oid get_func_rettype(Oid funcid);
|
|
extern bool func_iscachable(Oid funcid);
|
|
extern char *get_rel_name(Oid relid);
|
|
extern int16 get_typlen(Oid typid);
|
|
extern bool get_typbyval(Oid typid);
|
|
extern void get_typlenbyval(Oid typid, int16 *typlen, bool *typbyval);
|
|
extern char get_typstorage(Oid typid);
|
|
extern Datum get_typdefault(Oid typid);
|
|
|
|
#define TypeIsToastable(typid) (get_typstorage(typid) != 'p')
|
|
|
|
#endif /* LSYSCACHE_H */
|