Skip to content

create_time_partitions example missing interval keyword #1137

@weetster

Description

@weetster

I noticed that in the latest Citus documentation for the create_time_partitions() function under Citus Utility Functions that when I followed the example, my code wasn't creating time partitions properly. I realized that I was missing the SQL INTERVAL keyword, and when I checked the example in the documentation, it was also missing the keyword.

The example should read as follows:

SELECT create_time_partitions(
    table_name := 'foo',
    partition_interval := '1 month',
    end_at := now() + INTERVAL '12 months'
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions