FileExamples
.sql

PostgreSQL Dump

A sample PostgreSQL database dump with schemas, functions, and triggers for testing pg_restore and migration.

.sql

PostgreSQL Dump

database file · 20 KB

A sample PostgreSQL database dump with schemas, functions, and triggers for testing pg_restore and migration.

Format
SQL
Size
20 KB
MIME
application/sql
Bytes
20,480
Download SQL

File Details

File Name
PostgreSQL Dump.sql
Format
SQL
File Size
20 KB
Category
Database
MIME Type
application/sql
License
Free for testing

About SQL Files

SQL (Structured Query Language) files contain database queries, schema definitions, stored procedures, and data manipulation statements. SQL is the standard language for relational databases including PostgreSQL, MySQL, SQLite, SQL Server, and Oracle. SQL files are used for database migrations, backups, seed data, and automated testing.

Common Use Cases for .sql Files

  • Testing file upload and download functionality in web and mobile applications
  • Validating SQL parsers, converters, and rendering engines
  • Automated testing in CI/CD pipelines
  • Prototyping applications that process database files
  • Learning about the SQL file format structure and metadata

How to Open SQL Files

SQL files can be opened with any text editor, database clients (DBeaver, pgAdmin, MySQL Workbench, DataGrip), or executed directly against databases using command-line tools.

Developer Notes

MIME Typeapplication/sqlFile Size20 KBExtension.sqlCategoryDatabase

This file is well-formed with valid headers and metadata, making it safe for automated testing and CI/CD pipelines. You can fetch this file directly in your tests using the URL https://fileexamples.com/api/download?file=sample_pg_dump.sql&type=application/sql. Works with curl, wget, fetch(), axios, and any HTTP client. Set the Content-Type header to application/sql when serving SQL files in your application.

Frequently Asked Questions

What is this sample SQL file used for?

This sample SQL file is designed for testing file upload forms, validating SQL parsers, automated testing, CI/CD pipelines, and prototyping applications that handle database files.

Can I use this file for upload testing?

Yes. This 20 KB SQL file is well-formed with valid headers and metadata, making it suitable for testing file upload endpoints, size limit validation, and MIME type detection (application/sql).

Is this example file safe to download?

Yes. All sample files on File Examples are created in-house, contain no malware or tracking, and are free to download without registration. They are safe for development and testing use.

What software can open this SQL file?

SQL files can be opened with any text editor, database clients (DBeaver, pgAdmin, MySQL Workbench, DataGrip), or executed directly against databases using command-line tools.