Skip to content

Commit 78d99e0

Browse files
committed
Update concepts-extensions.md
1 parent 9ae87a1 commit 78d99e0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

articles/postgresql/flexible-server/concepts-extensions.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,18 @@ For more details on restore method wiith Timescale enabled database see [Timesca
501501
/*+ SeqScan(a) */
502502
```
503503
`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 ON b.bid = a.bid
513+
ORDER BY a.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`.
505516
## Next steps
506517

507518
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

Comments
 (0)