Re: simple update query too long

From: Isabella Ghiurea <isabella(dot)ghiurea(at)nrc-cnrc(dot)gc(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: simple update query too long
Date: 2011-05-13 18:19:27
Message-ID: 1305310767547-4393874.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I would suggest if you can try one of this options:

0- create a new index on " inter "column for grille table and in your WHERE
clause try to limit the number of update rows instead of 2mills for one
the whole transaction , something like :where inter > x and inter < y;

1- drop at least the grille_geom indexes and next

2- disable All the check constraints on grille tables, there are geometry
functions which possible are called every time when you run the updates.
Isabella

--
View this message in context: http://postgresql.1045698.n5.nabble.com/simple-update-query-too-long-tp4382026p4393874.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bubba postgres 2011-05-13 18:28:07 Re: pg_dump on Hot standby : clarification on how to
Previous Message Raymond O'Donnell 2011-05-13 17:44:58 Re: Postgredac Dump