cluelessPHP Not sure why my brain is expecting a ? or :schema.answer there
We use Postgres's "schemas" to separate each client's data -- functionally similar to having them each in their own database, except they're not. That query was actually extracted from the PHP code that builds the query (and simplified and anonymized here), so
$schema
would actually be replaced with the relevant schema name for the client being processed, e.g FROM client_foo.review r
, and then processed with $pdo->prepare()
.