summaryrefslogtreecommitdiff
path: root/pgsql_mib_pieces/pg_index.mib
blob: c5a999b347fa84deba1224be3d778940db161bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
pgsqlPgIndexTable		OBJECT-TYPE
	SYNTAX		SEQUENCE OF pgsqlPgIndexEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"The catalog pg_index contains part of the information about indexes. The rest is mostly in pg_class."
	::= { pgsqlCatalogTables 17 }

pgsqlPgIndexEntry		OBJECT-TYPE
	SYNTAX		PgsqlPgIndexEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Represents a single index"
	INDEX  { pgsnmpdConnID, rdbmsDbIndex, pgsqlPgIndexEntryOID }
	::= { pgsqlPgIndexTable 1 }

PgsqlPgIndexEntry ::=
	SEQUENCE {
		pgsqlPgIndexEntryOID		INTEGER,
		pgsqlPgIndexIndexrelid		INTEGER,
		pgsqlPgIndexIndrelid		INTEGER,
		pgsqlPgIndexIndnatts		INTEGER,
		pgsqlPgIndexIndisunique		TruthValue,
		pgsqlPgIndexIndisprimary		TruthValue,
		pgsqlPgIndexIndisclustered		TruthValue,
		pgsqlPgIndexIndisvalid		TruthValue,
		pgsqlPgIndexIndkey		DisplayString,
		pgsqlPgIndexIndclass		DisplayString,
		pgsqlPgIndexIndexprs		DisplayString,
		pgsqlPgIndexIndpred		DisplayString
	}

pgsqlPgIndexEntryOID			OBJECT-TYPE
	SYNTAX		INTEGER
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"OID of this entry"
	::= { pgsqlPgIndexEntry 1 }

pgsqlPgIndexIndexrelid			OBJECT-TYPE
	SYNTAX		INTEGER
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The OID of the pg_class entry for this index"
	::= { pgsqlPgIndexEntry 2 }

pgsqlPgIndexIndrelid			OBJECT-TYPE
	SYNTAX		INTEGER
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The OID of the pg_class entry for the table this index is for"
	::= { pgsqlPgIndexEntry 3 }

pgsqlPgIndexIndnatts			OBJECT-TYPE
	SYNTAX		INTEGER
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The number of columns in the index (duplicates pg_class.relnatts )"
	::= { pgsqlPgIndexEntry 4 }

pgsqlPgIndexIndisunique			OBJECT-TYPE
	SYNTAX		TruthValue
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"If true, this is a unique index"
	::= { pgsqlPgIndexEntry 5 }

pgsqlPgIndexIndisprimary			OBJECT-TYPE
	SYNTAX		TruthValue
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"If true, this index represents the primary key of the table. ( indisunique should always be true when this is true.)"
	::= { pgsqlPgIndexEntry 6 }

pgsqlPgIndexIndisclustered			OBJECT-TYPE
	SYNTAX		TruthValue
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"If true, the table was last clustered on this index"
	::= { pgsqlPgIndexEntry 7 }

pgsqlPgIndexIndisvalid			OBJECT-TYPE
	SYNTAX		TruthValue
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"If true, the index is currently valid for queries. False means the index is possibly incomplete: it must still be modified by INSERT / UPDATE operations, but it cannot safely be used for queries. If it is unique, the uniqueness property is not true either"
	::= { pgsqlPgIndexEntry 8 }

pgsqlPgIndexIndkey			OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"This is an array of indnatts values that indicate which table columns this index indexes. For example a value of 1 3 would mean that the first and the third table columns make up the index key. A zero in this array indicates that the corresponding index attribute is an expression over the table columns, rather than a simple column reference."
	::= { pgsqlPgIndexEntry 9 }

pgsqlPgIndexIndclass			OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"For each column in the index key this contains the OID of the operator class to use. See pg_opclass for details"
	::= { pgsqlPgIndexEntry 10 }

pgsqlPgIndexIndexprs			OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Expression trees (in nodeToString() representation) for index attributes that are not simple column references. This is a list with one element for each zero entry in indkey . NULL if all index attributes are simple references"
	::= { pgsqlPgIndexEntry 11 }

pgsqlPgIndexIndpred			OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Expression tree (in nodeToString() representation) for partial index predicate. NULL if not a partial index"
	::= { pgsqlPgIndexEntry 12 }


---------------------------------------