Hi,
Is it bug ?Try to create these tables with following order
CREATE TABLE m_tvh ( web_teid varchar(40) UNIQUE);
CREATE TABLE m_tvh_web ( teid varchar(40) UNIQUE);
Both wany make index with name 'm_tvh_web_teid_key'.
Postgre version = 7.3.1.