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
|
|
|
*
|
|
|
|
*
|
2009-01-01 18:24:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2009, 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
|
|
|
*
|
2009-09-23 01:43:43 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/catalog/pg_language.h,v 1.35 2009/09/22 23:43:41 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
|
|
|
|
|
2008-03-27 04:57:34 +01:00
|
|
|
#include "catalog/genbki.h"
|
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-10-15 04:49:52 +02:00
|
|
|
#define LanguageRelationId 2612
|
2005-04-14 03:38:22 +02:00
|
|
|
|
|
|
|
CATALOG(pg_language,2612)
|
1997-09-07 07:04:48 +02:00
|
|
|
{
|
2007-03-26 18:58:41 +02:00
|
|
|
NameData lanname; /* Language name */
|
|
|
|
Oid lanowner; /* Language's owner */
|
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 */
|
2009-09-23 01:43:43 +02:00
|
|
|
Oid laninline; /* Optional anonymous-block handler function */
|
2007-03-26 18:58:41 +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
|
|
|
* ----------------
|
|
|
|
*/
|
2009-09-23 01:43:43 +02:00
|
|
|
#define Natts_pg_language 8
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Anum_pg_language_lanname 1
|
2007-03-26 18:58:41 +02:00
|
|
|
#define Anum_pg_language_lanowner 2
|
|
|
|
#define Anum_pg_language_lanispl 3
|
|
|
|
#define Anum_pg_language_lanpltrusted 4
|
|
|
|
#define Anum_pg_language_lanplcallfoid 5
|
2009-09-23 01:43:43 +02:00
|
|
|
#define Anum_pg_language_laninline 6
|
|
|
|
#define Anum_pg_language_lanvalidator 7
|
|
|
|
#define Anum_pg_language_lanacl 8
|
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
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
2009-09-23 01:43:43 +02:00
|
|
|
DATA(insert OID = 12 ( "internal" PGUID f f 0 0 2246 _null_ ));
|
2007-09-03 04:30:45 +02:00
|
|
|
DESCR("built-in functions");
|
2000-11-20 21:36:57 +01:00
|
|
|
#define INTERNALlanguageId 12
|
2009-09-23 01:43:43 +02:00
|
|
|
DATA(insert OID = 13 ( "c" PGUID f f 0 0 2247 _null_ ));
|
2007-09-03 04:30:45 +02:00
|
|
|
DESCR("dynamically-loaded C functions");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define ClanguageId 13
|
2009-09-23 01:43:43 +02:00
|
|
|
DATA(insert OID = 14 ( "sql" PGUID f t 0 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 */
|