Thank you for your interest in contributing! This project is a beginner-friendly PostgreSQL tutorial. Here's how you can help.
- Fork the repository on GitHub.
- Create a branch for your changes:
git checkout -b my-improvement - Make your changes following the guidelines below.
- Submit a pull request with a clear description of what you changed.
- Keep the tone simple and beginner-friendly.
- Each lesson should include:
- Context: why/when to use the concept
- Key points (2-4 bullets)
- SQL example with brief walkthrough
- Tip and Try-it section where applicable
- Ensure SQL examples run correctly with current stable PostgreSQL.
- Source files live in
source/. Each lesson links to its corresponding.sqlfile. - Use a
-examplesuffix for filenames when the topic is a reserved word or common identifier (e.g.user-table-example.sql). - Keep examples minimal and focused on the lesson topic.
- Use standard Markdown. Code blocks with
sqlorbashlanguage tags. - Links to other lessons use relative paths:
(next-topic.md)withinlessons/,(../source/script.sql)for source files. - The last lesson in each section links to the next; the final lesson links back:
[Table of Contents](../README.md).
- All run commands assume execution from the repository root:
psql -f source/script.sql(orpsql -f source/script.sql postgresif you need to specify the database). - Examples assume a running PostgreSQL server; default database is
postgresunless stated. You can setPGDATABASEor pass the database name topsqlif you use a different one. - Verify that examples produce the documented output before submitting.
egpostgres/
├── README.md # Table of contents and intro
├── CONTRIBUTING.md # This file
├── LICENSE # CC BY 4.0
├── lessons/ # Lesson markdown files
└── source/ # SQL example scripts
By contributing, you agree that your contributions will be licensed under the same Creative Commons Attribution 4.0 International (CC BY 4.0) license that covers this project.
Open an issue on GitHub for questions or suggestions.