Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t3Fzx-00BVTq-6K for pgsql-admin@arkaria.postgresql.org; Tue, 22 Oct 2024 14:36:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t3Fzv-000DRX-8N for pgsql-admin@arkaria.postgresql.org; Tue, 22 Oct 2024 14:36:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t3Fzu-000DRP-BD for pgsql-admin@lists.postgresql.org; Tue, 22 Oct 2024 14:36:35 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t3Fzq-002IZ5-4l for pgsql-admin@lists.postgresql.org; Tue, 22 Oct 2024 14:36:33 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 70A3A114009E; Tue, 22 Oct 2024 10:36:28 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Tue, 22 Oct 2024 10:36:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= quadratum-braccas.com; h=cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1729607788; x=1729694188; bh=A0md3zt1wIw0gN2qxB4ZA8wsqByATCUm Br2tmSTC/JY=; b=X1g8f45QoD4jFonYQw/tcK9NGUOsboQo51zcEeDSXSFwlSRN LTCwRjLs4J1YlsSkppbgt72+tlHvp2NiIq4WCt9mxOEzPutzHmQQp7hxckLpiUu2 CaWzkY/8jXjUmXuc6crIdwLAracf4v6TrJdK+/ykSYmCDYAcZ86s0b0bN4VJVPfU xLLz3C6sUG3OnMXm8FrY3l3aAqF1UKJo8gXbPNbcfYCKPMYWk17xiYJ0VCk828pB EgXWF076Yqa4Str8CtAzMA0uC/hnBMBg2VIBJkaCRsq18RqdA4Ghuf7igSOa3C8h p7Oh1ZgWDSpVSrXHdKtjAtRrvrvPAhta0+/Uuw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1729607788; x=1729694188; bh=A0md3zt1wIw0gN2qxB4ZA8wsqByA TCUmBr2tmSTC/JY=; b=kN85fPgcs9Hm+1Wok6h/XgNHDbxiy8fHhp0mvWi1/ETd asLDoU0YAokY49PBeM77vr7dmX4+7VN+h5YDv1GCHglKC6bJmyMcU8sWV6WPid8w YnYRBqdj+XOWUAtF8qrqDU1MX7/2RcIDxrslv6WO4kn2J8xsAxznj/hZGEzW2MZd 5U6yHPB28jKRetS47z5/TZQ+Bqa6HYkpA4CsiLQKOEBfit+xD3zLtoBfYkSyTr4H rblYVY0iXQwH+0O4X6rp/bMggcN7GdNoRZVoBX+32K1sjLHh62wUxOc0qMLSLpaJ P6/naikW9St2/g7uzbNuOQlh4rcKgVzW0zhrME6GnA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeihedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfg fvhffutgfgsehtkeertddtvdejnecuhfhrohhmpefusghosgcuoehssghosgesqhhurggu rhgrthhumhdqsghrrggttggrshdrtghomheqnecuggftrfgrthhtvghrnhepfeekhefftd ffleduudegkeevtdekvdejgfegheefteefudeiveekhfelfffhuefhnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgsohgssehquhgrughrrg htuhhmqdgsrhgrtggtrghsrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhm thhpohhuthdprhgtphhtthhopehpghhsqhhlqdgrughmihhnsehlihhsthhsrdhpohhsth hgrhgvshhqlhdrohhrghdprhgtphhtthhopehssghosgesqhhurggurhgrthhumhdqsghr rggttggrshdrtghomh X-ME-Proxy: Feedback-ID: i374947ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Oct 2024 10:36:27 -0400 (EDT) Message-ID: <7bc2cd63-dff7-46bf-9cca-ee950463f13a@quadratum-braccas.com> Date: Tue, 22 Oct 2024 08:36:26 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "pgsql-performance@lists.postgresql.org" Content-Language: en-US From: Sbob Subject: ERROR Inserting into partition Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk All; I have created a table that looks like this: CREATE TABLE myschema.cust_part (            cust_int_id     bigint,           cust_ext_id    bigint,           cust_tax_id   varchar(20),           cust_dob        date,           cust_dob_str   varchar(20),          cust_last_name  varchar(100),         cust_first_name   varchar(100),          cust_middle_name  varchar(100),         cust_addr1                text,        cust_city                     text,        cust_state                  text,        cust_zip                     varchar(5) ) PARTITION BY LIST (cust_last_name); and a partition that looks like this: CREATE TABLE part_schema.cust_info_5 PARTITION OF myschema.cust_part FOR VALUES IN ('NELL'); if I insert ONLY the partition  key column  via a select from another table it fails: INSERT INTO part_schema.cust_info_5 ( cust_last_name) SELECT l_name from public.global_addr WHERE l_name = 'NELL'; ERROR:  new row for relation "cust_info_5" violates partition constraint DETAIL:  Failing row containd (null, null, null, null, null, 'NELL', null, null, null, null, null,null). However if I insert the values directly it works: INSERT INTO part_schema.cust_info_5 VALUES (null, null, null, null, null, 'NELL', null, null, null, null, null,null) ; INSERT 0 1 I'm stumped, this happens with other last name values as well such as 'N', and 'SMITH' thoughts? I get the same behavior if I insert based on a select of all the partition table columns Thanks in advance