pgtt is a PostgreSQL extension to create, manage and use DB2 or Oracle-style Global Temporary Tables.