Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/plpgsql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PL/pgSQL Support

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.

```sql
CREATE EXTENSION IF NOT EXISTS plpgsql_check;
```

If the extension is detected, we leverage it to run more advanced checks against your PL/pgSQL functions.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ nav:
- Introduction: index.md
- Guides:
- Linting Migrations: checking_migrations.md
- PL/pgSQL Support: plpgsql.md
- Troubleshooting: troubleshooting.md
- Reference:
- Rules: rules.md
Expand Down