Re: Proposal: make "opaque" obsolete

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal: make "opaque" obsolete
Дата
Msg-id 19248.1029868284@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal: make "opaque" obsolete  (Rod Taylor <rbt@zort.ca>)
Список pgsql-hackers
Rod Taylor <rbt@zort.ca> writes:
>> anyarraytype    -- for array_eq, array_dims

> Will this allow generic array iterator functions in the future?

Hm.  Not directly; there's still the issue of how to tell what element
type the array is.  array_dims doesn't care, and I think that we have
some kluge for array_eq, but in general it'd be a problem for generic
functions.

I had been thinking that as long as we are going to break datafile
compatibility (due to Manfred's tuple-header changes) this would be
a good time to try to clean up the representation of arrays.  It's
bothered me for a long while that the array code is not doing alignment
correctly --- it seems not to matter for any standard type, but arrays
of, say, interval are not aligned the way pg_type says they should be.

The reason I bring this up is that if we are changing the internal
representation of arrays, we could add type OID and perhaps typmod to
the array header, thus making an array value interpretable without any
outside info.  Then you could actually do something interesting with
a function taking anyarraytype.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CREATE CAST WITHOUT FUNCTION should require superuserness?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in