Re: multivariate statistics (v25)

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: multivariate statistics (v25)
Дата
Msg-id CAKJS1f9HMeT+7adicEaU8heOMpOB5pKkCVYZLiEZje3DVutVPw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: multivariate statistics (v25)  ("Tels" <nospam-abuse@bloodgate.com>)
Список pgsql-hackers
On 6 April 2017 at 07:19, Tels <nospam-abuse@bloodgate.com> wrote:
> I know I'm a bit late, but isn't the syntax backwards?
>
> "CREATE STATISTICS s1 WITH (dependencies) ON (col_a, col_b) FROM table;"
>
> These do it the other way round:
>
> CREATE INDEX idx ON table (col_a);
>
> AND:
>
>    CREATE TABLE t (
>      id INT  REFERENCES table_2 (col_b);
>    );
>
> Won't this be confusing and make things hard to remember?
>
> Sorry for not asking earlier, I somehow missed this.

The reasoning is in [1]

[1] https://www.postgresql.org/message-id/CAEZATCUtGR+U5+QTwjHhe9rLG2nguEysHQ5NaqcK=VbJ78VQFA@mail.gmail.com


-- David Rowley                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: PoC plpgsql - possibility to force custom or genericplan
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: multivariate statistics (v25)