pgsql: Fix incorrect permissions-checking code for extended statistics.

2022-08-05 Thread Tom Lane
Fix incorrect permissions-checking code for extended statistics. Commit a4d75c86b improved the extended-stats logic to allow extended stats to be collected on expressions not just bare Vars. To apply such stats, we first verify that the user has permissions to read all columns used in the stats.

pgsql: Fix incorrect permissions-checking code for extended statistics.

2022-08-05 Thread Tom Lane
Fix incorrect permissions-checking code for extended statistics. Commit a4d75c86b improved the extended-stats logic to allow extended stats to be collected on expressions not just bare Vars. To apply such stats, we first verify that the user has permissions to read all columns used in the stats.

pgsql: Fix incorrect permissions-checking code for extended statistics.

2022-08-05 Thread Tom Lane
Fix incorrect permissions-checking code for extended statistics. Commit a4d75c86b improved the extended-stats logic to allow extended stats to be collected on expressions not just bare Vars. To apply such stats, we first verify that the user has permissions to read all columns used in the stats.