X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aba8e248099280195f06609e08a4f6840c956933..dde08aa5cf12c06dfe7e1298a5367b1a20686aea:/cookbooks/postgresql/libraries/postgresql.rb diff --git a/cookbooks/postgresql/libraries/postgresql.rb b/cookbooks/postgresql/libraries/postgresql.rb index bd10a0233..2f672960c 100644 --- a/cookbooks/postgresql/libraries/postgresql.rb +++ b/cookbooks/postgresql/libraries/postgresql.rb @@ -75,10 +75,12 @@ class Chef end def databases - @databases ||= query("SELECT d.datname, u.usename, d.encoding FROM pg_database AS d INNER JOIN pg_user AS u ON d.datdba = u.usesysid").inject({}) do |databases,database| + @databases ||= query("SELECT d.datname, u.usename, d.encoding, d.datcollate, d.datctype FROM pg_database AS d INNER JOIN pg_user AS u ON d.datdba = u.usesysid").inject({}) do |databases,database| databases[database[:datname]] = { :owner => database[:usename], - :encoding => database[:encoding] + :encoding => database[:encoding], + :collate => database[:datcollate], + :ctype => database[:datctype] } databases end