Skip to content

Commit

Permalink
Merge pull request #45 from tbussmann/master
Browse files Browse the repository at this point in the history
fix update script & docs
  • Loading branch information
pramsey authored Jul 19, 2017
2 parents 05f4c13 + 59b39c6 commit cadf62d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Will set the proxy port option for the lifetime of the database connection. You

If you have PostgreSQL devel packages and CURL devel packages installed (>= 0.7.20), you should have `pg_config` and `curl-config` on your path, so you should be able to just run `make`, then `make install`, then in your database `CREATE EXTENSION http`.

If you already installed version 1.0 and you just want to upgrade, then `ALTER EXTENSION http UPDATE TO '1.1'`.
If you already installed a previous version and you just want to upgrade, then `ALTER EXTENSION http UPDATE`.

### Windows

Expand Down
10 changes: 10 additions & 0 deletions http--1.1--1.2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ CREATE OR REPLACE FUNCTION http_head(uri VARCHAR)
RETURNS http_response
AS $$ SELECT http(('HEAD', $1, NULL, NULL, NULL)::http_request) $$
LANGUAGE 'sql';

CREATE OR REPLACE FUNCTION http_set_curlopt (curlopt VARCHAR, value VARCHAR)
RETURNS boolean
AS 'MODULE_PATHNAME', 'http_set_curlopt'
LANGUAGE 'c';

CREATE OR REPLACE FUNCTION http_reset_curlopt ()
RETURNS boolean
AS 'MODULE_PATHNAME', 'http_reset_curlopt'
LANGUAGE 'c';

0 comments on commit cadf62d

Please sign in to comment.