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 1iHcrh-0005Ur-OP for pgsql-general@arkaria.postgresql.org; Mon, 07 Oct 2019 23:56:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iHcrf-0006dv-DA for pgsql-general@arkaria.postgresql.org; Mon, 07 Oct 2019 23:56:31 +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 1iHcre-0006dZ-AK for pgsql-general@lists.postgresql.org; Mon, 07 Oct 2019 23:56:30 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iHcrX-0001aS-PQ for pgsql-general@lists.postgresql.org; Mon, 07 Oct 2019 23:56:29 +0000 Received: by mail-oi1-x242.google.com with SMTP id 83so13331594oii.1 for ; Mon, 07 Oct 2019 16:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=uKGuHlAVoGtD+ZVtACSW7AWCoDYfUyWzojDL0OKUK50=; b=f8O87bI2xGKOsjQGzkr3dbGa5ENVqMBeZLmoxQjvV1iBaFUPnx51rvS0PmCLtNCbk9 eV34OOLfcDhINy0ejwdcB9vwvnVz4ndV6hWS649KInDrtNUlGphFUAk5FxgGumut+AiE cUWsGqW5loI+LJBSPNjYbgIFz3r7lxq7nnJpc78uwVZBiSwLDk6UhFxPtb+1wTcKNIBw 841Yc+lal4GF7tquaiQAAuekvFQ8eIIhIDozhug/Cyyl3ueKOG2gMcAZQsMfxdAH6lck We5lRIS6Qz2h68JOU4gCUmnA7PbO/cFr5ViNAKdspamPpGn+CPRQwUuH/zWHJ7ST+Jnb EJzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=uKGuHlAVoGtD+ZVtACSW7AWCoDYfUyWzojDL0OKUK50=; b=Dm4/VIQtvZ12sgub3uCYnT+UYnX9Vn0pqtyG9OB2o3n95G40Isf1KFEZA2ZQsE+3kk DB/9rQXy+nkr8nRnTTdd5X5bYOugqOhkvM9QQPbEJjsfd5TMtN3ngHGD7BW9MtylpBIf zvRO5Q2/NxmAQYgS9BqPw8Uxs/f73OG4BhvXi5i3bDi2oXjpeV1ceBYcbXPWzBJJh+E1 4QjakmgjSYMXP6rsaeStkv/ctwf6uwOwzyf9fQY4gXywbZPsKivJxQmyFZFPel8If7aM YbyfnX/L8T4E8pvssYoSMi/AftvWGrj8M5CnV2kJi+pZXQ53TcqFnF36u5g3oRHFefUF Gbhw== X-Gm-Message-State: APjAAAWPtt7Lrg/HvUS9gIOic/IJ5YNW9MEqklj2/7mP26FWajriX94b Aqg2dX1PWYcX5CrNUtjzNqMgRBAnowIXxA== X-Google-Smtp-Source: APXvYqwj5oHqc6aE6pEgWzHJe99zrcVxjaZITlAIlLju+FHvRarDwA++3qWKGNrd3A+t9fKX0m4owg== X-Received: by 2002:a05:6808:3d2:: with SMTP id o18mr1448952oie.111.1570492582577; Mon, 07 Oct 2019 16:56:22 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id p7sm5056561oif.8.2019.10.07.16.56.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2019 16:56:21 -0700 (PDT) Subject: Re: Declarative Range Partitioning Postgres 11 To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <28854683-c0d9-1e33-7ae1-ddf51c58148a@gmail.com> Date: Mon, 7 Oct 2019 18:56:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/7/19 6:17 PM, Michael Lewis wrote: > No, what you want is not possible and probably won't ever be I would expect. Sure it is.  Maybe not the (weird) way that Postgres does partitioning, but the legacy RDBMS that I still occasionally maintain has for at least 25 years had partition key independent of any indexes. > Scanning every partition to validate the primary key isn't scalable. That's only because of the way Pg implements partitioning. -- Angular momentum makes the world go 'round.