Author(s): Austin Clements, Rick Hudson
Last updated: 2016-10-18
Discussion at https://golang.org/issue/17503.
Author(s): Austin Clements, Rick Hudson
Last updated: 2016-10-18
Discussion at https://golang.org/issue/17503.
#!/bin/bash | |
#Autor: Emiliano Carlos de Moraes Firmino | |
#Comentario: igual a usar "sar -A 1", mas sem a interface de rede | |
# que não abre no kSar | |
#Script Variables | |
output_file="sar_data.txt" #arquivo de saída | |
interval=1 #taxa de amostragem em segundos | |
#Inicia rodada de testes |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)