Skip to content

pgfaker

Generates fake company, person, internet, and phone data in PostgreSQL for tests, performance testing, and demos.

pgfaker · Generates fake company, person, internet, and phone data in PostgreSQL for tests, performance testing, and demos.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100824pgfakerpgfaker0.0.3FUNCMITRust

PostgreSQL · 14, 15, 16, 17, 18

Usage

Sources:

pgfaker version 0.0.3 installs English-US fake-data generators in the fixed pgfaker schema. It can produce company names and slogans, person names and affixes, phone numbers, domains, email addresses, and usernames. The current package targets PostgreSQL 14–18.

Generate disposable sample rows

CREATE EXTENSION pgfaker;

SELECT pgfaker.company(),
       pgfaker.email(),
       pgfaker.phone();

SELECT g AS sample_id,
       pgfaker.person_full_name()
FROM generate_series(1, 5) AS g;

Results are random and the extension exposes no seed or reproducibility interface. Generated values are not guaranteed to be unique, valid, deliverable, culturally representative, privacy-safe, or suitable for constraints in an application schema. Use them for disposable demonstrations and tests, add explicit uniqueness/validation handling, and never use them as passwords, API tokens, identity proof, or a way to anonymize production data. Avoid running bulk generators in tables that contain real records unless the operation is isolated and reversible.

Table reader