On Tuesday 21 August 2007 1:45 pm, Scott Marlowe wrote: > If you have a large db in 7.4.6, you should do two things. > > 1: Update to 7.4.19 or whatever the latest flavor of 7.4 is, > right now. There are a few known data eating bugs in 7.4.6. Sounds like good advice from a strictly technical viewpoint. Unfortunately, in our particular real world, there are also political, financial, and resource constraints and impacts from downtime that at times outweigh the technical merits of upgrading 'right now'. > > update pg_index > > set indisprimary = 't' > > where indexrelid = <my non-null unique index oid> > > I wouldn't bet on that working right. Others know the > internals of the db better than me, but that looks like a foot > gun. I'd still love to hear from any who know the internals well enough to say if this should work or if it's a bad idea. It appears to work in some cursory testing. TIA. Ed ---------------------------(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