pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #685: Can't call 'avg' function in multi-domain schema 5+ messages / 3 participants [nested] [flat]
* [pgvector/pgvector] issue #685: Can't call 'avg' function in multi-domain schema @ 2024-09-27 18:44 "Stevod (@Stevod)" <noreply+Stevod@github.com> 0 siblings, 0 replies; 5+ messages in thread From: Stevod (@Stevod) @ 2024-09-27 18:44 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Can't figure out how to make this query work: select avg(embedding) from schema1.tableA Error is: SQL Error [42883]: ERROR: function avg(company_domains.vector) does not exist Hint: No function matches the given name and argument types. You might need to add explicit type casts. Position: 8 pgvector extension is installed in the same (non-public) schema1 where the query is running. Suspect its similar issue to: https://github.com/pgvector/pgvector/issues/417. Advice would be really appreciated. Postgres version is 16.4 and OS is Ubuntu 22.04. Many thanks. ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #685: Can't call 'avg' function in multi-domain schema @ 2024-09-27 18:47 ` "ankane (@ankane)" <noreply+ankane@github.com> 3 siblings, 0 replies; 5+ messages in thread From: ankane (@ankane) @ 2024-09-27 18:47 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @Stevod, if `schema1` is not in your search path, you'll need to use `schema1.avg` instead of `avg`. ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #685: Can't call 'avg' function in multi-domain schema @ 2024-09-27 18:47 ` "ankane (@ankane)" <noreply+ankane@github.com> 3 siblings, 0 replies; 5+ messages in thread From: ankane (@ankane) @ 2024-09-27 18:47 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #685: Can't call 'avg' function in multi-domain schema @ 2024-09-27 18:48 ` "gwenshap (@gwenshap)" <noreply+gwenshap@github.com> 3 siblings, 0 replies; 5+ messages in thread From: gwenshap (@gwenshap) @ 2024-09-27 18:48 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Just to clarify, did you try the solution in the linked issue? Add 'schema1' to the 'search_path'? ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #685: Can't call 'avg' function in multi-domain schema @ 2024-09-27 18:53 ` "Stevod (@Stevod)" <noreply+Stevod@github.com> 3 siblings, 0 replies; 5+ messages in thread From: Stevod (@Stevod) @ 2024-09-27 18:53 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi Gwen, I didn't try search path as I assumed that the default was the local schema, but now resolved successfully. Many thanks for quick response. ^ permalink raw [nested|flat] 5+ messages in thread
end of thread, other threads:[~2024-09-27 18:53 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-09-27 18:44 [pgvector/pgvector] issue #685: Can't call 'avg' function in multi-domain schema "Stevod (@Stevod)" <noreply+Stevod@github.com> 2024-09-27 18:47 ` "ankane (@ankane)" <noreply+ankane@github.com> 2024-09-27 18:47 ` "ankane (@ankane)" <noreply+ankane@github.com> 2024-09-27 18:48 ` "gwenshap (@gwenshap)" <noreply+gwenshap@github.com> 2024-09-27 18:53 ` "Stevod (@Stevod)" <noreply+Stevod@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