diff --git a/chef/cookbooks/postgresql/providers/database.rb b/chef/cookbooks/postgresql/providers/database.rb index db2d5c4..1fdc054 100644 --- a/chef/cookbooks/postgresql/providers/database.rb +++ b/chef/cookbooks/postgresql/providers/database.rb @@ -19,30 +19,6 @@ include Opscode::Postgresql::Database -action :flush_tables_with_read_lock do - if exists? - begin - Chef::Log.info "postgresql_database: flushing tables with read lock" - db.query "flush tables with read lock" - new_resource.updated_by_last_action(true) - ensure - db.close - end - end -end - -action :unflush_tables do - if exists? - begin - Chef::Log.info "postgresql_database: unlocking tables" - db.query "unlock tables" - new_resource.updated_by_last_action(true) - ensure - db.close - end - end -end - action :create_db do unless exists? begin diff --git a/chef/cookbooks/postgresql/resources/database.rb b/chef/cookbooks/postgresql/resources/database.rb index 523b2e4..89b3a69 100644 --- a/chef/cookbooks/postgresql/resources/database.rb +++ b/chef/cookbooks/postgresql/resources/database.rb @@ -17,7 +17,7 @@ # limitations under the License. # -actions :flush_tables_with_read_lock, :unflush_tables, :create_db, :query +actions :create_db, :query attribute :host, :kind_of => String attribute :username, :kind_of => String