-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Get rid of TODO section in README - Add NOTES section in README for v2.0.0 - Bump default version - Update upgrade path
- Loading branch information
Showing
5 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* set-user-1.6--2.0.sql */ | ||
|
||
-- complain if script is sourced in psql, rather than via ALTER EXTENSION | ||
\echo Use "ALTER EXTENSION set_user UPDATE to '2.0'" to load this file. \quit | ||
|
||
-- just bumping our version to 2.0. no new sql function features here, so nothing to do. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* set-user--2.0.sql */ | ||
|
||
SET LOCAL search_path to @extschema@; | ||
|
||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
\echo Use "CREATE EXTENSION set_user" to load this file. \quit | ||
|
||
CREATE FUNCTION @[email protected]_user(text) | ||
RETURNS text | ||
AS 'MODULE_PATHNAME', 'set_user' | ||
LANGUAGE C; | ||
|
||
CREATE FUNCTION @[email protected]_user(text, text) | ||
RETURNS text | ||
AS 'MODULE_PATHNAME', 'set_user' | ||
LANGUAGE C STRICT; | ||
|
||
REVOKE EXECUTE ON FUNCTION @[email protected]_user(text) FROM PUBLIC; | ||
REVOKE EXECUTE ON FUNCTION @[email protected]_user(text, text) FROM PUBLIC; | ||
|
||
CREATE FUNCTION @[email protected]_user() | ||
RETURNS text | ||
AS 'MODULE_PATHNAME', 'set_user' | ||
LANGUAGE C; | ||
|
||
CREATE FUNCTION @[email protected]_user(text) | ||
RETURNS text | ||
AS 'MODULE_PATHNAME', 'set_user' | ||
LANGUAGE C STRICT; | ||
|
||
GRANT EXECUTE ON FUNCTION @[email protected]_user() TO PUBLIC; | ||
GRANT EXECUTE ON FUNCTION @[email protected]_user(text) TO PUBLIC; | ||
|
||
/* New functions in 1.1 (now 1.4) begin here */ | ||
|
||
CREATE FUNCTION @[email protected]_user_u(text) | ||
RETURNS text | ||
AS 'MODULE_PATHNAME', 'set_user' | ||
LANGUAGE C STRICT; | ||
|
||
REVOKE EXECUTE ON FUNCTION @[email protected]_user_u(text) FROM PUBLIC; | ||
|
||
/* No new sql functions for 1.5 */ | ||
/* No new sql functions for 1.6 */ | ||
/* No new sql functions for 2.0 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# set_user extension | ||
comment = 'similar to SET ROLE but with added logging' | ||
default_version = '1.6' | ||
default_version = '2.0' | ||
module_pathname = '$libdir/set_user' | ||
relocatable = false |