Skip to content

Instantly share code, notes, and snippets.

@Disassembler0
Last active March 31, 2021 17:05
Show Gist options
  • Save Disassembler0/0375e88e2494795c2e020bcb7a42a927 to your computer and use it in GitHub Desktop.
Save Disassembler0/0375e88e2494795c2e020bcb7a42a927 to your computer and use it in GitHub Desktop.
# Check version
sudo -u postgres psql -X -c "SELECT default_version, installed_version FROM pg_available_extensions WHERE name = 'timescaledb';" zabbix
# Update version
sudo -u postgres psql -X -c "ALTER EXTENSION timescaledb UPDATE;" zabbix
# Check hypertable size
SELECT * FROM hypertable_relation_size_pretty('hypertable');
# Check chunk size
SELECT chunk_table, table_size, index_size, total_size FROM chunk_relation_size_pretty('hypertable');
@Disassembler0
Copy link
Author

Fixes ERROR: could not access file "$libdir/timescaledb-1.2.2": No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment