Re: Vectorization of some functions and improving pg_list interface

2023-09-06 Thread Yura Sokolov
06.09.2023 13:24, Yura Sokolov wrote: 24.08.2023 17:07, Maxim Orlov wrote: Hi! Recently, I've been playing around with pg_lists and realize how annoying (maybe, I was a bit tired) some stuff related to the lists. For an example, see this code List *l1 = list_make4(1, 2, 3, 4),  

Re: Vectorization of some functions and improving pg_list interface

2023-09-06 Thread Yura Sokolov
24.08.2023 17:07, Maxim Orlov wrote: Hi! Recently, I've been playing around with pg_lists and realize how annoying (maybe, I was a bit tired) some stuff related to the lists. For an example, see this code List *l1 = list_make4(1, 2, 3, 4), *l2 = list_make4(5, 6, 7, 8),

Re: Vectorization of some functions and improving pg_list interface

2023-08-24 Thread Chapman Flack
On 2023-08-24 10:07, Maxim Orlov wrote: 1) Why do I need to specify the number of elements in the list in the function name? This is reminding me of something someone (Tom?) worked on sort of recently. Ah, yes: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=1cff1b9 I wasn't

Vectorization of some functions and improving pg_list interface

2023-08-24 Thread Maxim Orlov
Hi! Recently, I've been playing around with pg_lists and realize how annoying (maybe, I was a bit tired) some stuff related to the lists. For an example, see this code List *l1 = list_make4(1, 2, 3, 4), *l2 = list_make4(5, 6, 7, 8), *l3 = list_make4(9, 0, 1, 2); ListCell