pg_snakeoil
The PostgreSQL Antivirus
Repository
credativ/pg_snakeoil
https://github.com/credativ/pg_snakeoil
Source
pg_snakeoil-1.4.tar.gz
pg_snakeoil-1.4.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_snakeoil | 1.4 | SEC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7380 | pg_snakeoil | No | Yes | Yes | Yes | No | Yes | - |
| Related | pg_roast pg_permissions pg_auditor pgaudit set_user pgauditlogtofile pgmemento table_log pg_readonly |
|---|
require clamV libs
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 1.4 | 1817161514 | pg_snakeoil | - |
| RPM | PIGSTY | 1.4 | 1817161514 | pg_snakeoil_$v | - |
| DEB | PGDG | 1.4 | 1817161514 | postgresql-$v-snakeoil | - |
Build
You can build the RPM packages for pg_snakeoil using pig build:
Install
You can install pg_snakeoil directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Preload:
Create Extension:
Usage
pg_snakeoil provides ClamAV virus scanning of data stored in PostgreSQL without interfering with normal database operations.
Functions
| Function | Returns | Description |
|---|---|---|
so_is_infected(text) | bool | Check if text data matches a virus signature |
so_is_infected(bytea) | bool | Check if bytea data matches a virus signature |
so_virus_name(text) | text | Return virus name if infected, empty string otherwise |
so_virus_name(bytea) | text | Return virus name if infected, NULL otherwise |
so_update_signatures() | bool | Reload virus signatures, true if changed |
Ad-hoc Scanning
On-Access Protection with Domains
On-Access Protection with Triggers
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)