Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| #!/usr/bin/env python2.7 | |
| # Note: this script is for manual benchmarking! | |
| # ./benchmark init-spatial | |
| # time ./benchmark write-spatial | |
| # ./benchmark read-spatial | |
| from memsql.common import connection_pool | |
| import random, math, sys |
| #!/bin/bash | |
| #============================================================================== | |
| #TITLE: mysql_backup.sh | |
| #DESCRIPTION: script for automating the daily mysql backups on development computer | |
| #AUTHOR: tleish | |
| #DATE: 2013-12-20 | |
| #VERSION: 0.4 | |
| #USAGE: ./mysql_backup.sh | |
| #CRON: | |
| # example cron for daily db backup @ 9:15 am |
| wget http://stedolan.github.io/jq/download/linux64/jq | |
| chmod +x ./jq | |
| sudo cp jq /usr/bin |
| #!/bin/bash -e | |
| # A SHORT DESCRIPTION OF YOUR SCRIPT GOES HERE | |
| # USAGE: | |
| # DESCRIPTION OF ENV VARS HERE | |
| ############################################################################### | |
| set -e # exit on command errors (so you MUST handle exit codes properly!) | |
| set -o pipefail # capture fail exit codes in piped commands | |
| #set -x # execution tracing debug messages | |
| # Get command info |