Re: int64 support in List API

2025-01-19 Thread Yura Sokolov
20.01.2025 07:36, Tom Lane пишет: Gurjeet Singh writes: I wanted to use the list api from pg_list.h. It has special implementations for int, oid, pointer, and xid types, which help with lower code overhead (no need to create structures whose sole member is of one of these types) and better per

Re: int64 support in List API

2025-01-19 Thread Tom Lane
Gurjeet Singh writes: > I wanted to use the list api from pg_list.h. It has special implementations > for > int, oid, pointer, and xid types, which help with lower code overhead (no need > to create structures whose sole member is of one of these types) and better > performance. So I was wonderi

int64 support in List API

2025-01-19 Thread Gurjeet Singh
I was working on an extension [1] that needed to manage a list of query IDs. Query ID is internally of type uint64 (struct Query's member named queryId), but it is exposed to the SQL layer as signed int64 (e.g pg_stat_activity.query_id is of type bigint). I wanted to use the list api from pg_list.