You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/concepts-extensions.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -501,7 +501,18 @@ For more details on restore method wiith Timescale enabled database see [Timesca
501
501
/*+ SeqScan(a) */
502
502
```
503
503
`pg_hint_plan` reads hinting phrases in a comment of special form given with the target SQL statement. The special form is beginning by the character sequence "/\*+" and ends with "\*/". Hint phrases are consists of hint name and following parameters enclosed by parentheses and delimited by spaces. Each hinting phrases can be delimited by new lines for readability.
504
-
504
+
Example:
505
+
```sql
506
+
/*+
507
+
HashJoin(a b)
508
+
SeqScan(a)
509
+
*/
510
+
SELECT*
511
+
FROM pgbench_branches b
512
+
JOIN pgbench_accounts a ONb.bid=a.bid
513
+
ORDER BYa.aid;
514
+
```
515
+
The above example will cause the planner to use the results of a `seq scan` on table a to be combined with table b as a `hash join`.
505
516
## Next steps
506
517
507
518
If you don't see an extension that you'd like to use, let us know. Vote for existing requests or create new feedback requests in our [feedback forum](https://feedback.azure.com/d365community/forum/c5e32b97-ee24-ec11-b6e6-000d3a4f0da0).
0 commit comments