You say:
The
db_one
connection points to the defaultpublic
schema, and thedb_two
points to thecustom_schema
.
But that's not true. In your code you have the same database name:
test_db
and the same schema_search_path (that one of them has an additional search path is irrelevant):
public