Skip to content

[Feature]: Support for modifying partition schemas and add new partitions via TDS endpoint #4776

Description

@PauloHMattos

Description

Currently, Babelfish supports creating table partitions (via CREATE PARTITION FUNCTION and CREATE PARTITION SCHEME). However, when attempting to modify the partition schema to accommodate new data using T-SQL commands like ALTER PARTITION FUNCTION ... and ALTER PARTITION SCHEME ..., the operations are not supported over the TDS endpoint. This prevents us from doing ongoing partition maintenance using standard SQL Server syntax.

We would like full support for T-SQL partition modification commands over the TDS endpoint so that we can add new partitions to existing partitioned tables without leaving the SQL Server context.

Possible workaround

Currently, our assumed workaround is to connect directly to the PostgreSQL port and manage the addition of new partitions using native PostgreSQL declarative partitioning syntax.

Could the maintainers confirm if:

  • This is the recommended and safest approach for ongoing partition management?
  • Are there any catalog synchronization risks we should be aware of when doing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions