Re: Does people favor to have matrix data type?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Does people favor to have matrix data type?
Дата
Msg-id 0c816df4-1da3-58db-abbf-39ab68a490a2@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Does people favor to have matrix data type?  (Kouhei Kaigai <kaigai@ak.jp.nec.com>)
Ответы Re: Does people favor to have matrix data type?  (Kouhei Kaigai <kaigai@ak.jp.nec.com>)
Список pgsql-hackers
On 5/25/16 7:46 AM, Kouhei Kaigai wrote:
> My only concern is that domain type is not allowed to define type cast.
> If we could add type cast on domain, we can define type transformation from
> other array type to matrix.

I've actually wished for that in the past, as well as casting to 
compound types. Having those would make it easier to mock up a real data 
type for experimentation.

I strongly encourage you to talk to the MADlib community about 
first-class matrix support. They currently emulate matrices via arrays. 
I don't know offhand if they support NULLs in their regular matrices. 
They also support a sparsematrix "type" that is actually implemented as 
a table that contains coordinates and a value for each value in the 
matrix. Having that as a type might also be interesting (if you're 
sparse enough, that will be cheaper than the current NULL bitmap 
implementation).

Related to this, Tom has mentioned in the past that perhaps we should 
support abstract use of the [] construct. Currently point finds a way to 
make use of [], but I think that's actually coded into the grammar.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461



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

Предыдущее
От: Marco Nenciarini
Дата:
Сообщение: Re: [BUGS] BUG #13473: VACUUM FREEZE mistakenly cancel standby sessions
Следующее
От: Dmitry Igrishin
Дата:
Сообщение: Re: Deleting prepared statements from libpq.