As a followup, I created a new dialect:
Code:
import org.hibernate.dialect.PostgreSQLDialect;
public class BugfixPostgreSQLDialect extends PostgreSQLDialect {
public String getCreateTemporaryTablePostfix() {
return "on commit delete rows";
}
}
And then ran my logic again with this dialect, and everything seems to work correctly. I am just hoping someone can give me some history as to why the original dialect has "on commit drop" -- there might be something I am missing here!!
If this does indeed need to get fixed, should I file a JIRA issue?
Thanks in advance,
Mike Johnson