More lazily query postgres when only es is in use