We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f04ebe + 9702c88 commit 1db192bCopy full SHA for 1db192b
1 file changed
src/dialect/postgresql.rs
@@ -1,3 +1,4 @@
1
+stacker = "0.1"
2
// Licensed to the Apache Software Foundation (ASF) under one
3
// or more contributor license agreements. See the NOTICE file
4
// distributed with this work for additional information
@@ -318,4 +319,12 @@ impl Dialect for PostgreSqlDialect {
318
319
fn supports_xml_expressions(&self) -> bool {
320
true
321
}
322
+
323
+ /// Postgres supports query optimizer hints via the `pg_hint_plan` extension,
324
+ /// using the same comment-prefixed-with-`+` syntax as MySQL and Oracle.
325
+ ///
326
+ /// See <https://github.com/ossc-db/pg_hint_plan>
327
+ fn supports_comment_optimizer_hint(&self) -> bool {
328
+ true
329
+ }
330
0 commit comments