pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: tanin47 (@tanin47) <noreply+tanin47@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #922: Cache lookup failed for type 16390
Date: Fri, 27 Mar 2026 23:17:07 +0000
Message-ID: <gh-pgvector-pgvector-922-c4145861854@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-922@github.com>
References: <gh-pgvector-pgvector-922@github.com>

I've encountered this issue with pgvector. 

For my case, this seems to be about the prepared statement through `PGObject` in JDBC: https://github.com/pgjdbc/pgjdbc/issues/3049

This happens because the connection stays alive but I drop and re-create the vector extension. 

My guess is that, when we execute the prepared statement, it caches the instance of the vector type. Then, when I drop and re-create the vector extension, the instance of the vector type has changed but the cache still points to the previous instance. 

The cache record is stored on the JDBC level. The solution [here](https://github.com/pgjdbc/pgjdbc/issues/3049#issuecomment-1834407304) works.

view thread (4+ messages)

Message-ID: <gh-pgvector-pgvector-922-c4145861854@github.com>
Permalink:  ../gh-pgvector-pgvector-922-c4145861854@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox