Skip to content

omni_vfs

Virtual File System

omnigres : Virtual File System

Overview

ID Extension Package Version Category License Language
2974 omni_vfs omnigres 0.2.2 FEAT Apache-2.0 C
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--s-d-- No Yes No Yes no no

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 0.2.2 19 18 17 16 15 omnigres omni_vfs_types_v1, dblink
RPM PIGSTY 20260212 19 18 17 16 15 omnigres_$v postgresql$v-contrib, postgresql$v-plpython3, python3-pip
DEB PIGSTY 20260212 19 18 17 16 15 postgresql-$v-omnigres postgresql-plpython3-$v, python3-pip
Linux / PG PG19 PG18 PG17 PG16 PG15
el8.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
el8.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
el9.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
el9.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
el10.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
el10.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
d12.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
d12.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
d13.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
d13.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
u22.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
u22.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
u24.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
u24.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
u26.x86_64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212
u26.aarch64 N/A PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212 PIGSTY 20260212

Source

docs.omnigres.org/omni_vfs/reference/

omnigres-20260212.tar.gz wheel-0.45.1-py3-none-any.whl

pig build pkg omnigres;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install omnigres;		# install via package name, for the active PG version
pig install omni_vfs;		# install by extension name, for the current active PG version

pig install omni_vfs -v 18;   # install for PG 18
pig install omni_vfs -v 17;   # install for PG 17
pig install omni_vfs -v 16;   # install for PG 16
pig install omni_vfs -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION omni_vfs CASCADE; -- requires omni_vfs_types_v1, dblink

Usage

omni_vfs: Virtual File System

The omni_vfs extension provides a unified Virtual File System API for PostgreSQL with multiple backend support.

Core Functions

omni_vfs.list(fs, path) – Lists directory contents, returns set of (name, kind).

omni_vfs.list_recursively(fs, path, max) – Recursive listing. Use max to limit results.

omni_vfs.file_info(fs, path) – Returns file metadata: size, created_at, accessed_at, modified_at, kind.

omni_vfs.read(fs, path, file_offset, chunk_size) – Reads file content as bytea.

omni_vfs.write(fs, path, content, create_file, append) – Writes content, returns bytes written.

Backends

Local filesystem:

SELECT omni_vfs.local_fs('/mount/path');
-- No access outside this directory is permitted

Database-backed (table_fs):

SELECT omni_vfs.table_fs('filesystem_name');

Remote filesystem:

SELECT omni_vfs.remote_fs('dbname=otherdb host=127.0.0.1', $$omni_vfs.local_fs('/path')$$);

Example

WITH fs AS (SELECT omni_vfs.local_fs('/data') AS fs),
     entries AS (SELECT fs, (omni_vfs.list(fs, '')).* FROM fs)
SELECT entries.name, entries.kind,
       (omni_vfs.file_info(fs, '/' || entries.name)).*
FROM entries;

Table reader