Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jloUm-0002BI-P9 for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2020 06:57:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jloUl-0005xn-ID for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2020 06:57:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jloUl-0005xf-7v for pgsql-general@lists.postgresql.org; Thu, 18 Jun 2020 06:57:55 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jloUe-0004Jo-RA for pgsql-general@lists.postgresql.org; Thu, 18 Jun 2020 06:57:53 +0000 Received: by mail-pg1-x52c.google.com with SMTP id h10so2475976pgq.10 for ; Wed, 17 Jun 2020 23:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:message-id:date :mime-version; bh=KHqyDt0Uwc5UrTsECIIUOFM7aGZvPP8tvrpKeyiVfxY=; b=iMXrVfWJYamg7zfRQMWPZdteGCPHt21gD4MZhZL2jDubvOPG/qMlbtu2W+1pp2SChR DHr6DAaK3+B7M1gHUurNjEN3g9StOIj89lfdroLyfHoe9IipuzZH9RpysSCx9jf5TnP0 E+UVlHF1KnhBkzW9Nyl1AuV0SEU/s+GDL3IXDaOr6qyZTiQZTJn94zVsjbx/tovx49Rw LaS5pfqW8p7Rz0kerOwJfTdd46EaTvH74wG3wJX7HSob873l1+wYfQ1KNeL9a5Zy1Das qtYscO36Cll69E3veHrpf83R1m3s2I7H7sExlEDH3QOc3WHnJ+lBXDpKjnJSfFzJDHPL lERA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:message-id:date:mime-version; bh=KHqyDt0Uwc5UrTsECIIUOFM7aGZvPP8tvrpKeyiVfxY=; b=ATkQwbWx8Q9RYq75YP1Vm+PyfDvkRpp9bTGCMm4WiKstNmnSKlO0sX3nz9Tirtfc/D pqF72oidtXptnfhCRAWHkbukOonyN9G5q3OhYLxBHX9aQlVAkLm2iuphOgg2P1tC885T yYZuRzDONs4mXYWKZZHyxIqlUv4jXnKxLMoNPF+ZJqoBTiOrS+3QSp4lp+kToy9EmhVv Oztz0ZUifz6b/F2Z2UPpr2x6b4m/tO7ETwXmmLJruGmQT1kdZ9JBvi+JGQLR5HfVq5y3 MRCHTzsWvLi5kxL6Opgla4lDm/n4tXv5mjE1j15zppW9PIjqMwFQyYR+ehUasAfEysSC DvWA== X-Gm-Message-State: AOAM533+TEy8woXW7jYuLBr9d0dRgVqmMr475ZGTWmZz5D+kCgvMo4hI sOX9tu4yDCdMYq2bvRfvrGWMyZFd X-Google-Smtp-Source: ABdhPJywooHeW7eTK+vanlaAeICeCcD+NQNy1aASUAuvGb3NSp6nmVniWFNEiAx2mhzP0roYGbFVmA== X-Received: by 2002:a65:614b:: with SMTP id o11mr2140187pgv.443.1592463467263; Wed, 17 Jun 2020 23:57:47 -0700 (PDT) Received: from tim-desktop (220-235-183-249.dyn.iinet.net.au. [220.235.183.249]) by smtp.gmail.com with ESMTPSA id u6sm1774246pfc.83.2020.06.17.23.57.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 23:57:46 -0700 (PDT) References: User-agent: mu4e 1.5.3; emacs 27.0.91 From: Tim Cross To: pgsql-general@lists.postgresql.org Subject: Re: Table partitioning with sequence field in postgresql12 In-reply-to: Message-ID: <87wo44zwrd.fsf@gmail.com> Date: Thu, 18 Jun 2020 16:57:42 +1000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Srinivasa T N writes: > Hi, > Partitioning of a table with sequence id as one of its fields is > supported in postgresql12? > > Regards, > Seenu. A sequence is really just an 'atomic' number generator, you get the next value, which is guaranteed to be larger than the last 'nextval' (up until maxvalue). It is unaware of the use i.e. whether it will be used in a insert or what table that insert is against. So I'm not sure what your concern with a partitioned table is? Can you elaborate? -- Tim Cross