Forked from okanmenevseoglu/postgres-create-drop-index-online.sql
Last active
March 10, 2018 20:43
-
-
Save ufuk/6c6a8bdb6cec49c15bbece3b86e1578e to your computer and use it in GitHub Desktop.
Create/Drop a database index without locking the table's selects, inserts, etc. on PostgreSQL
This file contains hidden or 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 your_index_name on your_table_name (your_column_name); | |
DROP INDEX CONCURRENTLY your_index_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment