1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_language.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "language" relation (pg_language)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
2004-12-31 23:04:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2005-04-14 03:38:22 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/catalog/pg_language.h,v 1.26 2005/04/14 01:38:20 tgl Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_LANGUAGE_H
|
|
|
|
#define PG_LANGUAGE_H
|
|
|
|
|
|
|
|
/* ----------------
|
2003-03-10 23:28:22 +01:00
|
|
|
* postgres.h contains the system type definitions and the
|
2005-04-14 03:38:22 +02:00
|
|
|
* CATALOG(), BKI_BOOTSTRAP and DATA() sugar words so this file
|
1997-09-07 07:04:48 +02:00
|
|
|
* can be read by both genbki.sh and the C compiler.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_language definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_language
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
*/
|
2005-04-14 03:38:22 +02:00
|
|
|
#define LanguageRelationId 2612
|
|
|
|
|
|
|
|
CATALOG(pg_language,2612)
|
1997-09-07 07:04:48 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
NameData lanname;
|
1997-10-28 16:11:45 +01:00
|
|
|
bool lanispl; /* Is a procedural language */
|
|
|
|
bool lanpltrusted; /* PL is trusted */
|
|
|
|
Oid lanplcallfoid; /* Call handler for PL */
|
2002-05-22 19:21:02 +02:00
|
|
|
Oid lanvalidator; /* optional validation function */
|
2002-09-04 22:31:48 +02:00
|
|
|
aclitem lanacl[1]; /* Access privileges */
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_language;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_language corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_language relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_language *Form_pg_language;
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_language
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
2002-07-24 21:11:14 +02:00
|
|
|
#define Natts_pg_language 6
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Anum_pg_language_lanname 1
|
1997-10-28 16:11:45 +01:00
|
|
|
#define Anum_pg_language_lanispl 2
|
|
|
|
#define Anum_pg_language_lanpltrusted 3
|
|
|
|
#define Anum_pg_language_lanplcallfoid 4
|
2002-05-22 19:21:02 +02:00
|
|
|
#define Anum_pg_language_lanvalidator 5
|
2002-07-24 21:11:14 +02:00
|
|
|
#define Anum_pg_language_lanacl 6
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* initial contents of pg_language
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
2002-07-24 21:11:14 +02:00
|
|
|
DATA(insert OID = 12 ( "internal" f f 0 2246 _null_ ));
|
2000-11-20 21:36:57 +01:00
|
|
|
DESCR("Built-in functions");
|
|
|
|
#define INTERNALlanguageId 12
|
2002-07-24 21:11:14 +02:00
|
|
|
DATA(insert OID = 13 ( "c" f f 0 2247 _null_ ));
|
2000-11-20 21:36:57 +01:00
|
|
|
DESCR("Dynamically-loaded C functions");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define ClanguageId 13
|
2002-07-24 21:11:14 +02:00
|
|
|
DATA(insert OID = 14 ( "sql" f t 0 2248 _null_ ));
|
2000-05-28 19:56:29 +02:00
|
|
|
DESCR("SQL-language functions");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define SQLlanguageId 14
|
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* PG_LANGUAGE_H */
|