| От | Tom Lane |
|---|---|
| Тема | Re: a problem with index and user define type |
| Дата | |
| Msg-id | 25728.1056550257@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: a problem with index and user define type (Weiping He <laser@zhengmai.com.cn>) |
| Ответы |
Re: a problem with index and user define type
|
| Список | pgsql-hackers |
Weiping He <laser@zhengmai.com.cn> writes:
> because the data type (UUID) is a struct,
> and the uuid_eq() function accept two pointer to the value of struct uuid,
> if make it IMMUTABLE, postgresql would think it should not try to run
> the function, but return the cached value instead when it get two same
> pointers input,
No, it will not. Your claim above is entirely wrong; the fact that the
datatype is pass-by-reference doesn't affect anything (unless you've
failed to declare the datatype that way, but if so I'd not think it
would work at all).
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера