SELECT feld, koerner_einzeln, 
       SUM(koerner_einzeln) OVER (ORDER BY feld) AS koerner_summe
FROM   (
         WITH RECURSIVE reis AS
         (SELECT 1 AS feld, 1::DECIMAL AS koerner_einzeln
          UNION ALL
          SELECT feld+1, koerner_einzeln*2
          FROM   reis
          WHERE  feld < 64
         )
         SELECT * FROM reis
       ) AS rekursion
;
