diff --git a/src/dialect/postgresql.rs b/src/dialect/postgresql.rs index fd997c1b9..fda676eb2 100644 --- a/src/dialect/postgresql.rs +++ b/src/dialect/postgresql.rs @@ -318,4 +318,12 @@ impl Dialect for PostgreSqlDialect { fn supports_xml_expressions(&self) -> bool { true } + + /// Postgres supports query optimizer hints via the `pg_hint_plan` extension, + /// using the same comment-prefixed-with-`+` syntax as MySQL and Oracle. + /// + /// See + fn supports_comment_optimizer_hint(&self) -> bool { + true + } }