src/Db/Pgsql/QueryBuilder.php
public function delete($table, $condition, &$params)
    {
        $pk = $this->getTablePrimaryKey($table);
        $sql = 'DELETE FROM ' . $this->db->quoteTableName($table);
        $where = $this->buildWhere($condition, $params);

        $sql = $where === '' ? $sql : $sql . ' ' . $where;
        $sql .= isset($pk) ? " RETURNING " . $this->db->quoteColumnName($pk) : " RETURNING *";
        return $sql;
    }
public function delete($table, $condition, &$params)
    {
        $pk = $this->getTablePrimaryKey($table);
        $sql = 'DELETE FROM ' . $this->db->quoteTableName($table);
        $where = $this->buildWhere($condition, $params);

        $sql = $where === '' ? $sql : $sql . ' ' . $where;
        $sql .= isset($pk) ? " RETURNING " . $this->db->quoteColumnName($pk) : " RETURNING *";
        return $sql;
    }
{@inheritdoc}