Re: Slow deletes
От | Edmund Dengler |
---|---|
Тема | Re: Slow deletes |
Дата | |
Msg-id | Pine.BSO.4.44.0208122302320.20347-100000@cyclops4.esentire.com обсуждение исходный текст |
Ответ на | Re: Slow deletes (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Slow deletes
|
Список | pgsql-general |
Anyway to conveniently dump the triggers (3 are constraint check, my own personal one is suppose to be on inserts only)? Regards, Ed P.S. Trying to delete a couple of thousand rows, and while the explain is indeed faster (and I believe it is getting to the actual delete part faster), it is still taking quite a long time. On Mon, 12 Aug 2002, Tom Lane wrote: > Edmund Dengler <edmundd@eSentire.com> writes: > > Thanks! That seems to have been the issue! > > => explain delete from syslog_event where event_id = 1000::int8; > > NOTICE: QUERY PLAN: > > > Index Scan using syslog_event_event_id_idx on syslog_event > > (cost=0.00..3.02 rows=1 width=6) > > That's better. > > > Deleting a single row now takes only about 5 seconds. > > Hm, still seems like a huge amount of time to delete a single row. > I suspect query-optimization problems inside your triggers. > Can't say much without more details though. > > regards, tom lane >
В списке pgsql-general по дате отправления: