mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-19 20:24:46 +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
577 B
SQL
15 lines
577 B
SQL
\ir include/create_single_db.sql
|
|
|
|
\c single
|
|
|
|
--list all extension functions in public schema
|
|
SELECT DISTINCT proname
|
|
FROM pg_proc
|
|
WHERE OID IN (
|
|
SELECT objid
|
|
FROM pg_catalog.pg_depend WHERE refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND
|
|
refobjid = (select oid from pg_extension where extname='timescaledb') AND
|
|
deptype = 'e' and classid = 'pg_catalog.pg_proc'::regclass
|
|
) AND pronamespace = 'public'::regnamespace
|
|
ORDER BY proname;
|