Skip to content

Commit 82db1e4

Browse files
authored
pg: improve pg README.md (#15206)
1 parent 7bf2ad6 commit 82db1e4

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

vlib/pg/README.md

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
## Description:
22

3-
`pg` is a wrapper for the PostgreSQL client library. It provides access
4-
to a PostgreSQL DB server.
3+
`pg` is a wrapper for the PostgreSQL client library. It provides access to a PostgreSQL
4+
database server.
55

6-
Before you can use this module, you must first have PostgreSQL installed on
7-
your system. To do this, find your OS and perform the actions listed.
6+
Before you can use this module, you must first have PostgreSQL installed on your system.
7+
To do this, find your OS and perform the actions listed.
88

9-
**NOTE**: These instructions are meant only as a convenience. If your OS is not
10-
listed or you need extra help, [go here](https://www.postgresql.org/download/).
9+
**NOTE**: These instructions are meant only as a convenience. If your OS is not listed
10+
or you need extra help, [go here](https://www.postgresql.org/download/).
1111

1212
### Fedora 31
1313
```
@@ -16,7 +16,7 @@ sudo systemctl enable postgresql # to autostart on startup
1616
sudo systemctl start postgresql
1717
```
1818

19-
### Debian 10/11
19+
### Ubuntu/Debian
2020
```
2121
sudo apt-get install postgresql postgresql-client
2222
sudo systemctl enable postgresql # to autostart on startup
@@ -28,3 +28,25 @@ sudo systemctl start postgresql
2828
brew install postgresql
2929
brew services start postgresql
3030
```
31+
32+
### MacOSX (MacPorts)
33+
```
34+
gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config
35+
```
36+
37+
## Installing libpq-dev or its equivalent for your OS: ##
38+
39+
**Ubuntu/Debian**: `sudo apt-get install libpq-dev`
40+
41+
**Red Hat Linux (RHEL)**: `yum install postgresql-devel`
42+
43+
**OpenSuse**: `zypper in postgresql-devel`
44+
45+
**ArchLinux**: `pacman -S postgresql-libs`
46+
47+
##Getting Started with [PostgreSQL](https://www.postgresqltutorial.com/postgresql-getting-started)
48+
49+
Read this section to learn how to install and connect to PostgreSQL
50+
*[Windows](https://www.postgresqltutorial.com/install-postgresql)*;
51+
*[Linux](https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql-linux)*;
52+
*[macOS](https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql-macos)*.

0 commit comments

Comments
 (0)