From b421b8bb20b5b91389fa6bdab2c4ccb6e6facf5e Mon Sep 17 00:00:00 2001 From: psteinroe Date: Wed, 20 Aug 2025 07:51:55 +0200 Subject: [PATCH 1/2] chore: pglpgsql docs --- docs/plpgsql.md | 9 +++++++++ mkdocs.yml | 1 + 2 files changed, 10 insertions(+) create mode 100644 docs/plpgsql.md diff --git a/docs/plpgsql.md b/docs/plpgsql.md new file mode 100644 index 000000000..d17c607f2 --- /dev/null +++ b/docs/plpgsql.md @@ -0,0 +1,9 @@ +# PL/pgSQL + +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. diff --git a/mkdocs.yml b/mkdocs.yml index 572642c60..120be04db 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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 From 30a17bc22986928a19d0ac5fb5b5d47f43e6bb13 Mon Sep 17 00:00:00 2001 From: psteinroe Date: Wed, 20 Aug 2025 07:52:33 +0200 Subject: [PATCH 2/2] chore: pglpgsql docs --- docs/plpgsql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plpgsql.md b/docs/plpgsql.md index d17c607f2..da190b0ca 100644 --- a/docs/plpgsql.md +++ b/docs/plpgsql.md @@ -1,4 +1,4 @@ -# PL/pgSQL +# 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.