brianc / node-postgres-docs

Documentation for node-postgres
https://node-postgres.com
MIT License
97 stars 94 forks source link

PGDATABASE=process.env.USER or PGDATABASE=process.env.DATABASE? #183

Closed Bam92 closed 2 years ago

Bam92 commented 2 years ago

I am wondering if this is typo or it's normal. For me, it could be PGDATABASE=process.env.DATABASE instead of PGDATABASE=process.env.USER in /1-connecting.mdx file.

charmander commented 2 years ago

USER is the current OS user, and it is indeed used as the default database name when neither PGDATABASE nor PGUSER is specified; DATABASE isn’t a thing.