外键和主键上的 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章