-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CREATE INDEX does not block table reads #15
Comments
Thanks, there's definitely an inconsistency here. The example is correct in stating "which will block writes" but the description says (incorrectly) it will also block reads. This must've been some copy-paste error; sorry about that. I'll get a PR up to resolve. |
Also see some notes I left in #8 |
Thanks, though you still have the language under the "Good", suggesting postgres normally blocks reads without concurrently:
|
fixed! |
Folks at my company have been passing this repo and associated article around like it's gospel, but I'm pretty sure you're wrong on creating postgres indexes and blocking table reads:
CREATE INDEX will block table writes but not reads in postgres
creating the index concurrently will not block writes.
From the postgresql docs regarding CONCURRENTLY
The text was updated successfully, but these errors were encountered: