Re: Non-Stored Generated Columns - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Non-Stored Generated Columns
Date
Msg-id 3c7e0de87eedeb66a127394202db8f12af36c424.camel@cybertec.at
Whole thread Raw
In response to Re: Non-Stored Generated Columns  (Dominique Devienne <ddevienne@gmail.com>)
List pgsql-general
On Thu, 2024-02-29 at 12:07 +0100, Dominique Devienne wrote:
> But I'm sure indexes on columns "not used at all in a statement" are eliminated early and easily/cheaply,
> w/o even getting into more complex consideration like statistics and co. Aren't they?

You may want a "SELECT count(*) FROM tab" to consider an index-only
scan on a small index, right?  I'm not saying that it is a large
overhead, but if you actually have dozens of indexes, it can
make processing slower.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Or Cohen
Date:
Subject: RE: SUSE repositories not longer available
Next
From: Anthony Codjoe - IQ-C
Date:
Subject: Voluntary Product Assessment For pgAdmin 8.3