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 | 27197.1192202194@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Coercing compound types to use generic ROW comparison operators ("Merlin Moncure" <mmoncure@gmail.com>) |
| Ответы |
Re: Coercing compound types to use generic ROW comparison operators
|
| Список | pgsql-general |
"Merlin Moncure" <mmoncure@gmail.com> writes:
> AIUI, the biggest problem with the current behavior is that there is
> no way to usefully index composite types, it looks like
> create index bar_idx on bar(f);
> create index bar_idx on bar((f).*);
> create index bar_idx on bar((f).a, (f).b);
The last case works, you just don't have enough parentheses.
regression=# create type mytype as (a int, b float);
CREATE TYPE
regression=# create table foo(f mytype);
CREATE TABLE
regression=# create index fooi on foo(((f).a), ((f).b));
CREATE INDEX
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера