Re: Coercing compound types to use generic ROW comparison operators
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Coercing compound types to use generic ROW comparison operators |
| Дата | |
| Msg-id | 12212.1192140674@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Coercing compound types to use generic ROW comparison operators (Randall Lucas <rlucas@tercent.com>) |
| Ответы |
Re: Coercing compound types to use generic ROW comparison operators
|
| Список | pgsql-general |
Randall Lucas <rlucas@tercent.com> writes:
> Still, this would fail in a nested situation because it wouldn't
> recurse (if col1 of the compound type were another compound type,
> ferinstance), as would your suggestion above. It might be worthwhile
> to allow choosing to use the default ROW comparison operator at
> composite type creation (which would provide a more elegant solution to
> nested situations).
You are incorrectly supposing that there *is* such an animal as a
default row comparison operator --- actually, ROW() = ROW() is expanded
at parse time into field-by-field comparisons. This is usually a good
thing since it gives the planner more flexibility.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера