2022-01-05 19:06:08 +03:00
|
|
|
## Description:
|
|
|
|
|
|
|
|
`pg` is a wrapper for the PostgreSQL client library. It provides access
|
|
|
|
to a PostgreSQL DB server.
|
|
|
|
|
2020-03-10 17:00:22 +03:00
|
|
|
Before you can use this module, you must first have PostgreSQL installed on
|
2022-01-05 19:06:08 +03:00
|
|
|
your system. To do this, find your OS and perform the actions listed.
|
2020-03-10 17:00:22 +03:00
|
|
|
|
|
|
|
**NOTE**: These instructions are meant only as a convenience. If your OS is not
|
|
|
|
listed or you need extra help, [go here](https://www.postgresql.org/download/).
|
|
|
|
|
|
|
|
### Fedora 31
|
|
|
|
```
|
|
|
|
sudo dnf install postgresql-server postgresql-contrib
|
|
|
|
sudo systemctl enable postgresql # to autostart on startup
|
|
|
|
sudo systemctl start postgresql
|
|
|
|
```
|
|
|
|
|
|
|
|
### Debian 10/11
|
|
|
|
```
|
|
|
|
sudo apt-get install postgresql postgresql-client
|
|
|
|
sudo systemctl enable postgresql # to autostart on startup
|
|
|
|
sudo systemctl start postgresql
|
|
|
|
```
|
|
|
|
|
|
|
|
### MacOSX (Homebrew)
|
|
|
|
```
|
|
|
|
brew install postgresql
|
|
|
|
brew services start postgresql
|
|
|
|
```
|