Skip to content

Commit 63efa14

Browse files
authored
chore: pglpgsql docs (#478)
1 parent a1e34a9 commit 63efa14

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/plpgsql.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PL/pgSQL Support
2+
3+
Postgres Language Tools partially supports PL/pgSQL. We use `libpg_query` to parse the function body and show any syntax error. For a more sophisticated integration, make sure to enable the `plpgsql_check` extension in your development database.
4+
5+
```sql
6+
CREATE EXTENSION IF NOT EXISTS plpgsql_check;
7+
```
8+
9+
If the extension is detected, we leverage it to run more advanced checks against your PL/pgSQL functions.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ nav:
1616
- Introduction: index.md
1717
- Guides:
1818
- Linting Migrations: checking_migrations.md
19+
- PL/pgSQL Support: plpgsql.md
1920
- Troubleshooting: troubleshooting.md
2021
- Reference:
2122
- Rules: rules.md

0 commit comments

Comments
 (0)