Skip to content

Conversation

@hackermondev
Copy link
Contributor

New Features

Postgres only.

@Expurple Expurple requested review from tyt2y3 and removed request for tyt2y3 August 21, 2025 07:10
@Expurple
Copy link
Member

Can you take care of the CI errors? Seem trivial

pub(crate) name: DynIden,
pub(crate) prefix: Option<u32>,
pub(crate) order: Option<IndexOrder>,
pub(crate) operator_class: Option<DynIden>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only supported by PostgreSQL. Please put it behind the feature gate.

}

if let Some(operator_class) = col.operator_class() {
write!(sql, " {}", operator_class).unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use write_str instead of the write! macro, format_args has a performance cost.


sql.write_str(")").unwrap();
});
write!(sql, ")").unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here.

}

#[test]
fn create_7() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are now two create_7. Please fix them.

@tyt2y3 tyt2y3 changed the base branch from master to pgsql-indexes-operator-classes November 29, 2025 11:21
@tyt2y3 tyt2y3 merged commit 4dee713 into SeaQL:pgsql-indexes-operator-classes Nov 29, 2025
12 of 17 checks passed
tyt2y3 added a commit that referenced this pull request Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for specifying operator class in expression indexes (e.g. gist_trgm_ops)

4 participants