I'm trying to use ecto with postgres schemas, but the queries are directed to the public schema as table names when used from repo.whatever.
I can pass valid schema qualified queries as sql with query/3 like this:
query(Repo, "SELECT * FROM schema.table", [])
And get the results from the table in the schema.
This:
Repo.all(%Ecto.query{from: {"schema.table", model}})
Results in the expected sql which is:
SELECT a0.foo FROM schema.table as a0
However, the query results in an error that the table schema.table cannot be found. If postgrex sends "schema.table" to postgres, it should be interpreted as a schema qualified table name as in the direct query, right? Is postgrex parsing the table name somehow before sending it?