Last active
January 29, 2018 11:28
-
-
Save okanmenevseoglu/9411f7abad6f5adb0f42f4e23689f03a to your computer and use it in GitHub Desktop.
Create/Drop a database index online (without locking the table) on PostgreSQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE INDEX CONCURRENTLY {indexName} ON {tableName} ({columnName}); | |
DROP INDEX CONCURRENTLY {indexName}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment