This repository was archived by the owner on Apr 2, 2024. It is now read-only.
Clean up extension internals to make better use of pgx types and facilities #48
Labels
Infrastructure
Improvements to the infrastructure we use to build the product (CI, libraries, etc.)
There are a few areas which could use some refactoring to make future changes easier and safer:
Allocator
API (via nightly) on top of Postgres MemoryContexts for the types of contexts the extension is used inInner<T>
type and useBox<T, A>
andVec<T, A>
on top of custom allocatorsbytea
,TimestampTz
)We may want/need to upstream some or all of the first two items in the list, e.g. to allow using
alloc
types which are parameterized on theAllocator
type to be used as arguments in function signatures. We should be able to proceed without that from what I've observed, but it would allow for a cleaner integration, and open the door to optimizations such as avoiding unnecessary copies when usingBox
orVec
as result types.There are PRs coming for all of the above today/tomorrow which we can use to discuss the changes outlined above.
The text was updated successfully, but these errors were encountered: