There's a PgFoundry project that contains several example PostgreSQL databases. Most of these haven't been updated for a while, but will still work with recent PostgreSQL versions.

If you need a bigger database, the MusicBrainz music metadata database has full database dumps available for download.

Answer from intgr on Stack Overflow
🌐
EnterpriseDB
enterprisedb.com › docs › epas › latest › fundamentals › sql_fundamentals › 03_examples_used
EDB Docs - EDB Postgres Advanced Server v18 - Sample database description
A new job record is added with the start date and the new job title, department, salary, and the reason for the status change. All employee history is maintained in the jobhist table. ... SET datestyle TO 'iso, dmy'; -- -- Script that creates ...
Discussions

Sample PostgreSQL Database
You can try the one from the PostgreSQL tutorial site. http://www.postgresqltutorial.com/postgresql-sample-database/ There is also and AdventureWorks for Postgres: https://github.com/lorint/AdventureWorks-for-Postgres More on reddit.com
🌐 r/PostgreSQL
10
8
January 10, 2020
Is there a real-life Sample Database for PostgreSQL for beginner practice?
https://wiki.postgresql.org/wiki/Sample_Databases That page lists various sources. More on reddit.com
🌐 r/PostgreSQL
7
7
February 12, 2024
Sample Postgres databases?
https://osm2pgsql.org/ More on reddit.com
🌐 r/PostgreSQL
6
1
August 7, 2024
Example database
  • https://www.postgresqltutorial.com/postgresql-sample-database/

  • https://github.com/lorint/AdventureWorks-for-Postgres

  • https://github.com/yugabyte/yugabyte-db/tree/master/sample

More on reddit.com
🌐 r/PostgreSQL
4
1
July 26, 2021
🌐
GitHub
github.com › morenoh149 › postgresDBSamples
GitHub - morenoh149/postgresDBSamples: Sample databases for postgres · GitHub
copy of https://www.postgresql.org/ftp/projects/pgFoundry/dbsamples/ A collection of sample databases for PostgreSQL.
Starred by 553 users
Forked by 222 users
Languages   PLpgSQL
🌐
Medium
medium.com › @attila_toth › set-up-sample-database-for-postgresql-4c03b7502a7a
Set up sample database for PostgreSQL | by Attila Tóth | Medium
May 1, 2023 - Once the loading process is complete, you can connect to the AdventureWorks database using your favorite PostgreSQL client and start practicing SQL. AdventureWorks is an excellent sample database for practicing SQL.
🌐
GitHub
github.com › pthom › northwind_psql
GitHub - pthom/northwind_psql: Northwind sample database for postgres · GitHub
A simple sql script that will populate a database with the famous northwind example, adapted for postgres.
Starred by 1K users
Forked by 989 users
🌐
PostgreSQL Wiki
wiki.postgresql.org › wiki › Sample_Databases
Sample Databases - PostgreSQL wiki
AdventureWorks 2014 for Postgres - Scripts to set up the OLTP part of the go-to database used in training classes and for sample apps on the Microsoft stack. The result is 68 tables containing HR, sales, product, and purchasing data organized across 5 schemas.
🌐
Neon
neon.com › postgresql › getting-started › sample-database
PostgreSQL Sample Database
This tutorial introduces you to a PostgreSQL sample database that you can use for learning and practicing with PostgreSQL.
Find elsewhere
🌐
GitHub
github.com › devrimgunduz › pagila
GitHub - devrimgunduz/pagila: PostgreSQL Sample Database · GitHub
... Support for built-in fulltext. Add enum example ... psql (13.1 (Debian 13.1-1.pgdg100+1)) Type "help" for help. postgres=# CREATE DATABASE pagila; postgres-# CREATE DATABASE postgres=\q
Starred by 1.1K users
Forked by 371 users
Languages   PLpgSQL 99.7% | Shell 0.3%
🌐
GitHub
github.com › JannikArndt › PostgreSQLSampleDatabase
GitHub - JannikArndt/PostgreSQLSampleDatabase: Sample Database for a Webshop with customers, products and orders, including data! · GitHub
This is a sample webshop, including · 1000 customers · 2000 orders · 1000 products with 17730 different articles · You can either create the database yourself with the scripts in src or restore the dump in data via · $ ./restore.sh myDatabaseName ·
Starred by 55 users
Forked by 32 users
Languages   SQLPL 72.8% | JavaScript 17.2% | HTML 7.5% | CSS 2.4% | Shell 0.1%
🌐
GitHub
github.com › mla › pg_sample
GitHub - mla/pg_sample: PostgreSQL utility for creating a small, sample database from a larger one · GitHub
pg_sample is a utility for exporting a small, sample dataset from a larger PostgreSQL database. The output and command-line options closely resemble the pg_dump backup utility (although only the plain-text format is supported).
Starred by 351 users
Forked by 53 users
Languages   Perl 94.2% | PLpgSQL 4.4% | Dockerfile 1.4%
🌐
Postgres Professional
postgrespro.com › community › demodb
Demonstration Database : Postgres Professional
For example, to create the small database, run the script as the user postgres by means of psql: gunzip -c demo-20250901-3m.sql.gz | psql -U postgres · Note that if the demo database already exists, it will be deleted and recreated!
🌐
W3Schools
w3schools.com › postgresql › postgresql_create_demodatabase.php
PostgreSQL - Create Demo Databse
Now we want to create more tables with more content to be able to demonstrate more database features. We will create these 6 tables in our PostgreSQL database:
🌐
Dataedo
dataedo.com › kb › databases › postgresql › sample-databases
Sample PostgreSQL databases - PostgreSQL - Design & Metadata
October 2, 2018 - Article for: PostgreSQL ▾ SQL Server Oracle database Snowflake Amazon Redshift SAP/Sybase ASE IBM DB2 MySQL MariaDB · The Dell DVD Store is an open source simulation of an online ecommerce site. ... Based on MySQL's replacement for World, Sakila, which is itself inspired by the Dell DVD Store. ... PostgreSQL version of SQL Server AdventureWorks sample database.
🌐
Wikiversity
en.wikiversity.org › wiki › Database_Examples › Northwind › PostgreSQL
Database Examples/Northwind/PostgreSQL - Wikiversity
-- Either : -- Open pgAdmin 4. -- Connect to your PostgreSQL server. -- Create a new database named Northwind. -- Select the Northwind database. -- Use the Query Tool. -- Copy and paste the SQL below into the query window. -- Execute the script to create the Northwind database.
🌐
EnterpriseDB
enterprisedb.com › docs › epas › latest › fundamentals › sql_fundamentals › 02_sql_tutorial › 01_sample_database › 01_sample_database_installation
EDB Docs - EDB Postgres Advanced Server v18 - Accessing the sample database
When EDB Postgres Advanced Server is installed, a sample database named edb is automatically created. This sample database contains the tables and programs used in this tutorial after you execute the script edb-sample.sql, located in the /usr/edb/as18/share directory.
🌐
GitHub
github.com › neondatabase › postgres-sample-dbs
GitHub - neondatabase/postgres-sample-dbs: A collection of sample Postgres databases for learning, testing, and development. · GitHub
A collection of sample Postgres databases for learning, testing, and development. - neondatabase/postgres-sample-dbs
Starred by 232 users
Forked by 41 users
Languages   PLpgSQL 99.8% | Shell 0.2%
🌐
Howtodojo
howtodojo.com › learn technology through step by step tutorials › sample database › postgre sql sample database
PostgreSQL Sample Database | Howtodojo
December 1, 2023 - https://www.postgresql.org/ftp/projects/pgFoundry/dbsamples/ ... https://archive.org/details/stackexchange https://github.com/Networks-Learning/stackexchange-dump-to-postgres ... Before using any of these databases, make sure to check the ...
🌐
YugabyteDB
docs.yugabyte.com › stable › sample-data › pgexercises
https://docs.yugabyte.com/stable/develop/sample-data/pgexercises/
YugabyteDB is an open source PostgreSQL-compatible distributed database for cloud native apps. Resilient, scalable, and flexible, it can be deployed across public and private clouds as well as in Kubernetes environments. ... Download and install YugabyteDB on your laptop, create a cluster, and build a sample ...