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.