Skip to content

Conversation

s-takehana
Copy link
Contributor

@s-takehana s-takehana commented May 31, 2021

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Related to go-gorm/gorm#4423.

https://www.postgresql.org/docs/current/sql-createindex.html

User Case Description

type User struct {
	gorm.Model
	Name string `gorm:"index:,option:CONCURRENTLY"`
}
2021/05/19 03:56:58 /go/pkg/mod/gorm.io/driver/postgres@v1.0.8/migrator.go:134
[6.462ms] [rows:0] CREATE INDEX CONCURRENTLY "idx_users_name" ON "users" ("name")

@jinzhu jinzhu merged commit 4c6dc88 into go-gorm:master Jun 14, 2021
@jinzhu
Copy link
Member

jinzhu commented Jun 14, 2021

thank you for your PR.

@s-takehana s-takehana deleted the add_create_index_concurrently_option branch June 14, 2021 17:02
@s-takehana s-takehana mentioned this pull request Jun 14, 2021
1 task
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.

2 participants