How to set schema with node-postgres
问题 I'm trying to query against a schema called DOCUMENT in my postgres db using node-postgres. I can't seem to get a query to run against the specified schema. This query runs fine directly against postgres using psql SELECT * FROM "DOCUMENT".document_metadata m LEFT OUTER JOIN "DOCUMENT".document_attributes a ON a.document_id = m.id This code produces the error below const query = `SELECT * FROM "DOCUMENT".document_metadata m LEFT OUTER JOIN "DOCUMENT".document_attributes a ON a.document_id = m