Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ufuk/6c6a8bdb6cec49c15bbece3b86e1578e to your computer and use it in GitHub Desktop.
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
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