bp2014n2 / i2b2

Bachelor project in order to use i2b2 with big data
http://bp2014n2.github.io/
4 stars 0 forks source link

Handle temp tables #154

Closed SvenLehmann closed 9 years ago

SvenLehmann commented 9 years ago

HPCC does not implement temp tables. However I2B2 uses that type of query when querying PostgreSQL.

There are different possibilities to map that on HPCC:

philipp94831 commented 9 years ago

TEMPORARY or TEMP

If specified, the table is created as a temporary table. Temporary tables are automatically dropped at the end of a session, or optionally at the end of the current transaction (see ON COMMIT below). Existing permanent tables with the same name are not visible to the current session while the temporary table exists, unless they are referenced with schema-qualified names. Any indexes created on a temporary table are automatically temporary as well.

The autovacuum daemon cannot access and therefore cannot vacuum or analyze temporary tables. For this reason, appropriate vacuum and analyze operations > should be performed via session SQL commands. For example, if a temporary table is going to be used in complex queries, it is wise to run ANALYZE on the > temporary table after it is populated.

Optionally, GLOBAL or LOCAL can be written before TEMPORARY or TEMP. This presently makes no difference in PostgreSQL and is deprecated; see Compatibility.

Source