Can you use the methods provided by the PostgresqlAdapter to create, release and rollback to savepoints? You can find them here: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb#L222-L232