You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/features/native.mdx
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,20 @@ metaTitle: bar
6
6
7
7
Native bindings between node.js & [libpq](https://www.postgresql.org/docs/9.5/static/libpq.html) are provided by the [node-pg-native](https://github.com/brianc/node-pg-native) package. node-postgres can consume this package & use the native bindings to access the PostgreSQL server while giving you the same interface that is used with the JavaScript version of the library.
8
8
9
-
To use the native bindings first you'll need to install them:
9
+
You need PostgreSQL client libraries & tools installed. An easy way to check is to type `pg_config`. If `pg_config` is in your path, you should be good to go. If it's not in your path you'll need to consult operating specific instructions on how to go about getting it there.
10
+
11
+
Some ways I've done it in the past:
12
+
13
+
- On macOS: `brew install libpq`
14
+
- On Ubuntu/Debian and Debian-based Node images: `apt-get install libpq-dev python3 g++ make`
15
+
- On RHEL/CentOS: `yum install postgresql-devel`
16
+
- On Windows:
17
+
1. Install Visual Studio C++ (successfully built with Express 2010). Express is free.
0 commit comments