Zmienna tabel PostgreSQL

Czy w T-SQL jest coś takiego jak zmienne tabel?
W Sql Server wygląda to tak:

DECLARE @ProductTotals TABLE
(
  ProductID int,
  Revenue money
)

Następnie w procedurze mogę:

INSERT INTO @ProductTotals (ProductID, Revenue)
  SELECT ProductID, SUM(UnitPrice * Quantity)
  FROM [Order Details]
  GROUP BY ProductID

I manipuluj tą zmienną jak zwykłą tabelą.

Oto opis:http://odetocode.com/Articles/365.aspx