BSD Ports

databases/plpgsql_check 2.10.10 FreeBSD

PostgreSQL extension to check PL/pgSQL code

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
7e47b446b4
License
UNKNOWN
Categories
databases
Package size
85.0 KiB, 221.2 KiB installed

Description

plpgsql_check is next generation of plpgsql_lint. It allows to check source code by explicit call plpgsql_check_function. PostgreSQL 9.4, 9.5, 9.6, 10, 11 are supported (Develop 12 is supported too). The SQL statements inside PL/pgSQL functions are checked by validator for semantic errors. These errors can be found by plpgsql_check_function.

Features:

  • check fields of referenced database objects and types inside embedded SQL
  • using correct types of function parameters
  • unused variables and function argumens, unmodified OUT argumens
  • partially detection of dead code (due RETURN command)
  • detection of missing RETURN command in function
  • try to identify unwanted hidden casts, that can be performance issue like unused indexes
  • possibility to collect relations and functions used by function
  • possibility to check EXECUTE stmt agaist SQL injection vulnerability

In the other systems

SystemPortVersion
FreeBSDdatabases/plpgsql_check2.10.10
DragonFlydatabases/plpgsql_check2.7.15

Install

Binary package:

pkg install postgresql18-plpgsql_check

From the ports tree:

cd /usr/ports/databases/plpgsql_check/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	postgresql18-plpgsql_check>0:databases/plpgsql_check

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.10.102.10.102.2.32.8.12.10.10
FreeBSD:14:quarterly2.10.102.10.10n/a2.8.12.10.10
FreeBSD:15:latest2.10.102.10.10n/a2.8.12.8.1
FreeBSD:15:quarterly2.10.102.10.10n/an/an/a
FreeBSD:16:latest2.10.102.10.10n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 12
Run dependencies 10

No port depends on this one.

Configuration

No options to configure.

USES
compiler:c11 gmake pgsql
Service scripts
none

Files

pkg-plist 3
  • lib/postgresql/plpgsql_check.so
  • share/postgresql/extension/plpgsql_check--.sql
  • share/postgresql/extension/plpgsql_check.control
distinfo 1
FileSizeSHA256
okbob-plpgsql_check-v2.10.10_GH0.tar.gz37153019d5e460c83ba330469fc14074085fc1849a169b8b980b761a7bb7149d4d44ed

Commit history 6

DateCommitCreditsLog message
7e47b446b4 Po-Chuan Hsieh databases/plpgsql_check: Update to 2.10.10
Changes: https://github.com/okbob/plpgsql_check/releases
953bf3059e Po-Chuan Hsieh databases/plpgsql_check: Update to 2.10.9
Changes: https://github.com/okbob/plpgsql_check/releases
cd7fd5484d Po-Chuan Hsieh databases/plpgsql_check: Update to 2.10.4
Changes: https://github.com/okbob/plpgsql_check/releases
1791e4ee5f Po-Chuan Hsieh databases/plpgsql_check: Update to 2.9.3
Changes: https://github.com/okbob/plpgsql_check/releases
8a6f20df3e Po-Chuan Hsieh databases/plpgsql_check: Update to 2.9.2
Changes: https://github.com/okbob/plpgsql_check/releases

The latest 5 of 6 in the history this site was built from.