Postgres concurrent index option no longer works
@jinzhu ci sta già lavorando.
Dal 9/12/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
GORM Playground Link
https://github.com/go-gorm/playground/pull/778
Description
Trying to create a Postgres index concurrently. Followed the directions from the docs https://gorm.io/docs/indexes.html by adding ,options:CONCURRENTLY. This resulted in an error creating the table.
https://github.com/go-gorm/postgres/pull/288 causes CONCURRENTLY to be appended to the end of the create index command. This is clearly invalid. That change did not test the case for CONCURRENTLY and thus didn't find that it is now broken.
So I reproduced it the playground to only run Postgres. I added an index to one of the fields in the model. As you can see from the results the same error was received.
2024/12/09 15:39:33 /home/runner/go/pkg/mod/gorm.io/driver/[email protected]/migrator.go:153 ERROR: syntax error at or near "CONCURRENTLY" (SQLSTATE 42601)
[0.342ms] [rows:0] CREATE INDEX CONCURRENTLY IF NOT EXISTS "owner_id" ON "toys" USING btree("owner_id") CONCURRENTLY
2024/12/09 15:39:33 Failed to auto migrate, but got error ERROR: syntax error at or near "CONCURRENTLY" (SQLSTATE 42601)
- Lingua principale
- Go
- Stelle
- 298
- Fork
- 158
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di go-gorm/postgres
-
TimeZone is matched anywhere in the DSN, so a password containing "TimeZone=" breaks the connection and appears in its errorForse già presa @anggakrnwn l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
PostgreSQL 18: `23503` changed to `23001`Forse già presa @jinzhu l’ha presa 7 giorni fa. Aperta
-
HasConstraint ignores UniqueName from custom namerForse di nuovo libera @jinzhu l’ha presa 490 giorni fa e non c’è nessuna pull request aperta. Aperta
-
AutoMigrate error:Forse di nuovo libera @jinzhu l’ha presa 559 giorni fa e non c’è nessuna pull request aperta. Apertatype:question
-
Upgrade pgx to v5.6.0 to fix nil arg handlingForse di nuovo libera @jinzhu l’ha presa 609 giorni fa e non c’è nessuna pull request aperta. Aperta
go-gorm/postgres#303 · 2 commenti · 1 reazione · 1 assegnatario ·
Tutte le issue di go-gorm/postgres
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
koordinator-sh/koordinator#3257 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Component: Backup and Restore Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
needs-acceptance wg/router-models-inference-runtime
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
vllm-project/semantic-router#6018 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
eugenioenko/ttt#1461 ·
I maintainer di solito rispondono entro 1 giorno