pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #922: Cache lookup failed for type 16390 4+ messages / 3 participants [nested] [flat]
* [pgvector/pgvector] issue #922: Cache lookup failed for type 16390 @ 2025-11-09 19:56 "skillmaker-dev (@skillmaker-dev)" <noreply+skillmaker-dev@github.com> 0 siblings, 0 replies; 4+ messages in thread From: skillmaker-dev (@skillmaker-dev) @ 2025-11-09 19:56 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hey, I had a PostgreSQL database locally in Windows with pgvector enabled and data with vectors, totalling 1 GB. I created another database on a remote server and enabled the vector extension. Then I created a database dump `pg_dump -Fc --no-acl --no-owner -h localhost -U postgres dbname | gzip > dbname.dump.gz` then I restored it in the server, however, querying doesn't work now and I get this error: ``` 2025-11-09 19:45:29.962 UTC [36] ERROR: cache lookup failed for type 16390 2025-11-09 19:45:29.962 UTC [36] STATEMENT: SELECT d."DocumentId", d."ChunkIndex", d."ChunkCount", d."Content", d."Metadata", 1.0 - (d."Embedding" <=> $1) AS "Similarity" FROM documents AS d WHERE 1.0 - (d."Embedding" <=> $1) >= $2 ORDER BY 1.0 - (d."Embedding" <=> $1) DESC LIMIT $3 ``` What is the solution for this issue? ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #922: Cache lookup failed for type 16390 @ 2025-11-09 20:14 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2025-11-09 20:14 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @skillmaker-dev, I'm not able to reproduce the error, but it doesn't seem like an issue with pgvector. Please use other resources for help. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #922: Cache lookup failed for type 16390 @ 2025-11-09 20:14 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2025-11-09 20:14 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #922: Cache lookup failed for type 16390 @ 2026-03-27 23:17 ` "tanin47 (@tanin47)" <noreply+tanin47@github.com> 2 siblings, 0 replies; 4+ messages in thread From: tanin47 (@tanin47) @ 2026-03-27 23:17 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@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. ^ permalink raw [nested|flat] 4+ messages in thread
end of thread, other threads:[~2026-03-27 23:17 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-11-09 19:56 [pgvector/pgvector] issue #922: Cache lookup failed for type 16390 "skillmaker-dev (@skillmaker-dev)" <noreply+skillmaker-dev@github.com> 2025-11-09 20:14 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-11-09 20:14 ` "ankane (@ankane)" <noreply+ankane@github.com> 2026-03-27 23:17 ` "tanin47 (@tanin47)" <noreply+tanin47@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