外鍵和主鍵上的 Postgres 和索引 - Postgres and Indexes on Foreign Keys and Primary Keys

問題:

Does Postgres automatically put indexes on Foreign Keys and Primary Keys? Postgres 是否自動將索引放在外鍵和主鍵上? How can I tell?我怎麼知道? Is there a command that will return all indexes on a table?是否有一個命令可以返回表上的所有索引?


解決方案:

參考一: https://en.stackoom.com/question/44UE
參考二: https://stackoom.com/question/44UE
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章