Difference between revisions of "$HOME/.pg service.conf"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[$HOME]]/.pg_service.conf
+
* Configuration: <code>[[$HOME]]/.pg_service.conf</code>
 +
* Connection: <code>psql service=YourDBpage</code>
  
 
* https://www.postgresql.org/docs/13/libpq-pgservice.html
 
* https://www.postgresql.org/docs/13/libpq-pgservice.html
Line 8: Line 9:
 
  host=somehost  
 
  host=somehost  
 
  port=5432  
 
  port=5432  
  dbname=test
+
  [[dbname]]=test
 
  user=admin
 
  user=admin
  
Line 22: Line 23:
  
 
== Related terms ==
 
== Related terms ==
* <code>[[.ssh/config]]</code>
 
 
* <code>[[su - postgres]]</code>
 
* <code>[[su - postgres]]</code>
* [[Show tables]]
+
* [[Show tables]], [[List users]]
* [[List users]]
 
 
* <code>[[aws rds describe-db-instances]] | grep -w [[DBInstanceIdentifier]]</code>
 
* <code>[[aws rds describe-db-instances]] | grep -w [[DBInstanceIdentifier]]</code>
* [[$HOME/.psqlrc]]
+
* <code>[[$HOME/.psqlrc]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 09:04, 16 August 2022

Advertising: