Replies: 1 comment
-
I solved this for now by querying the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add a custom type for the
vector
type added by thepgvector
extension. The following code works on my machine:However, it doesn't work anywhere else as OIDs seem to be dynamic / not stable between Postgres instances.
I tried querying for the OID of the DB instance via
which obviously works, but I couldn't find a way to add the custom type after the sql client was instantiated. Opening, querying, closing using one sql client and then instantiating a second client with the correct OID seems excessive.
Whats the recommended way to do this?
Beta Was this translation helpful? Give feedback.
All reactions