summaryrefslogtreecommitdiff
path: root/pgsql_mib_pieces/pg_language.mib
diff options
context:
space:
mode:
authorJoshua Tolley2010-11-26 17:22:01 +0000
committerJoshua Tolley2010-11-26 17:22:01 +0000
commitfe9d8f21bbdfb442b8233b4627a0c67dc458a8bd (patch)
treea88daa49fc47e64777af3d331cf142e0604c2d48 /pgsql_mib_pieces/pg_language.mib
Import from CVSHEADmaster
Diffstat (limited to 'pgsql_mib_pieces/pg_language.mib')
-rw-r--r--pgsql_mib_pieces/pg_language.mib86
1 files changed, 86 insertions, 0 deletions
diff --git a/pgsql_mib_pieces/pg_language.mib b/pgsql_mib_pieces/pg_language.mib
new file mode 100644
index 0000000..ec670c1
--- /dev/null
+++ b/pgsql_mib_pieces/pg_language.mib
@@ -0,0 +1,86 @@
+pgsqlPgLanguageTable OBJECT-TYPE
+ SYNTAX SEQUENCE OF pgsqlPgLanguageEntry
+ MAX-ACCESS not-accessible
+ STATUS current
+ DESCRIPTION
+ "The catalog pg_language registers languages in which you can write functions or stored procedures."
+ ::= { pgsqlCatalogTables 19 }
+
+pgsqlPgLanguageEntry OBJECT-TYPE
+ SYNTAX PgsqlPgLanguageEntry
+ MAX-ACCESS not-accessible
+ STATUS current
+ DESCRIPTION
+ "Represents a single language"
+ INDEX { entryID, rdbmsDbIndex, pgsqlPgLanguageEntryOID }
+ ::= { pgsqlPgLanguageTable 1 }
+
+PgsqlPgLanguageEntry ::=
+ SEQUENCE {
+ pgsqlPgLanguageEntryOID INTEGER,
+ pgsqlPgLanguageLanname DisplayString,
+ pgsqlPgLanguageLanispl TruthValue,
+ pgsqlPgLanguageLanpltrusted TruthValue,
+ pgsqlPgLanguageLanplcallfoid INTEGER,
+ pgsqlPgLanguageLanvalidator INTEGER,
+ pgsqlPgLanguageLanacl DisplayString
+ }
+
+pgsqlPgLanguageEntryOID OBJECT-TYPE
+ SYNTAX INTEGER
+ MAX-ACCESS not-accessible
+ STATUS current
+ DESCRIPTION
+ "OID of this entry"
+ ::= { pgsqlPgLanguageEntry 1 }
+
+pgsqlPgLanguageLanname OBJECT-TYPE
+ SYNTAX DisplayString
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Name of the language"
+ ::= { pgsqlPgLanguageEntry 2 }
+
+pgsqlPgLanguageLanispl OBJECT-TYPE
+ SYNTAX TruthValue
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "This is false for internal languages (such as SQL ) and true for user-defined languages. Currently, pg_dump still uses this to determine which languages need to be dumped, but this may be replaced by a different mechanism in the future"
+ ::= { pgsqlPgLanguageEntry 3 }
+
+pgsqlPgLanguageLanpltrusted OBJECT-TYPE
+ SYNTAX TruthValue
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "True if this is a trusted language, which means that it is believed not to grant access to anything outside the normal SQL execution environment. Only superusers may create functions in untrusted languages"
+ ::= { pgsqlPgLanguageEntry 4 }
+
+pgsqlPgLanguageLanplcallfoid OBJECT-TYPE
+ SYNTAX INTEGER
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "For noninternal languages this references the language handler, which is a special function that is responsible for executing all functions that are written in the particular language"
+ ::= { pgsqlPgLanguageEntry 5 }
+
+pgsqlPgLanguageLanvalidator OBJECT-TYPE
+ SYNTAX INTEGER
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "This references a language validator function that is responsible for checking the syntax and validity of new functions when they are created. Zero if no validator is provided"
+ ::= { pgsqlPgLanguageEntry 6 }
+
+pgsqlPgLanguageLanacl OBJECT-TYPE
+ SYNTAX DisplayString
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Access privileges; see GRANT and REVOKE for details"
+ ::= { pgsqlPgLanguageEntry 7 }
+
+
+---------------------------------------