Overview
ALTER commands allow you to modify existing database objects in Materialize. These commands let you change object properties, rename objects, and update configurations without recreating them.Available ALTER Commands
ALTER CLUSTER
Modify cluster configuration, including replicas and scheduling
ALTER INDEX
Rename indexes or change their cluster assignment
ALTER SOURCE
Modify source properties and cluster assignment
ALTER MATERIALIZED VIEW
Change materialized view configuration and cluster
ALTER VIEW
Rename views
ALTER SINK
Modify sink properties
ALTER TABLE
Add or rename columns in tables
ALTER SECRET
Modify secret values
ALTER ROLE
Change role attributes
ALTER SYSTEM
Set or reset system configuration parameters
Common Use Cases
Rename an Object
Change Cluster Assignment
Modify Cluster Configuration
Update System Parameters
Important Considerations
- Renaming objects updates all dependencies automatically
- Changing cluster assignments may cause brief downtime during the transition
- ALTER operations are transactional and atomic
- Not all object properties can be modified with ALTER; some require recreating the object
Restrictions
- You cannot alter an object’s fundamental type (e.g., convert a view to a materialized view)
- Some properties are immutable and require dropping and recreating the object
- Certain operations require ownership or specific privileges
Related Commands
CREATE Commands
Create new database objects
DROP Commands
Remove existing database objects
SHOW Commands
Inspect database objects
GRANT/REVOKE
Manage object privileges