Difference between revisions of "$HOME/.pg service.conf"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
* <code>[[su - postgres]]</code> | * <code>[[su - postgres]]</code> | ||
* [[Show tables]] | * [[Show tables]] | ||
− | * <code>[[aws rds describe-db-instances]]</code> | + | * <code>[[aws rds describe-db-instances]] | grep -w [[DBInstanceIdentifier]]</code> |
== See also == | == See also == |
Revision as of 13:39, 2 March 2022
touch $HOME/.pg_service.conf # My comment for mydb [MyDB] host=somehost port=5432 user=admin
psql service=MyDB https://stackoverflow.com/a/39097994
[MySecondDB] host=localhost port=5432 dbname=test user=admin password=your_password
Related terms
See also
- SQL, NewSQL, RDMS: GraphQL (2015), SQLite,
select, insert
,select count
, Distributed SQL, TablePlus, Cache hit ratio,pg_stat_user_tables
,EXPLAIN
, Index (PostgreSQL), DDL, SQL/MED, Group by, List users, SQL Injection, SQLAlchemy,CREATE USER, CREATE ROLE, EXPLAIN, ALTER DATABASE, REVOKE, NOLOCK, NOWAIT, EXISTS
, Unique constraint,.sql
- PostgreSQL:
psql
,.psqlrc, .pgpass
,$HOME/.pg service.conf
,-U, -W, -d
, meta-commands:\du, \dg, \ddp, \dp, \list, \dn, \dt, \c, \l, \di, \q
,show users
,show
,su - postgres
,psql -c, \?, \connect, \conninfo
,--version, --help
, PL/pgSQL
Advertising: