10 Commits

Author SHA1 Message Date
Erik Nordström
4623db14ad Use consistent column names in views
Make all views that reference hypertables use `hypertable_schema` and
`hypertable_name`.
2020-10-05 15:18:47 +02:00
gayyappan
7d3b4b5442 New size utils functions
Add hypertable_detailed_size , chunk_detailed_size,
hypertable_size functions.
Remove hypertable_relation_size,
hypertable_relation_size_pretty, and indexes_relation_size_pretty
Remove size information from hypertables view.
2020-07-29 15:30:39 -04:00
gayyappan
dc61466aef Add chunks and dimensions view
timescaledb_information.chunks view shows metadata
related to chunks.
timescaledb_information.dimensions shows metadata
related to hypertable's dimensions.
2020-07-26 17:10:05 -04:00
Derek Marsh
88773323f4 Ignore dropped chunks in compressed_chunk_stats 2020-04-16 16:34:46 +02:00
Sven Klemm
c5dd8b1dbe Add missing ORDER BY clause to views test
Add ORDER BY clause to views test to make result of the test
consistent
2019-05-02 18:06:11 +02:00
Sven Klemm
207391bc54 Remove parent oid from find_children_oids result
Since the parent table of a hypertable cannot contain
any rows including it in the plan is not necessary. PostgreSQL might
also not have good statistics for the main table as autoanalyze is
triggered by inserts which never happen to the main table, leading to
worse plans.

This patch adds a new guc enable_constraint_exclusion to disable
planner constraint exclusion. Constraint exclusion will not work with
cursors and WHERE CURRENT OF so the new guc will allow you to disable
that feature.

This patch also fixes constraint exclusion for JOINs and sort
optimization for queries with chunks_in.
2019-02-21 12:28:59 -05:00
Sven Klemm
f89fd07c5b Remove year from SQL file license text
This changes the license text for SQL files to be identical
with the license text for C files.
2019-01-13 23:30:22 +01:00
Sven Klemm
787cc0470e Replace hardcoded database name from regression tests
Replace hardcoded database name from regression tests with :TEST_DBNAME
Remove creation of database single_2 from test runner and add it to
bgw_launcher and loader test since no other tests used those
use SQL comments in test scripts
2018-12-28 19:26:27 +01:00
Amy Tai
b7f32f2a79 Make views test more deterministic 2018-12-02 19:25:36 -05:00
Sven Klemm
d4619598a9 Add view to show hypertable information
Add timescaledb_information.hypertable view that lists
hypertables, their owner, number of chunks and storage size
2018-11-28 17:02:56 +01:00