Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLYD4-00012B-O1 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Jul 2016 16:00:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bLYD4-0005jD-BO for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Jul 2016 16:00:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bLYD3-0005j6-MB for pgsql-hackers@postgresql.org; Fri, 08 Jul 2016 16:00:57 +0000 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bLYCz-0002TJ-Oo; Fri, 08 Jul 2016 16:00:57 +0000 Received: by mail-oi0-x244.google.com with SMTP id s17so11375770oih.1; Fri, 08 Jul 2016 09:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gLEOoB3W/TULZYq5hi0eh2arW7h1D0NT7+XU1v7Q8CQ=; b=hIByfWrU9Q6ADnxxSErgLyYNwVXQ+9K/hPkjeqdLu+1BTEht56keoT0lhnofIkk7i9 yDl9XCGm4y9XWD5w5n8WRf2Oqwh0bRdge96gFny86hXHiigO0VZ6VgDOzc9E66pnpDP/ SlOsEi1+KKvTEAxlO6ZplVETthaACJvOl82uFnft/36ve1owi7MHWVamNYHOFthz34VF FurSmhBWw4MmNfdZzk3LNLK9ppfNRUZswFh+g/LmNPHwgIw+UimZgpRiZOz0/fvCOFtf sSol3Fvo+Q/t3q+RFV1Y/dsLTakPmKB6H5hKeBJh7te+biGkZT0EEI9Ia+9wzQFGqysy 4fFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gLEOoB3W/TULZYq5hi0eh2arW7h1D0NT7+XU1v7Q8CQ=; b=Frgt3og4BkX0CxWk2l3+vNVoqoUNs/zYOXXHL7Q+V9qzDEW6FpXMna/odbwH03f2zp 6xbYfJ9VDyHPjhqIv8pJP1yjNUDZNQBQp7bRGiU3eY6Wp9W6GIbqOajmxXu7zXqUvnOI DjIA5NRDZJ9xlU3J/PfZCUQVORHN0TAq+V6vs7Sla/3KuhEy7AkhXxUc/4lpmNO+okZv 1qOEUe53SNp9Os9A6/RuKxcYqpoC3RMaC20pGitMC+6/zpCg7U0AvS5nMhi3FyuJb8PW QUEgQsCoLUecfpd41q8o2RibXiGXR5lPco3KxYgqJ7QGDr0a9lgb9p6JTbfyXsKzpMfQ Z72A== X-Gm-Message-State: ALyK8tLjMivFdoO4AbnpCNdd5uk9ObbBj8QRgiP7+RQO3PhZ4cXjpUKtymYmANV+PV0seOSR6LW+Nk7xQu/NrA== X-Received: by 10.157.5.70 with SMTP id 64mr3478702otw.182.1467993651650; Fri, 08 Jul 2016 09:00:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.168.105 with HTTP; Fri, 8 Jul 2016 09:00:50 -0700 (PDT) In-Reply-To: <20160706215556.cmhtizpbdn6zp464@alap3.anarazel.de> References: <20160706215556.cmhtizpbdn6zp464@alap3.anarazel.de> From: Kevin Grittner Date: Fri, 8 Jul 2016 11:00:50 -0500 Message-ID: Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < To: Andres Freund Cc: Noah Misch , Robert Haas , Alvaro Herrera , Ants Aasma , Amit Kapila , Kevin Grittner , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Wed, Jul 6, 2016 at 4:55 PM, Andres Freund wrote: > So I don't think that approach still allows old snapshot related > cleanups for toast triggered vacuums? Is that an acceptable > restriction? What I would rather see is that if the heap is vacuumed (whether or not by autovacuum) then the related TOAST table is also vacuumed (using the same horizon the heap used), but if the TOAST relation is chosen for vacuum by itself that it does not attempt to adjust the horizon based on old_snapshot_threshold. I am looking to see how to make that happen; expect a new patch Monday. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers