Skip to main content
The WITH (storage parameter) sets a storage parameter on a table.

Syntax

create_index_with_storage_param::= create_index_with_storage_param syntax diagram create_table_with_storage_param::= create_table_with_storage_param syntax diagram

Command parameters

Storage parameters

Index parameters

The following parameters are included for PostgreSQL compatibility and do not affect how CockroachDB runs:
  • fillfactor

Table parameters

The following parameters are included for PostgreSQL compatibility and do not affect how CockroachDB runs:
  • autovacuum_enabled
  • fillfactor
For the list of storage parameters that affect how works, see the list of .

Required privileges

The user must be a member of the or roles, or have the on the table.

Examples

Create a table with row-level TTL enabled

In this case, CockroachDB implicitly added the ttl and ttl_job_cron .

See also