You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fetch custom type oids - use case: pgvector extension #1115
In order to use vector type of the pgvector extension, we currently need to start a temporary connection to the db to get the vector type oid and then add it in the options types. See #1041
Similar to fetchArrayTypes, it should be possible to get the oid to fill to and from properties of the custom type and thus make it look like this
Exactly my use case, with the addition of bit mask columns.
The abstract is that we have to start a simpler connection pool to be able to start the definitive connection pool.
The solution would be, either:
To be able to parameterize the already established method to fetch database type OID so it can query additional custom types.
To have a lazy connection pool initialization, so instead of having to feed the database types OID before the pool is started, it waits for when a connection is actually needed.
Activity
haggen commentedon Mar 30, 2026
Exactly my use case, with the addition of bit mask columns.
The abstract is that we have to start a simpler connection pool to be able to start the definitive connection pool.
The solution would be, either:
porsager commentedon Oct 29, 2026
v4 takes custom types by name:
to: 'vector'andfrom: ['vector'], looked up when the pool starts, with their array types. See Custom Types.