如果我有一张像这样的桌子:
Food ----------------- name | price | x
假设我在 name 和 price 上创建了一个索引,但是数据库在某些行中为 name 和 price 提供了一堆空值。PostgreSQL 会自动跳过索引这些行吗?我听说这种行为可能在以后的版本中有所改变。
postgresql index null
index ×1
null ×1
postgresql ×1