ansible/library
Alan Fairless 7a86083850 Fix postgresql_user to understand PG namespaces
Previously postgresql_user quoted user supplied identifers to create
grant statements that look like this:

    GRANT SELECT on "tablename" to "user";

Which only works if the tablename is not in a namespace.  If you supply
a namespaced tabelname like "report.revenue" then it creates this
incorrect statement:

    GRANT SELECT on "report.revenue" to "user";

Which will not find the "revenue" table in the "report" namespace, but
will rather look for a table named "report.revenue" in the current
(default public) namespace.  The correct form is:

    GRANT SELECT on "report"."revenue" to "user";

This approach could have the unfortunate effect that code that
previously relied on the other behavior to grant privileges on tables
with periods in their names may now break.  PostgreSQL users
typically shouldn't name tables as such, and users can still access the
old behavior and use tablenames with periods in the if they must by
supplying their own quoting.
2014-01-04 15:37:08 -06:00
..
cloud Pass scrub_data by default, see response from DO here: https://www.digitalocean.com/blog 2013-12-30 20:21:15 -05:00
commands shell module: document removes option and sync with command module doc 2013-12-25 12:12:11 +01:00
database Fix postgresql_user to understand PG namespaces 2014-01-04 15:37:08 -06:00
files Basic docsite formatting fixups 2014-01-02 17:36:52 -05:00
internal Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
inventory Make add_host clear the inventory pattern cache, add some more aliases. Fixes #4442. 2013-10-11 16:37:10 -04:00
messaging Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
monitoring module(nagios): don't catch SystemExit 2013-12-04 13:57:55 +01:00
net_infrastructure Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
network Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
notification module is not exposed to send_msg, but main() catches exceptions and uses module.fail_json 2013-12-06 11:42:30 -06:00
packaging Merge pull request #5489 from daghoidahl/devel 2014-01-04 10:52:03 -08:00
source_control Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
system Fixed typo in example documentation 2014-01-04 00:22:14 +00:00
utilities Fix documentation example for the fail module 2013-12-26 16:32:32 -08:00
web_infrastructure Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00