Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL No support for CREATE INDEX CONCURRENTLY #4531

Closed
shockie opened this issue Aug 15, 2023 · 1 comment · Fixed by #4537
Closed

PostgreSQL No support for CREATE INDEX CONCURRENTLY #4531

shockie opened this issue Aug 15, 2023 · 1 comment · Fixed by #4537
Labels

Comments

@shockie
Copy link

shockie commented Aug 15, 2023

SQLDelight Version

2.0.0

SQLDelight Dialect

PostgreSQL

Describe the Bug

Creating an index via CREATE INDEX CONCURRENTLY fails, even when I try to add the index via CREATE INDEX the migration fails.

It feels related with #4501 since it's a CREATE statement.

Stacktrace

No response

@shockie shockie added the bug label Aug 15, 2023
@griffio
Copy link
Contributor

griffio commented Aug 15, 2023

🍔 The create_index_stmt would have to be added - something like below - in PostgreSql.bnf

🔎

create_index_stmt ::= CREATE [ UNIQUE ] INDEX [ 'CONCURRENTLY' ] [ IF NOT EXISTS ] [ {database_name} DOT ] {index_name} ON {table_name} LP {indexed_column} ( COMMA {indexed_column} ) * RP [ WHERE <<expr '-1'>> ] {
  extends = "com.alecstrong.sql.psi.core.psi.impl.SqlCreateIndexStmtImpl"
  override = true
  pin = 6
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants