Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THFWu-00084V-GL for pgsql-hackers@postgresql.org; Thu, 27 Sep 2012 14:57:32 +0000 Received: from smtprelay0153.b.hostedemail.com ([64.98.42.153] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THFWr-0007So-Pk for pgsql-hackers@postgresql.org; Thu, 27 Sep 2012 14:57:31 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay05.b.hostedemail.com (Postfix) with SMTP id 9CEF64D54240; Thu, 27 Sep 2012 14:57:27 +0000 (UTC) X-Panda: scanned! X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::::, RULES_HIT:152:355:379:599:601:800:960:967:973:988:989:1260:1277:1311:1313:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2525:2553:2560:2563:2682:2685:2857:2859:2916:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3138:3139:3140:3141:3142:3352:3865:3866:3867:3869:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:4659:5007:6261:7679:7903:9010:9025:9121:10004:10400:10848:10967:11256:11257:11658:11914:12219:12517:12519:12740, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Filterd-Recvd-Size: 2032 Received: from perhan.alvh.no-ip.org (unknown [190.95.25.25]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf10.b.hostedemail.com (Postfix) with ESMTPA; Thu, 27 Sep 2012 14:57:27 +0000 (UTC) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 10D166E031; Thu, 27 Sep 2012 11:57:25 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Tomas Vondra , Pg Hackers Subject: Re: autovacuum stress-testing our system From: Alvaro Herrera To: Simon Riggs In-reply-to: References: <1718942738eb65c8407fcd864883f4c8@fuzzy.cz> <1348670702-sup-1884@alvh.no-ip.org> Date: Thu, 27 Sep 2012 11:57:24 -0300 Message-Id: <1348757745-sup-1839@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/1093 X-Sequence-Number: 214121 Excerpts from Simon Riggs's message of jue sep 27 06:51:28 -0300 2012: > On 26 September 2012 15:47, Alvaro Herrera w= rote: > > > > Really, as far as autovacuum is concerned, it would be much more usef= ul > > to be able to reliably detect that a table has been recently vacuumed= , > > without having to request a 10ms-recent pgstat snapshot. That would > > greatly reduce the amount of time autovac spends on pgstat requests. >=20 > VACUUMing generates a relcache invalidation. Can we arrange for those > invalidations to be received by autovac launcher, so it gets immediate > feedback of recent activity without polling? Hmm, this is an interesting idea worth exploring, I think. Maybe we should sort tables in the autovac worker to-do list by age of last invalidation messages received, or something like that. Totally unclear on the details, but as I said, worth exploring. --=20 =C3=81lvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services