Re: Allow to collect statistics on virtual generated columns
Dean Rasheed <dean.a.rasheed@gmail.com>
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: Yugo Nagata <nagata@sraoss.co.jp>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org
Date: 2026-03-26T16:00:38Z
Lists: pgsql-hackers
On Thu, 26 Mar 2026 at 15:09, Yugo Nagata <nagata@sraoss.co.jp> wrote: > > I've attached an updated patch including the documentation and tests. I think this is a much better approach. One thing that stands out in CreateStatistics() is that the check for a less-than operator can be skipped if there is just a single virtual generated column, for the same reason as for statistics on a single expression. I.e., it should be possible to build statistics on a single virtual generated column of any data type. Regards, Dean
Commits
-
Add support for extended statistics on virtual generated columns.
- f7f4052a4e95 19 (unreleased) landed