@@ -29,6 +29,7 @@ typedef enum CatalogTable
29
29
CHUNK ,
30
30
CHUNK_CONSTRAINT ,
31
31
CHUNK_INDEX ,
32
+ TABLESPACE ,
32
33
_MAX_CATALOG_TABLES ,
33
34
} CatalogTable ;
34
35
@@ -375,14 +376,73 @@ enum Anum_chunk_index_chunk_id_index_name_idx
375
376
_Anum_chunk_index_chunk_id_index_name_idx_max ,
376
377
};
377
378
378
-
379
379
enum Anum_chunk_index_hypertable_id_hypertable_index_name_idx
380
380
{
381
381
Anum_chunk_index_hypertable_id_hypertable_index_name_idx_hypertable_id = 1 ,
382
382
Anum_chunk_index_hypertable_id_hypertable_index_name_idx_hypertable_index_name ,
383
383
Anum_chunk_index_hypertable_id_hypertable_index_name_idx_max ,
384
384
};
385
385
386
+ /************************************
387
+ *
388
+ * Tablespace table definitions
389
+ *
390
+ ************************************/
391
+
392
+ #define TABLESPACE_TABLE_NAME "tablespace"
393
+
394
+ enum Anum_tablespace
395
+ {
396
+ Anum_tablespace_id = 1 ,
397
+ Anum_tablespace_hypertable_id ,
398
+ Anum_tablespace_tablespace_name ,
399
+ _Anum_tablespace_max ,
400
+ };
401
+
402
+ #define Natts_tablespace \
403
+ (_Anum_tablespace_max - 1)
404
+
405
+ typedef struct FormData_tablespace
406
+ {
407
+ int32 id ;
408
+ int32 hypertable_id ;
409
+ NameData tablespace_name ;
410
+ } FormData_tablespace ;
411
+
412
+ typedef FormData_tablespace * Form_tablespace ;
413
+
414
+ enum
415
+ {
416
+ TABLESPACE_PKEY_IDX = 0 ,
417
+ TABLESPACE_HYPERTABLE_ID_TABLESPACE_NAME_IDX ,
418
+ _MAX_TABLESPACE_INDEX ,
419
+ };
420
+
421
+ enum Anum_tablespace_pkey_idx
422
+ {
423
+ Anum_tablespace_pkey_idx_tablespace_id = 1 ,
424
+ _Anum_tablespace_pkey_idx_max ,
425
+ };
426
+
427
+ typedef struct FormData_tablespace_pkey_idx
428
+ {
429
+ int32 tablespace_id ;
430
+ } FormData_tablespace_pkey_idx ;
431
+
432
+ enum Anum_tablespace_hypertable_id_tablespace_name_idx
433
+ {
434
+ Anum_tablespace_hypertable_id_tablespace_name_idx_hypertable_id = 1 ,
435
+ Anum_tablespace_hypertable_id_tablespace_name_idx_tablespace_name ,
436
+ _Anum_tablespace_hypertable_id_tablespace_name_idx_max ,
437
+ };
438
+
439
+ typedef struct FormData_tablespace_hypertable_id_tablespace_name_idx
440
+ {
441
+ int32 hypertable_id ;
442
+ NameData tablespace_name ;
443
+ } FormData_tablespace_hypertable_id_tablespace_name_idx ;
444
+
445
+
386
446
#define MAX (a , b ) \
387
447
((long)(a) > (long)(b) ? (a) : (b))
388
448
@@ -392,7 +452,8 @@ enum Anum_chunk_index_hypertable_id_hypertable_index_name_idx
392
452
MAX(_MAX_DIMENSION_SLICE_INDEX, \
393
453
MAX(_MAX_CHUNK_CONSTRAINT_INDEX, \
394
454
MAX(_MAX_CHUNK_INDEX_INDEX, \
395
- _MAX_CHUNK_INDEX)))))
455
+ MAX(_MAX_TABLESPACE_INDEX, \
456
+ _MAX_CHUNK_INDEX))))))
396
457
397
458
typedef enum CacheType
398
459
{
0 commit comments