GitHub
github.com › postgres › postgres
GitHub - postgres/postgres: Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch · GitHub
Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch - postgres/postgres
Starred by 21.5K users
Forked by 5.8K users
Languages C 82.9% | PLpgSQL 7.7% | Perl 4.9% | Yacc 1.2% | Meson 0.7% | Makefile 0.6%
Videos
Reddit
reddit.com › r/github › postgresql database in repository
r/github on Reddit: PostgreSQL database in repository
March 18, 2024 -
Hi, I’m a beginner at web development so I’m sorry for the dumb question but I recently made a project for a course I’m following that made use of a database I had created in PostgreSQL.
Now, I want to ask, if I want to upload this project on Github, how do I upload the database or the PostgreSQL content I used? What would be the right way of adding a project like that on my Github?
Top answer 1 of 5
29
Usually, you don't store databases in the source control, because each installation/environment of your app is supposed to have it's own data, different from the others. You can and should store SQL scripts to create the structure of your database, such as empty tables, indexes, tables relationships, etc... You can also store scripts that insert the initial data on a newly created database (seed data), such as a default user. If you still want to store the entire database, just find a tool to export it to any text file(s): SQL script, JSON, CSV
2 of 5
29
I'll answer the question instead of telling you not to. Despite what some people are saying here this is a legitimate use case. Many repos will include just the schema of their database instead of the schema and all of the database contents. The schema is used to initialize a local database for tests. Either way for postgres you will want to lookup a tool call pg_dump and pg_restore. These come with most installs of postgres. pg_dump can export all of your database to a SQL file that you can include in your repo like any other file. If you want to go just the schema route - pg_dump has a flag for only exporting the schema as a file. On the opposite.side, you will use pg_restore to load your database back into a postgres instance.
GitHub
github.com › lib › pq
GitHub - lib/pq: Go PostgreSQL driver for database/sql · GitHub
Starred by 9.9K users
Forked by 964 users
Languages Go
GitHub
github.com › jackc › pgx
GitHub - jackc/pgx: PostgreSQL driver and toolkit for Go · GitHub
1 month ago - The toolkit component is a related set of packages that implement PostgreSQL functionality such as parsing the wire protocol and type mapping between PostgreSQL and Go. These underlying packages can be used to implement alternative drivers, proxies, load balancers, logical replication clients, etc. package main import ( "context" "fmt" "os" "github.com/jackc/pgx/v5" ) func main() { // urlExample := "postgres://username:password@localhost:5432/database_name" conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL")) if err != nil { fmt.Fprintf(os.Stderr, "Unable to connect to dat
Starred by 14K users
Forked by 1.1K users
Languages Go 98.3% | HTML 1.1% | Shell 0.6% | C 0.0% | Dockerfile 0.0% | Ruby 0.0%
GitHub
github.com › npgsql › npgsql
GitHub - npgsql/npgsql: Npgsql is the .NET data provider for PostgreSQL. · GitHub
Starred by 3.7K users
Forked by 889 users
Languages C#
PostgreSQL
postgresql.org
PostgreSQL: The world's most advanced open source database
There is a wealth of information to be found describing how to install and use PostgreSQL through the official documentation. The open source community provides many helpful places to become familiar with PostgreSQL, discover how it works, and find career opportunities.
GitHub
github.com › porsager › postgres
GitHub - porsager/postgres: Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare · GitHub
Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare - porsager/postgres
Starred by 8.7K users
Forked by 355 users
Languages JavaScript
GitHub
github.com › pgvector › pgvector
GitHub - pgvector/pgvector: Open-source vector similarity search for Postgres · GitHub
April 28, 2026 - Plus ACID compliance, point-in-time recovery, JOINs, and all of the other great features of Postgres ... cd /tmp git clone --branch v0.8.5 https://github.com/pgvector/pgvector.git cd pgvector make make install # may need sudo
Starred by 22.2K users
Forked by 1.2K users
Languages C 76.8% | Perl 22.3%
GitHub
gist.github.com › isaacarnault › 23be8dbe582af2cdaea7d2b4baa9f5e6
PostgreSQL integration & setting up: an effective way · GitHub
We'll now create our fist table in our github database. postgres=# \c github # to allow user postgres to connect to the database "github" postgres=# CREATE TABLE clients ( ID serial primary key, NAME text, SURNAME text, GENDER text, AGE integer, COUNTRY text, PURCHASE integer, VENUE date ); postgres=# SELECT * FROM clients;
GitHub
gist.github.com › cpursley › c8fb81fe8a7e5df038158bdfe0f06dbb
Postgres is Enough · GitHub
I've recently put together the Rust crate postgresql-embedded that will allow you to embed PostgreSQL into an executable for use in environments where downloading the installation may not be an option. ... @cpursley @kenfar checkout https://github.com/hydradatabase/hydra and https://github.com/paradedb/paradedb for analytics/column stores.
GitHub
github.com › topics › postgresql
GitHub Topic: PostgreSQL
May 17, 2026 - The Postgres development platform.
GitHub
github.com › topics › psql
psql · GitHub Topics
PostgreSQL is a database management system that is object-relational.
PostgreSQL Wiki
wiki.postgresql.org › wiki › Working_with_Git
Working with Git - PostgreSQL wiki
December 23, 2024 - This page collects various wisdom on working with the PostgreSQL Git repository. There are also Other Git Repositories you might work with, most notably the official Github mirror which you might fork on that site.
GitHub
github.com › PostgREST › postgrest
GitHub - PostgREST/postgrest: REST API for any Postgres database · GitHub
REST API for any Postgres database. Contribute to PostgREST/postgrest development by creating an account on GitHub.
Starred by 27.4K users
Forked by 1.2K users
Languages Haskell 67.3% | PLpgSQL 21.6% | Python 6.6% | Nix 4.3% | Shell 0.2%
GitHub
github.com › electric-sql › pglite
GitHub - electric-sql/pglite: Embeddable Postgres with real-time, reactive bindings. · GitHub
Starred by 15.6K users
Forked by 407 users
Languages TypeScript 85.2% | JavaScript 11.4% | HTML 2.8%
GitHub
github.com › cloudnative-pg › cloudnative-pg
GitHub - cloudnative-pg/cloudnative-pg: CloudNativePG is a comprehensive platform designed to seamlessly manage PostgreSQL databases within Kubernetes environments, covering the entire operational lifecycle from initial deployment to ongoing maintenance · GitHub
CloudNativePG (CNPG) is an open-source platform designed to seamlessly manage PostgreSQL databases in Kubernetes environments.
Starred by 9K users
Forked by 725 users
Languages Go 97.7% | Shell 1.9%