GOLF(2gg)
π GOLF(2gg) β postgresql-database
okay bestie, welcome to the Golf docs, 2gg section, and today's main character is the database page πβ¨
β¨ NAME β¨
postgresql-database β Golf documentation (database)
πΈ DESCRIPTION πΈ
so like. your Postgres database config file? it holds a Postgres connection string. that's the whole vibe. π
if you wanna see every single parameter you could possibly put in there, they're all listed over at:
https://www.postgresql.org/docs/14/libpq-connect.html#LIBPQ-CONNSTRING
but ngl, most of the time you're only touching a couple of those options, like literally just this:
user=myuser password=mypwd dbname=mydb
okay so let's break down what that file is actually giving:
userβ the Postgres user π€passwordβ the password for that Postgres user πdbnameβ the Postgres database name ποΈ
and here's the lil glow-up tip: if you're using peer-authenticated login (a.k.a. passwordless login, iykyk), then just omit password entirely. that's the situation where your Postgres user name is the exact same as your Operating System user name, and the local unix domain socket is what's doing the authentication for you. no password needed, it's giving trust fall π«Ά
π¦ SEE ALSO π¦
- Database
begin-transactioncommit-transactioncurrent-rowdatabase-config-filedb-errormariadb-databasepostgresql-databaserollback-transactionrun-querysqlite-database- See all documentation
that's the whole page, bestie β go forth and connect π
this was $VERSION, dated $DATE β mwah, periodt πβ¨
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms