PostgreSQL 9.1中是否存在一個配置指令,允許通過寫入其MAC地址而不是將其IP地址寫入'pg_hba.conf'來允許來自客戶端的連接? 例如;而不是這樣做; host all all 192.168.2.1/32 trust
我想寫這個; host all all 00:08:C7:1B:8C:02 trust
比方說,你有三種型號: class Collection < ActiveRecord::Base
has_many :comments, through => :users
end
class User < ActiveRecord::Base
belongs_to :collection
has_many :comments
end
class Com
我試圖在Play2.0數據庫進化腳本中創建PostgreSQL觸發器。 SQL代碼是比較容易和pgAdminIII運行良好: CREATE OR REPLACE FUNCTION update_modified() RETURNS TRIGGER AS $$
BEGIN
NEW.modified = now();
RETURN NEW;
END;
$$ L