9 Commits

Author SHA1 Message Date
Sven Klemm
008c6cf371 Fix dump_meta_data for windows
The dump_meta_data sql script used an external call to date to get
the current data which does not work on windows. This patch changes
the script to use now() instead to get the current time and date.

Fixes #3674
2022-07-28 11:54:49 +02:00
Luigi Servini
eb9f466582 Update dump_meta_data.sql
Added `c.dropped is false ` for table _timescaledb_catalog.chunk to
skip dropped chunks in the size calculation.
2022-06-10 19:17:51 +02:00
Sven Klemm
69b267071a Bump copyright year in license descriptions
Bump year in copyright information to 2022 and adjust same scripts
to reference NOTICE that didn't have the reference yet.
This patch also removes orphaned test/expected/utils.out.
2022-01-14 18:35:46 +01:00
Mats Kindahl
9b5f20dd74 Fix ABI check build dependencies and tests
Some tests contain code that only work if the build is based on a Git
clone, which caused these tests to fail when Git was not available.
This commit splits out those tests and only enabling them if Git is
found and Git information can be retrieved.
2020-12-07 18:10:26 +01:00
Joshua Lockerman
e06733acf0 Fix casing in SQL license header to be consistent with elsewhere 2018-11-15 15:18:58 -05:00
Joshua Lockerman
20ec6914c0 Add license headers to SQL files and test code 2018-10-29 13:28:19 -04:00
Olof Rensfelt
f39d42b182 Add pg version to dump_meta_data script. 2017-10-12 17:16:57 +02:00
Erik Nordström
097db3d589 Refactor chunk index handling
This change refactors the chunk index handling to make better use
of standard PostgreSQL catalog information, while removing the
hypertable_index metadata table and associated triggers, including
those on the chunk_index table. The chunk_index table itself is
also simplified.

A benefit of this refactoring is that indexes are no longer
created using string mangling to construct the CREATE INDEX command
for a chunk, based on the string definition of the hypertable
index. Instead, indexes are created in C using proper index-related
internal data structures.

Chunk indexes can now also be renamed and are added in the parent
index tablespace. Changing tablespace on a hypertable index also
recurses to chunks, as expected. Default indexes that are added when
creating a hypertable use the hypertable's tablespace.

Creating Hypertable indexes with the CONCURRENTLY modifier is
currently blocked, due to unclear semantics regarding concurrent
creation over many tables, including how to deal with snapshots.
2017-10-03 10:51:32 +02:00
Olof Rensfelt
d53c705796 Add script to dump meta data that can be useful for debugging.
This also adds support for a <exclude_from_test> tag that is used
to allow changing outputs for parts of a test without causing an
error.
2017-09-19 17:29:27 +02:00