Alter System
Change a server configuration parameter.Syntax
Parameters
Name of a configuration parameter.
New value of the parameter. This is always a string constant.
Some parameters require restarting the server before they will take effect. See the Configuration Parameters reference for details on each parameter.
Available Configuration Parameters
checkpoint_segment_size
checkpoint_segment_size
Sets the maximum number of change events processed before a checkpoint occurs.
- Default:
'3000' - Requires restart: Yes
max_poll_interval
max_poll_interval
Sets the timeout in milliseconds for the interval between polls of a Kafka data source.
- Default:
'1800000'(30 minutes) - Requires restart: Yes
external_sql_folio
external_sql_folio
Sets the Git reference in the folio-analytics repository for running external SQL.
- Default:
''(disabled) - Requires restart: No
external_sql_reshare
external_sql_reshare
Example
Alter Table
Change a table definition for tables extracted from data sources.Syntax
Parameters
Schema-qualified name of a main table.
Name of a column to add or alter.
The (new) data type of the column. Types currently supported are
text and uuid.Due to concurrency control,
alter table acquires stream processing or table locks to execute safely. It automatically waits until it can continue.Examples
Add a Column
Change Column Type to UUID
List Commands
Show system configurations and variables.Syntax
Available List Commands
Display server configuration parameter settings.
Display configured data mappings.
Display configured data origins.
Display configured data sources.
Display current status of system components.
Example
Purge Data
Permanently delete data or database objects.Syntax
Parameters
The schema-qualified name of the main table to drop. Multiple tables can be specified, separated by commas.
Description
Thepurge data drop table command removes specified main tables. This also removes the corresponding current tables due to the parent-child relationship.
Due to concurrency control,
purge data drop table acquires stream processing or table locks to execute safely. It automatically waits until it can continue.Examples
Remove a Single Table
Remove Multiple Tables
Remove main tablestable1__ and table2__ along with their corresponding current tables:
Table Naming Conventions
- Main Tables
- Current Tables
Main tables store the complete history of all changes:
- Named with double underscore suffix:
table_name__ - Contain all record versions over time
- Used for historical queries and time-travel
library.patrongroup__System Monitoring
Use these commands to monitor and manage your Metadb instance:Check Configuration
View Data Sources
Monitor System Activity
Best Practices
Configuration Changes
Configuration Changes
Always check if a configuration parameter requires a server restart. Test configuration changes in a non-production environment first.
Table Alterations
Table Alterations
Plan table schema changes carefully. Use
alter table during maintenance windows when possible, as it may need to wait for locks.Data Purging
Data Purging
Double-check before purging: Always verify the table names before running
purge data. Consider backing up data first. Document why data is being purged.Regular Status Checks
Regular Status Checks
Monitor system status regularly using
list status and list config. This helps identify configuration drift and system issues early.Configuration Management Workflow
Restart if Required
Check if the parameter requires a server restart. If yes, plan and execute the restart.
See Also
Configuration Parameters
Detailed reference for all configuration parameters
System Functions
System information and monitoring functions
System Tables
System tables for metadata and monitoring
Data Sources
Configure and manage data sources
