fio
PostgreSQL File I/O Functions
Repository
csimsek/pgsql-fio
https://github.com/csimsek/pgsql-fio
Source
pg_fio-1.0.tar.gz
pg_fio-1.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_fio | 1.0 | ADMIN | BSD-3-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5230 | fio | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | pg_fio | - |
| RPM | PIGSTY | 1.0 | 1817161514 | pg_fio_$v | - |
| DEB | PIGSTY | 1.0 | 1817161514 | postgresql-$v-pg-fio | - |
Build
You can build the RPM / DEB packages for pg_fio using pig build:
Install
You can install pg_fio 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
Create Extension:
Usage
The fio extension provides file system I/O functions accessible from SQL, enabling reading, writing, and managing files and directories directly from PostgreSQL.
File Operations
Directory Operations
Function Reference
| Function | Description |
|---|---|
fio_readfile(path) | Read file contents as bytea |
fio_writefile(path, content, mkdir, overwrite) | Write bytea content to file |
fio_removefile(path) | Delete a file |
fio_renamefile(old, new) | Rename or move a file |
fio_readdir(path, pattern) | List directory entries matching pattern |
fio_mkdir(path, mode, recursive) | Create directory with permissions |
fio_chmod(path, mode) | Change file/directory permissions |
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)