"Scott Marlowe" <smarlowe@xxxxxxxxxxxxxxxxx> wrote > > Under no circumstances should you do this with a database that has any > data in it that you value. pg_dump / pg_restore / psql are the > preferred way of doing this. > Oh yeah, sorry for the miss leading information. My method is dangerous and can not cover all the cases (say you have an external stored column, etc). Sorry about it, Qingqing ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match