Skip to content

Instantly share code, notes, and snippets.

View jin09's full-sized avatar
🔥
smaaashh

Gautam Jain jin09

🔥
smaaashh
View GitHub Profile
@jin09
jin09 / postgres cheatsheet.md
Created March 10, 2018 20:16 — forked from apolloclark/postgres cheatsheet.md
postgres cheatsheet

Postgres Cheatsheet

This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.

Setup

installation, Ubuntu

http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL