-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
65 lines (43 loc) · 1.48 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
pgcurl
======
pgcurl is a set of PostgreSQL user-defined functions that provide
an interface to libcurl, and through it to the world of REST
services.
REQUIREMENTS:
=============
1) libcurl
2) PostgreSQL 8.4 or newer recommended (http://www.postgresql.org/)
Latest versions are always preferred
INSTALLATION:
=============
1a) Building from sources:
--------------------------
1) Install PostgreSQL with PGXS (if not already installed)
2) Install libcurl
3) make
4) sudo make install
If necessary, update LD_LIBRARY_CACHE for the PostgreSQL server owner and restart PostgreSQL.
Also make sure that the pg_config binary is in your PATH (or edit the Makefile).
1 b) Building on Debian:
------------------------
1) sudo make build-dep
2) make deb84
3) sudo dpkg -i ../postgresql-pgcurl-*.deb
SETUP (run this for all databases you want to use pcurl in):
=================================================================
Run the following command to setup pgcurl
% psql -f /usr/local/postgresql/share/contrib/pgcurl.sql <mydbname>
USAGE:
======
**pgcurl_get('URI'::TEXT)**
**pgcurl_put('URI'::TEXT, 'PAYLOAD'::TEXT)**
**pgcurl_delete('URI'::TEXT)**
LICENSE:
========
pgcurl is released under an MIT-style license (BSD without advertising
clause). For the exact license terms, see the file "COPYING".
CONTACT:
========
Bug reports and patches are very welcome, either submitted via the
github web interface (https://github.com/Ormod/pgcurl/issues),
or sent via email to <[email protected]>.