Re: [HACKERS] GSoC 2017: Foreign Key Arrays

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: [HACKERS] GSoC 2017: Foreign Key Arrays
Дата
Msg-id
20170731151805.nonu6qwv54ca4qvv@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
[HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
[HACKERS] regproc and when to schema-qualify Chapman Flack <chap@anastigmatix.net>
Re: [HACKERS] regproc and when to schema-qualify Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Re: [HACKERS] GSoC 2017: Foreign Key Arrays David Steele <david@pgmasters.net>
Re: Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays David Steele <david@pgmasters.net>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Michael Paquier <michael@paquier.xyz>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Zhihong Yu <zyu@yugabyte.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: GSoC 2017: Foreign Key Arrays Joel Jacobson <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays "Joel Jacobson" <joel@compiler.org>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Zhihong Yu <zyu@yugabyte.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Zhihong Yu <zyu@yugabyte.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Andreas Karlsson <andreas@proxel.se>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alexander Korotkov <aekorotkov@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Enrique Meneses <emmeneses@gmail.com>
Re: [HACKERS] GSoC 2017: Foreign Key Arrays Mark Rofail <markm.rofail@gmail.com>
Tom Lane wrote:
> Alvaro Herrera  writes:
> > ...  However, when you create an index, you can
> > indicate which operator class to use, and it may not be the default one.
> > If a different one is chosen at index creation time, then a query using
> > COUNT(distinct) will do the wrong thing, because DISTINCT will select
> > an equality type using the type's default operator class, not the
> > equality that belongs to the operator class used to create the index.
> 
> > That's wrong: DISTINCT should use the equality operator that corresponds
> > to the index' operator class instead, not the default one.
> 
> Uh, what?  Surely the semantics of count(distinct x) *must not* vary
> depending on what indexes happen to be available.

Err ...

> I think what you meant to say is that the planner may only choose an
> optimization of this sort when the index's opclass matches the one
> DISTINCT will use, ie the default for the data type.

Um, yeah, absolutely.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Andres Freund
Дата:
FAQ