https://gitlab.com/dalibo/postgresql_faker/
is a PostgreSQL extension based on the awesome Python Faker library. This is useful to generate random-but-meaningful datasets for functional testing, anonymization, training data, etc...
This extension is simply a wrapper written in pl/python procedural language.
Install PGDG repository from: https://yum.postgresql.org/repopackages/
| OS | Command |
|---|---|
| RHEL / Rocky Linux / AlmaLinux / Fedora | dnf install faker_17 (or change the version as described above) |
Connect to the database that you want to create the extension (superuser access is not needed) and run:
CREATE EXTENSION faker CASCADE; # CASCADE is needed for the plpython3u extension.
| PostgreSQL version(s) | OS version | Arch | Status |
|---|---|---|---|
| 17,16,15,14,13 | RHEL / Rocky Linux / AlmaLinux 9 | x86_64, aarch64 | Available |
| 17,16,15,14,13 | RHEL / Rocky Linux / AlmaLinux 8 | x86_64, aarch64 | Available |
| 17,16,15,14,13 | Fedora Linux | x86_64 | Available |