# FIXME: In puppet >3.0 word 'tag' is reserved, so it has to be renamed
define postgresql::remote_database($description = '',
                                   $user = 'postgresql',
                                   $callback_notify = '',
                                   $tag = 'default') {
    @@postgresql::database { $name:
        description     => $description,
        user            => $user,
        callback_notify => $callback_notify,
        tag             => $tag,
        require         => Postgresql::User[$user],
    }

    Postgresql::Database_callback <<| tag == $name |>>
}