|
| 1 | +-- This file and its contents are licensed under the Timescale License. |
| 2 | +-- Please see the included NOTICE for copyright information and |
| 3 | +-- LICENSE-TIMESCALE for a copy of the license. |
| 4 | +\pset null '<NULL>' |
| 5 | +SELECT _timescaledb_functions.get_hypertable_id('public.metrics'); |
| 6 | + get_hypertable_id |
| 7 | +------------------- |
| 8 | + 1 |
| 9 | + |
| 10 | +SELECT _timescaledb_functions.get_hypertable_id('public.metrics'::regclass); |
| 11 | + get_hypertable_id |
| 12 | +------------------- |
| 13 | + 1 |
| 14 | + |
| 15 | +SELECT _timescaledb_functions.get_hypertable_id('public','metrics'); |
| 16 | + get_hypertable_id |
| 17 | +------------------- |
| 18 | + 1 |
| 19 | + |
| 20 | +SELECT _timescaledb_functions.get_hypertable_id(NULL); |
| 21 | + get_hypertable_id |
| 22 | +------------------- |
| 23 | + <NULL> |
| 24 | + |
| 25 | +SELECT _timescaledb_functions.get_hypertable_id('pg_catalog.pg_class'); |
| 26 | + get_hypertable_id |
| 27 | +------------------- |
| 28 | + <NULL> |
| 29 | + |
| 30 | +SELECT _timescaledb_functions.get_hypertable_id('pg_catalog','pg_class'); |
| 31 | + get_hypertable_id |
| 32 | +------------------- |
| 33 | + <NULL> |
| 34 | + |
| 35 | +SELECT _timescaledb_functions.get_hypertable_id('',''); |
| 36 | + get_hypertable_id |
| 37 | +------------------- |
| 38 | + <NULL> |
| 39 | + |
| 40 | +SELECT _timescaledb_functions.get_hypertable_id(NULL, NULL); |
| 41 | + get_hypertable_id |
| 42 | +------------------- |
| 43 | + <NULL> |
| 44 | + |
| 45 | +SELECT * FROM _timescaledb_functions.get_hypertable_name(1); |
| 46 | + schema_name | table_name |
| 47 | +-------------+------------ |
| 48 | + public | metrics |
| 49 | + |
| 50 | +SELECT * FROM _timescaledb_functions.get_hypertable_name(_timescaledb_functions.get_hypertable_id('public.metrics')); |
| 51 | + schema_name | table_name |
| 52 | +-------------+------------ |
| 53 | + public | metrics |
| 54 | + |
| 55 | +SELECT * FROM _timescaledb_functions.get_hypertable_name(0); |
| 56 | + schema_name | table_name |
| 57 | +-------------+------------ |
| 58 | + <NULL> | <NULL> |
| 59 | + |
| 60 | +SELECT * FROM _timescaledb_functions.get_hypertable_name(-1); |
| 61 | + schema_name | table_name |
| 62 | +-------------+------------ |
| 63 | + <NULL> | <NULL> |
| 64 | + |
| 65 | +SELECT * FROM _timescaledb_functions.get_hypertable_name(NULL); |
| 66 | + schema_name | table_name |
| 67 | +-------------+------------ |
| 68 | + <NULL> | <NULL> |
| 69 | + |
| 70 | +SELECT _timescaledb_functions.get_chunk_id('_timescaledb_internal._hyper_X_X_chunk'); |
| 71 | + get_chunk_id |
| 72 | +-------------- |
| 73 | + 3 |
| 74 | + |
| 75 | +SELECT _timescaledb_functions.get_chunk_id('_timescaledb_internal._hyper_X_X_chunk'::regclass); |
| 76 | + get_chunk_id |
| 77 | +-------------- |
| 78 | + 3 |
| 79 | + |
| 80 | +SELECT _timescaledb_functions.get_chunk_id('_timescaledb_internal','_hyper_X_X_chunk'); |
| 81 | + get_chunk_id |
| 82 | +-------------- |
| 83 | + 3 |
| 84 | + |
| 85 | +SELECT _timescaledb_functions.get_chunk_id(NULL); |
| 86 | + get_chunk_id |
| 87 | +-------------- |
| 88 | + <NULL> |
| 89 | + |
| 90 | +SELECT _timescaledb_functions.get_chunk_id('pg_catalog.pg_class'); |
| 91 | + get_chunk_id |
| 92 | +-------------- |
| 93 | + <NULL> |
| 94 | + |
| 95 | +SELECT _timescaledb_functions.get_chunk_id('pg_catalog','pg_class'); |
| 96 | + get_chunk_id |
| 97 | +-------------- |
| 98 | + <NULL> |
| 99 | + |
| 100 | +SELECT _timescaledb_functions.get_chunk_id('',''); |
| 101 | + get_chunk_id |
| 102 | +-------------- |
| 103 | + <NULL> |
| 104 | + |
| 105 | +SELECT _timescaledb_functions.get_chunk_id(NULL, NULL); |
| 106 | + get_chunk_id |
| 107 | +-------------- |
| 108 | + <NULL> |
| 109 | + |
| 110 | +SELECT * FROM _timescaledb_functions.get_chunk_name(3); |
| 111 | + schema_name | table_name |
| 112 | +-----------------------+------------------ |
| 113 | + _timescaledb_internal | _hyper_X_X_chunk |
| 114 | + |
| 115 | +SELECT * FROM _timescaledb_functions.get_chunk_name(_timescaledb_functions.get_chunk_id('_timescaledb_internal._hyper_X_X_chunk')); |
| 116 | + schema_name | table_name |
| 117 | +-----------------------+------------------ |
| 118 | + _timescaledb_internal | _hyper_X_X_chunk |
| 119 | + |
| 120 | +SELECT * FROM _timescaledb_functions.get_chunk_name(0); |
| 121 | + schema_name | table_name |
| 122 | +-------------+------------ |
| 123 | + <NULL> | <NULL> |
| 124 | + |
| 125 | +SELECT * FROM _timescaledb_functions.get_chunk_name(-1); |
| 126 | + schema_name | table_name |
| 127 | +-------------+------------ |
| 128 | + <NULL> | <NULL> |
| 129 | + |
| 130 | +SELECT * FROM _timescaledb_functions.get_chunk_name(NULL); |
| 131 | + schema_name | table_name |
| 132 | +-------------+------------ |
| 133 | + <NULL> | <NULL> |
| 134 | + |
0 commit comments