Skip site navigation (1) Skip section navigation (2)

Re: More thoughts about planner's cost estimates

From: Hannu Krosing <hannu(at)skype(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, Jim Nasby <jnasby(at)pervasive(dot)com>,"Todd A(dot)Cook" <tcook(at)blackducksoftware(dot)com>,pgsql-hackers(at)postgresql(dot)org
Subject: Re: More thoughts about planner's cost estimates
Date: 2006-06-05 09:28:08
Message-ID: 1149499689.6204.25.camel@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Ühel kenal päeval, P, 2006-06-04 kell 18:09, kirjutas Tom Lane:
> Greg Stark <gsstark(at)mit(dot)edu> writes:
> > Hannu Krosing <hannu(at)skype(dot)net> writes:
> >> Ühel kenal päeval, L, 2006-06-03 kell 10:43, kirjutas Jim Nasby:
> >>> Might also be worth adding analyze delay settings, ala  
> >>> vacuum_cost_delay.
> ANALYZE already respects the vacuum delay settings.
> >> Actually we should have delay settings for all potential
> >> (almost-)full-scan service ops, - VACUUM, ANALYSE, CREATE INDEX, ADD
> >> CONSTRAINT, maybe more - so that there would be better chances of
> >> running those on busy databases without disastrous effects.
> > What about UPDATE and DELETE and for that matter SELECT?
> This seems pretty silly.  The point of the delay stuff is to prevent
> background maintenance operations from eating an unreasonable share
> of resources compared to foreground queries.  I don't see why you'd
> put delays into queries --- if your machine is loaded, it's loaded.
> I think the existing features are sufficient in this line and that
> doing more is just adding complexity for complexity's sake.

Making CREATE INDEX respect delay settings will be reasonable once we
get it to run without locking the table. 

And if non-locking is doable for ADD/ALTER CONSTRAINT, then it makes
sense there too.

Hannu Krosing
Database Architect
Skype Technologies OÜ
Akadeemia tee 21 F, Tallinn, 12618, Estonia

Skype me:  callto:hkrosing
Get Skype for free:

In response to

pgsql-hackers by date

Next:From: Simon RiggsDate: 2006-06-05 09:42:36
Subject: Re: XLOG_BLCKSZ vs. wal_buffers table
Previous:From: ITAGAKI TakahiroDate: 2006-06-05 09:17:45
Subject: Re: bgwriter statistics

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group