mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 05:31:41 +08:00
Clean up the table schema to get rid of legacy tables and functionality that makes it more difficult to provide an upgrade path. Notable changes: * Get rid of legacy tables and code * Simplify directory structure for SQL code * Simplify table hierarchy: remove root table and make chunk tables * inherit directly from main table * Change chunk table suffix from _data to _chunk * Simplify schema usage: _timescaledb_internal for internal functions. * _timescaledb_catalog for metadata tables. * Remove postgres_fdw dependency * Improve code comments in sql code
15 lines
305 B
SQL
15 lines
305 B
SQL
\o /dev/null
|
|
\ir include/create_single_db.sql
|
|
\o
|
|
\ir include/ddl_ops_1.sql
|
|
|
|
SELECT * FROM PUBLIC."Hypertable_1";
|
|
EXPLAIN (costs off) SELECT * FROM PUBLIC."Hypertable_1";
|
|
|
|
\ir include/ddl_ops_2.sql
|
|
|
|
\d+ PUBLIC."Hypertable_1"
|
|
\d+ _timescaledb_internal._hyper_1_1_chunk
|
|
|
|
SELECT * FROM PUBLIC."Hypertable_1";
|