38 typedef byte dict_hdr_t;
98 __attribute__((warn_unused_result));
107 __attribute__((warn_unused_result));
117 __attribute__((warn_unused_result));
120 #define DICT_HDR_SPACE 0
121 #define DICT_HDR_PAGE_NO FSP_DICT_HDR_PAGE_NO
124 #define DICT_TABLES_ID 1
125 #define DICT_COLUMNS_ID 2
126 #define DICT_INDEXES_ID 3
127 #define DICT_FIELDS_ID 4
129 #define DICT_TABLE_IDS_ID 5
131 #define DICT_HDR_FIRST_ID 10
139 #define DICT_HDR FSEG_PAGE_DATA
143 #define DICT_HDR_ROW_ID 0
144 #define DICT_HDR_TABLE_ID 8
145 #define DICT_HDR_INDEX_ID 16
146 #define DICT_HDR_MAX_SPACE_ID 24
147 #define DICT_HDR_MIX_ID_LOW 28
148 #define DICT_HDR_TABLES 32
149 #define DICT_HDR_TABLE_IDS 36
150 #define DICT_HDR_COLUMNS 40
151 #define DICT_HDR_INDEXES 44
152 #define DICT_HDR_FIELDS 48
154 #define DICT_HDR_FSEG_HEADER 56
160 enum dict_col_sys_tables_enum {
161 DICT_COL__SYS_TABLES__NAME = 0,
162 DICT_COL__SYS_TABLES__ID = 1,
163 DICT_COL__SYS_TABLES__N_COLS = 2,
164 DICT_COL__SYS_TABLES__TYPE = 3,
165 DICT_COL__SYS_TABLES__MIX_ID = 4,
166 DICT_COL__SYS_TABLES__MIX_LEN = 5,
167 DICT_COL__SYS_TABLES__CLUSTER_ID = 6,
168 DICT_COL__SYS_TABLES__SPACE = 7,
169 DICT_NUM_COLS__SYS_TABLES = 8
172 enum dict_fld_sys_tables_enum {
173 DICT_FLD__SYS_TABLES__NAME = 0,
174 DICT_FLD__SYS_TABLES__DB_TRX_ID = 1,
175 DICT_FLD__SYS_TABLES__DB_ROLL_PTR = 2,
176 DICT_FLD__SYS_TABLES__ID = 3,
177 DICT_FLD__SYS_TABLES__N_COLS = 4,
178 DICT_FLD__SYS_TABLES__TYPE = 5,
179 DICT_FLD__SYS_TABLES__MIX_ID = 6,
180 DICT_FLD__SYS_TABLES__MIX_LEN = 7,
181 DICT_FLD__SYS_TABLES__CLUSTER_ID = 8,
182 DICT_FLD__SYS_TABLES__SPACE = 9,
183 DICT_NUM_FIELDS__SYS_TABLES = 10
186 enum dict_fld_sys_table_ids_enum {
187 DICT_FLD__SYS_TABLE_IDS__ID = 0,
188 DICT_FLD__SYS_TABLE_IDS__NAME = 1,
189 DICT_NUM_FIELDS__SYS_TABLE_IDS = 2
192 enum dict_col_sys_columns_enum {
193 DICT_COL__SYS_COLUMNS__TABLE_ID = 0,
194 DICT_COL__SYS_COLUMNS__POS = 1,
195 DICT_COL__SYS_COLUMNS__NAME = 2,
196 DICT_COL__SYS_COLUMNS__MTYPE = 3,
197 DICT_COL__SYS_COLUMNS__PRTYPE = 4,
198 DICT_COL__SYS_COLUMNS__LEN = 5,
199 DICT_COL__SYS_COLUMNS__PREC = 6,
200 DICT_NUM_COLS__SYS_COLUMNS = 7
203 enum dict_fld_sys_columns_enum {
204 DICT_FLD__SYS_COLUMNS__TABLE_ID = 0,
205 DICT_FLD__SYS_COLUMNS__POS = 1,
206 DICT_FLD__SYS_COLUMNS__DB_TRX_ID = 2,
207 DICT_FLD__SYS_COLUMNS__DB_ROLL_PTR = 3,
208 DICT_FLD__SYS_COLUMNS__NAME = 4,
209 DICT_FLD__SYS_COLUMNS__MTYPE = 5,
210 DICT_FLD__SYS_COLUMNS__PRTYPE = 6,
211 DICT_FLD__SYS_COLUMNS__LEN = 7,
212 DICT_FLD__SYS_COLUMNS__PREC = 8,
213 DICT_NUM_FIELDS__SYS_COLUMNS = 9
216 enum dict_col_sys_indexes_enum {
217 DICT_COL__SYS_INDEXES__TABLE_ID = 0,
218 DICT_COL__SYS_INDEXES__ID = 1,
219 DICT_COL__SYS_INDEXES__NAME = 2,
220 DICT_COL__SYS_INDEXES__N_FIELDS = 3,
221 DICT_COL__SYS_INDEXES__TYPE = 4,
222 DICT_COL__SYS_INDEXES__SPACE = 5,
223 DICT_COL__SYS_INDEXES__PAGE_NO = 6,
224 DICT_NUM_COLS__SYS_INDEXES = 7
227 enum dict_fld_sys_indexes_enum {
228 DICT_FLD__SYS_INDEXES__TABLE_ID = 0,
229 DICT_FLD__SYS_INDEXES__ID = 1,
230 DICT_FLD__SYS_INDEXES__DB_TRX_ID = 2,
231 DICT_FLD__SYS_INDEXES__DB_ROLL_PTR = 3,
232 DICT_FLD__SYS_INDEXES__NAME = 4,
233 DICT_FLD__SYS_INDEXES__N_FIELDS = 5,
234 DICT_FLD__SYS_INDEXES__TYPE = 6,
235 DICT_FLD__SYS_INDEXES__SPACE = 7,
236 DICT_FLD__SYS_INDEXES__PAGE_NO = 8,
237 DICT_NUM_FIELDS__SYS_INDEXES = 9
240 enum dict_col_sys_fields_enum {
241 DICT_COL__SYS_FIELDS__INDEX_ID = 0,
242 DICT_COL__SYS_FIELDS__POS = 1,
243 DICT_COL__SYS_FIELDS__COL_NAME = 2,
244 DICT_NUM_COLS__SYS_FIELDS = 3
247 enum dict_fld_sys_fields_enum {
248 DICT_FLD__SYS_FIELDS__INDEX_ID = 0,
249 DICT_FLD__SYS_FIELDS__POS = 1,
250 DICT_FLD__SYS_FIELDS__DB_TRX_ID = 2,
251 DICT_FLD__SYS_FIELDS__DB_ROLL_PTR = 3,
252 DICT_FLD__SYS_FIELDS__COL_NAME = 4,
253 DICT_NUM_FIELDS__SYS_FIELDS = 5
256 enum dict_col_sys_foreign_enum {
257 DICT_COL__SYS_FOREIGN__ID = 0,
258 DICT_COL__SYS_FOREIGN__FOR_NAME = 1,
259 DICT_COL__SYS_FOREIGN__REF_NAME = 2,
260 DICT_COL__SYS_FOREIGN__N_COLS = 3,
261 DICT_NUM_COLS__SYS_FOREIGN = 4
264 enum dict_fld_sys_foreign_enum {
265 DICT_FLD__SYS_FOREIGN__ID = 0,
266 DICT_FLD__SYS_FOREIGN__DB_TRX_ID = 1,
267 DICT_FLD__SYS_FOREIGN__DB_ROLL_PTR = 2,
268 DICT_FLD__SYS_FOREIGN__FOR_NAME = 3,
269 DICT_FLD__SYS_FOREIGN__REF_NAME = 4,
270 DICT_FLD__SYS_FOREIGN__N_COLS = 5,
271 DICT_NUM_FIELDS__SYS_FOREIGN = 6
274 enum dict_fld_sys_foreign_for_name_enum {
275 DICT_FLD__SYS_FOREIGN_FOR_NAME__NAME = 0,
276 DICT_FLD__SYS_FOREIGN_FOR_NAME__ID = 1,
277 DICT_NUM_FIELDS__SYS_FOREIGN_FOR_NAME = 2
280 enum dict_col_sys_foreign_cols_enum {
281 DICT_COL__SYS_FOREIGN_COLS__ID = 0,
282 DICT_COL__SYS_FOREIGN_COLS__POS = 1,
283 DICT_COL__SYS_FOREIGN_COLS__FOR_COL_NAME = 2,
284 DICT_COL__SYS_FOREIGN_COLS__REF_COL_NAME = 3,
285 DICT_NUM_COLS__SYS_FOREIGN_COLS = 4
288 enum dict_fld_sys_foreign_cols_enum {
289 DICT_FLD__SYS_FOREIGN_COLS__ID = 0,
290 DICT_FLD__SYS_FOREIGN_COLS__POS = 1,
291 DICT_FLD__SYS_FOREIGN_COLS__DB_TRX_ID = 2,
292 DICT_FLD__SYS_FOREIGN_COLS__DB_ROLL_PTR = 3,
293 DICT_FLD__SYS_FOREIGN_COLS__FOR_COL_NAME = 4,
294 DICT_FLD__SYS_FOREIGN_COLS__REF_COL_NAME = 5,
295 DICT_NUM_FIELDS__SYS_FOREIGN_COLS = 6
298 enum dict_col_sys_tablespaces_enum {
299 DICT_COL__SYS_TABLESPACES__SPACE = 0,
300 DICT_COL__SYS_TABLESPACES__NAME = 1,
301 DICT_COL__SYS_TABLESPACES__FLAGS = 2,
302 DICT_NUM_COLS__SYS_TABLESPACES = 3
305 enum dict_fld_sys_tablespaces_enum {
306 DICT_FLD__SYS_TABLESPACES__SPACE = 0,
307 DICT_FLD__SYS_TABLESPACES__DB_TRX_ID = 1,
308 DICT_FLD__SYS_TABLESPACES__DB_ROLL_PTR = 2,
309 DICT_FLD__SYS_TABLESPACES__NAME = 3,
310 DICT_FLD__SYS_TABLESPACES__FLAGS = 4,
311 DICT_NUM_FIELDS__SYS_TABLESPACES = 5
314 enum dict_col_sys_datafiles_enum {
315 DICT_COL__SYS_DATAFILES__SPACE = 0,
316 DICT_COL__SYS_DATAFILES__PATH = 1,
317 DICT_NUM_COLS__SYS_DATAFILES = 2
320 enum dict_fld_sys_datafiles_enum {
321 DICT_FLD__SYS_DATAFILES__SPACE = 0,
322 DICT_FLD__SYS_DATAFILES__DB_TRX_ID = 1,
323 DICT_FLD__SYS_DATAFILES__DB_ROLL_PTR = 2,
324 DICT_FLD__SYS_DATAFILES__PATH = 3,
325 DICT_NUM_FIELDS__SYS_DATAFILES = 4
330 #define DICT_FLD_LEN_SPACE 4
331 #define DICT_FLD_LEN_FLAGS 4
336 #define DICT_HDR_ROW_ID_WRITE_MARGIN 256