PostgreSQL variable de tabla

¿Hay algo como variables de tabla en T-SQL?
En Sql Server se ve así:

DECLARE @ProductTotals TABLE
(
  ProductID int,
  Revenue money
)

Luego en el procedimiento puedo:

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

Y manipular con esta variable como una tabla ordinaria.

Aquí está la descripción:http://odetocode.com/Articles/365.aspx

Respuestas a la pregunta(2)

Su respuesta a la pregunta