来源:https://stackoverflow.com/questions/63632775/possible-better-sql-query-for-multiple-unions-fetch-latest-5-records-for-diffe 标签 sql postgresql optimization greatest-n-per-group