Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZHSM-0000lX-V2 for pgsql-general@arkaria.postgresql.org; Fri, 07 Jun 2019 16:11:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hZHRN-0002Qw-Ig for pgsql-general@arkaria.postgresql.org; Fri, 07 Jun 2019 16:10:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZHRN-0002Qp-5Q for pgsql-general@lists.postgresql.org; Fri, 07 Jun 2019 16:10:05 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZHRK-0003no-RH for pgsql-general@lists.postgresql.org; Fri, 07 Jun 2019 16:10:03 +0000 Received: by mail-qt1-x842.google.com with SMTP id a15so2864359qtn.7 for ; Fri, 07 Jun 2019 09:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=hTo8Vmct37zQAwwKWwXMTgsxVtudpYuMdTqkCxkbw8Y=; b=PdZ6al1BNYbD080FBkpBtPSepKFBY/sZpkcQsGxl2oVZs6r5Lny2X8fhQ993f3D4LN AKxZZB53vvBGUXI3E7miIAqEXsnc4ZO9OdlWeEieTxOyVYbXG/7hXDvpvBbtqFAI9mbr ndg+8JB9M+RQo8viqayaRpKhPbQVNoiq2tfGb1kDOVZH/aNDRRGq+rw7JDAFGYuub8lr blIfBcf1NkwRzh8cZgJ3X9M6F94xSLjSTRNLUB/jNtqisUT1sh9v7p5wtyQddfAY6LCk v/qywsPPIDqb1Y2d3YtQVGPz9JoGxcufrtow+pRfLBmpvfaM52j4XLfHTdGtT2SgnTcL 2E/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=hTo8Vmct37zQAwwKWwXMTgsxVtudpYuMdTqkCxkbw8Y=; b=M+CmHa9Fr4SxIB/vyrRRL6+fPqIa//bTuy9aS8c/pj/2JCpm+PhANp/ktsWjwTWyCU w4kZsDYFO8XM0uVVZu/WOiIL6SQG+47RatgZ1zPZ/IOkvT7UhiKLROQwWoQ5tjML1S1Y HvKW3Tu3BorLSYMTCr0BUpjx7meyviwU5v4w+G0mSTSq7AsYkRQyQejZmxpX1nZh2xtD lwmFnu5pNC+Nhw9c4SOWlC9nnVbjFYGHeNrDCVIPwr0TdrcnFd04h63ffWtyuI2lQjb2 BL0WLmaJspAnWn24XvFPCTLJTqF7OvTEzhPe4aY+2T9TdJJ2VVjn6kfF6K0+VXeu8/4c 8sFA== X-Gm-Message-State: APjAAAWKnOXtbQM5OfnZxc+T94cOzY8imLv9B45jYUAO9aHkfdrvCK41 egwihNFbib60lI7MK+UwFHSeRw== X-Google-Smtp-Source: APXvYqx1PHEtFr3OOMYWPuMnUVhDU7nZpbdm/hy2ydlGaecEU9/Lt/LOZvtsA2xa/05PtO/2xthWWg== X-Received: by 2002:ac8:1a8d:: with SMTP id x13mr47148363qtj.114.1559923802143; Fri, 07 Jun 2019 09:10:02 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id f34sm1421306qta.19.2019.06.07.09.10.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 09:10:01 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id A6BD61213C9; Fri, 7 Jun 2019 12:09:59 -0400 (-04) Date: Fri, 7 Jun 2019 12:09:59 -0400 From: Alvaro Herrera To: Peter Geoghegan Cc: David Rowley , "Alex V." , pgsql-general , tgl Subject: Re: Table partition with primary key in 11.3 Message-ID: <20190607160959.GA21111@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jun-07, Peter Geoghegan wrote: > On Thu, Jun 6, 2019 at 3:00 PM David Rowley > wrote: > > You may already be aware, but another use case for such variable-width > > identifiers was with indirect indexes as discussed in [1] > > Right. I went with global indexes because indirect indexes are > probably a lot more risky as a project. I'd be particularly concerned > about the complexity of VACUUM there, whereas that doesn't seem all > that bad in the case of global indexes. I think vacuuming for global indexes is somewhat challenging as well :-) Maybe not as much as for indirect indexes, that's true. In order for it to be sustainable, I think you'll want to reuse partition identifiers when the partitions are dropped/detached, which means that you need a way to ensure that index entries to those partitions are removed from all indexes. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services