Based on this blogpost.
Install with Homebrew:
$ brew install postgresqlRun server:
Based on this blogpost.
Install with Homebrew:
$ brew install postgresqlRun server:
Magic words:
psql -U postgresSome 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)| /* | |
| MIT License | |
| Copyright (c) 2020 Egor Nepomnyaschih | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |