Re: [PERFORM] Improve the Postgres Query performance

2011-06-23 Thread Tripura
Hi, Thankyou for the link, it heped me Thx, Tripura -- View this message in context: http://postgresql.1045698.n5.nabble.com/Improve-the-Postgres-Query-performance-tp4511903p4515457.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com. -- Sent via pgsql-performance m

Re: [PERFORM] Long Running Update

2011-06-23 Thread Kevin Grittner
Harry Mantheakis wrote: > UPDATE >table_A > SET > ( >field_1 > , field_2 > ) = ( > table_B.field_1 > , table_B.field_2 > ) > FROM > table_B > WHERE > table_B.id = table_A.id > ; I would have just done: SET field_1 = table_B.field_1, field_2 = table_B.field_2 instead of using row v

Re: [PERFORM] Long Running Update

2011-06-23 Thread Claudio Freire
On Thu, Jun 23, 2011 at 5:05 PM, Harry Mantheakis wrote: > TOP, FREE and VMSTAT utilities indicate that only about half of the 6GB of > memory is being used, so I have no reason to believe that the server is > struggling. You have a hinky idea of server load. Mind you, there are lots of ways in

[PERFORM] Long Running Update

2011-06-23 Thread Harry Mantheakis
Hello I am attempting to run an update statement that copies two fields from one table to another: UPDATE table_A SET ( field_1 , field_2 ) = ( table_B.field_1 , table_B.field_2 ) FROM table_B WHERE table_B.id = table_A.id ; Table "table_B" contains almost 75 million records, with IDs t

Re: [PERFORM] bitmask index

2011-06-23 Thread Robert Klemme
On 06/22/2011 11:42 PM, Greg Smith wrote: On 06/22/2011 05:27 PM, Marcus Engene wrote: I have some tables with bitmask integers. Set bits are the interesting ones. Usually they are sparse. If it's sparse, create a partial index that just includes rows where the bit is set: http://www.postgresq