Skip to content

fix(postgres): support routine introspection on PostgreSQL < 11#377

Open
earmellin wants to merge 2 commits into
TabularisDB:mainfrom
earmellin:fix/postgres-pre11-prokind
Open

fix(postgres): support routine introspection on PostgreSQL < 11#377
earmellin wants to merge 2 commits into
TabularisDB:mainfrom
earmellin:fix/postgres-pre11-prokind

Conversation

@earmellin

Copy link
Copy Markdown

pg_proc.prokind was added in PG 11, replacing proisagg/proiswindow.
Referencing it fails with SQLSTATE 42703 on 9.x and 10. get_routines now
picks a version-appropriate query based on server_version_num.

Tested against PostgreSQL 9.6.

Fixes #375

pg_proc.prokind was added in PG 11, replacing proisagg/proiswindow.
Referencing it fails with SQLSTATE 42703 on 9.x and 10. get_routines now
picks a version-appropriate query based on server_version_num.

Tested against PostgreSQL 9.6.

Fixes TabularisDB#375
@kilo-code-bot

kilo-code-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • src-tauri/src/drivers/postgres/mod.rs

Reviewed by kimi-k2.6 · Input: 108.2K · Output: 5.5K · Cached: 139.7K

@debba debba requested a review from NewtTheWolf June 25, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Schema introspection fails on PostgreSQL < 11 (column "prokind" does not exist)

2 participants