staab / janet-pqutils

A utility library for Janet and janet-pq.
MIT License
8 stars 0 forks source link

Clean up oid matching #8

Closed staab closed 4 years ago

staab commented 4 years ago

Matching on strings is a performance problem since it's in an inner loop. We should convert this to some constant-time match functionality in C for custom types, and for built-in types bring in pg_types.c. Once we do that, #7 may just go away.

staab commented 4 years ago

Types: https://github.com/postgres/postgres/blob/master/src/include/catalog/pg_type.dat Error Codes: https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt