Skip to content
TimescaleDB - Timeseries database for PostgreSQL
  • Timescale.com
  • Try for free
Getting started
Use Timescale
Clouds and regions
Services
User Management
Write data
Query data
Time buckets
Hypertables
Schema management
Compression
Configuration
Ingest data from other sources
Billing and account management
Continuous aggregates
Alerting
Data retention
Data tiering
VPC
Hyperfunctions
Metrics and logging
High availability and replication
Upgrades
PostgreSQL extensions
Backup and restore
User-defined actions
About user-defined actions
Create and register a user-defined action
Test and debug a user-defined action
Alter and delete a user-defined action
Use an action for generic retention
Use an action for tablespace management
Use an action for downsampling and compression
Use an action to backfill data periodically
Troubleshooting
Timescale integrations
Security
Timescale limitations
Troubleshoot Timescale
Tutorials
Code quick starts
API Reference
Migrate
Other deployment options
About Timescale
Find a docs page
Use Timescale

User-defined actions

User-defined actions let you schedule custom-defined procedures to run within Timescale. They help you automate periodic tasks that aren't covered by Timescale's policy features.

In this section:

  • Learn about user-defined actions before you start using them
  • Create and register a user-defined action
  • Test and debug a user-defined action
  • Alter and delete a user-defined action
  • Examples of user-defined actions:
    • Use a user-defined action to set up a generic data retention policy that applies across all hypertables
    • Use a user-defined action to implement automatic moving of chunks between tablespaces
    • Use a user-defined action to automatically downsample and compress older chunks

Keywords

actions

Found an issue on this page?

Report an issue!
PreviousBackup and restoreNextAbout user-defined actions

Related Content

Alter and delete user-defined actions
Alter an existing job or delete it from the automation framework
Create and register user-defined actions
Add a user-defined action to your database
About user-defined actions
Write custom functions and procedures, and schedule them to run periodically
Test and debug a user-defined action
Troubleshoot problems when writing a user-defined action
Use a user-defined action to implement automatic tablespace management
Automatically move hypertable chunks between tablespaces
Use a user-defined action to create a generic retention policy
Create a generic data retention policy that applies to all hypertables