Личный кабинет
Укажите e-mail, на который будет выслан код восстановления пароля.
На указанный вами адрес e-mail был выслан код подтверждения аккаунта. Введите полученный код для продолжения:
Введите новый пароль два раза:
PostgreSQL version: 16.1Operating system: centos7Description: Let me show these explain results first, in PG9.4 and PG16.1.### Behavior in PG9.4``` SQLgpadmin=# create table t1 (c1 int, c2 text);CREATE TABLEgpadmin=# explain (costs off, verbose) select distinct c1 from t1; QUERY PLAN----------------------------- HashAggregate Output: c1 Group Key: t1.c1 -> Seq Scan on public.t1 Output: c1 <---- pay attention <---- !!!(5 rows)```### Behavior in PG 16.1``` SQLgpadmin=# create table t1 (c1 int, c2 text);CREATE TABLEgpadmin=# explain (costs off, verbose) select distinct c1 from t1; QUERY PLAN----------------------------- HashAggregate Output: c1 Group Key: t1.c1 -> Seq Scan on public.t1 Output: c1, c2 <---- pay attention <---- !!!(5 rows)```My question is why scan all columns in PG 16.01?If `select distinct c1`, scan the column `c1` is enough, like PG 9.4.
В списке pgsql-general по дате отправления: