minor change for create_list_bounds()

Zhihong Yu <zyu@yugabyte.com>

From: Zhihong Yu <zyu@yugabyte.com>
To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2022-03-08T19:05:10Z
Lists: pgsql-hackers

Attachments

Hi,
I was looking at commit db632fbca and noticed that,
in create_list_bounds(), if index is added to boundinfo->interleaved_parts
in the first if statement, there is no need to perform the second check
involving call to partition_bound_accepts_nulls().

Here is a short patch.

Cheers

Commits

  1. Small cleanup of create_list_bounds()

  2. Allow ordered partition scans in more cases