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 1kv3xf-0006V8-KP for pgsql-general@arkaria.postgresql.org; Thu, 31 Dec 2020 19:50:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kv3xe-0001Bw-IZ for pgsql-general@arkaria.postgresql.org; Thu, 31 Dec 2020 19:50:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kv3xe-0001Bp-Ax for pgsql-general@lists.postgresql.org; Thu, 31 Dec 2020 19:50:14 +0000 Received: from mail.am-soft.de ([83.218.36.120]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kv3xb-0006wz-RJ for pgsql-general@lists.postgresql.org; Thu, 31 Dec 2020 19:50:13 +0000 Received: from mail.am-soft.de (localhost [127.0.0.1]) by mail.am-soft.de (Postfix) with ESMTP id 8C6DB342F822; Thu, 31 Dec 2020 20:50:10 +0100 (CET) Received: from tschoening-nb.fritz.box (unknown [77.78.163.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.am-soft.de (Postfix) with ESMTPSA id 731AE342F820 for ; Thu, 31 Dec 2020 20:50:10 +0100 (CET) Date: Thu, 31 Dec 2020 20:50:09 +0100 From: =?utf-8?Q?Thorsten_Sch=C3=B6ning?= Organization: AM-SoFT GmbH IT-Systeme Message-ID: <10710704258.20201231205009@am-soft.de> To: PostgreSQL General Subject: Re: Declarative partitioning and automatically generated row-IDs using BIGSERIAL In-Reply-To: References: <1176572765.20201231173856@am-soft.de> <1441151409.20201231191756@am-soft.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AV-Checked: ClamAV using ClamSMTP List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Guten Tag Michael Lewis, am Donnerstag, 31. Dezember 2020 um 19:28 schrieben Sie: > select > t.reloptions > from pg_class t > join pg_namespace n on n.oid =3D t.relnamespace > where t.relname =3D 'clt_rec' > and n.nspname =3D 'public'; That outputs NULL, as well for other tested indexes. Additionally, the following two lines only apply to the index associtaed with the primary key, not the table itself, don't they? > CONSTRAINT pk_clt_rec PRIMARY KEY (id) > WITH (FILLFACTOR =3D 10), I've checked pgModeler and it seems to set such low fill factors automatically on old primary keys only. Will remove those. > Sequences are incremented and return the new value whenever they are > called. If all partitions inherit the same sequence (behavior determined = by > which options you use when you create partitions LIKE parent)[...] Am I allowed or is it necessary to use LIKE? The docs don't use that and the description sounds wrong as well. > CREATE TABLE measurement_y2006m02 PARTITION OF measurement > FOR VALUES FROM ('2006-02-01') TO ('2006-03-01'); > Unlike INHERITS, the new table and original table are completely > decoupled after creation is complete. Changes to the original table > will not be applied to the new table, and it is not possible to > include data of the new table in scans of the original table. The option you mention is INCLUDING IDENTITY and that would need to be AVOIDED to NOT get multiple SEQUENCES? Mit freundlichen Gr=C3=BC=C3=9Fen, Thorsten Sch=C3=B6ning --=20 Thorsten Sch=C3=B6ning AM-SoFT IT-Service - Bitstore Hameln GmbH E-Mail: Thorsten.Schoening@AM-SoFT.de Web: http://www.AM-SoFT.de/ Telefon: 05151- 9468-55 Fax: 05151- 9468-88 Mobil: 0178-8 9468-04 Firmensitz: Bitstore IT-Consulting, Frankfurter Allee 285, 10317 Berlin Steuernummer 037/230/30566, HR 27198, Amtsgericht Potsdam Gesch=C3=A4ftsf= =C3=BChrer Janine Galonska