Created
November 21, 2018 20:33
-
-
Save stephencweiss/153a0d9652bb79d476ab1671952d3047 to your computer and use it in GitHub Desktop.
Four common PostgreSQL shell commands related to indexes
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 <index_name> ON <table_name> (<field(s)>) # Add an index | |
| DROP INDEX index_name; # Drop an index | |
| \d <table_name>; # See all indexes on a table | |
| \di; # See all indexes in a database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment