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 1rdvkf-008MzQ-19 for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Feb 2024 17:23:53 +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 1rdvkd-005MFv-JU for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Feb 2024 17:23:52 +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 1rdvkd-005MFn-A2 for pgsql-hackers@lists.postgresql.org; Sat, 24 Feb 2024 17:23:51 +0000 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rdvkZ-000nL5-TQ for pgsql-hackers@postgresql.org; Sat, 24 Feb 2024 17:23:50 +0000 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-60853ad17f9so17636267b3.0 for ; Sat, 24 Feb 2024 09:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1708795428; x=1709400228; darn=postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=UK+QLR+RE+Mo/zAnD+7DtDw4jp1xLtmymZwQOKiJjcY=; b=VVKl96MaD0300rGbWRQk06vXR1PXUU5qkNtf5z1T0UTeAdTMOE8QbHg4FN65ycheRk 8+c4OL5171sBk6ixIKd9dFqMh4PMsJN6GiP2o9QljTWealC/TiqnjP8OgiCRP+4ox37n 8IFDisacA8pkhCgx6GDyqp6T7DRJB8Jh6ohaU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708795428; x=1709400228; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UK+QLR+RE+Mo/zAnD+7DtDw4jp1xLtmymZwQOKiJjcY=; b=L3dulpY7wjkY8skZIPUZ5ykxXlo4bWbZGrqlYkAcOuDQlLT5QL+FKpts/n7XIfOe0W RdG7agVzRVkqmof9HuOMDaZqUtwSNEhyWm8aTmHrQTl7RtdGNVxzyE+12qdJ4DdYzlG9 ZM2dpT84olOsesWSgrc7QlmisLr4knO2ObqX+1qh8SnhhX3wXANEMQxPpATo85tYFV0O X23iaZMlyd+O3Va8EuDUtQX9iOCkOIU3e5KitoyKifU6RZTUpAACTiftuFbm7Hr4sdMC bflqKC/QR/ZZbsLE89Za4CP4XbLqxuVvBivIYk6ml682HJewpsozE/Lr6NzKIyijwV2q R9xw== X-Forwarded-Encrypted: i=1; AJvYcCVbJnZioR5BU7CPLGQK/tSeSGr1fl8aJ8cZ7APNszWm1lxbuugpi9TocF9b/0nVvyMAye/G9P6wFhS4/CpFqCOjlcFXbjjqE45HnUgx X-Gm-Message-State: AOJu0Yzmtex9QNSb5i59iEd5xRjl1cipfKE+dh5dcKxGT7Zh57tDVjU8 OhLTzkheIjOmRjZAOiPwAh0EnI5rspmATNYU9BAbiBHRvTTFOG1otJT+51hHtw== X-Google-Smtp-Source: AGHT+IHWUnkqvZ+KM2qoVA1idxH/k74iFB0OWnozrGnJtPj86+gYGEMfsv1Ri3tVlh8IA6CfZLx55g== X-Received: by 2002:a81:4510:0:b0:608:b629:6281 with SMTP id s16-20020a814510000000b00608b6296281mr2197070ywa.24.1708795428355; Sat, 24 Feb 2024 09:23:48 -0800 (PST) Received: from rfd.leadboat.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id z188-20020a8165c5000000b006078f8caa68sm359095ywb.71.2024.02.24.09.23.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Feb 2024 09:23:47 -0800 (PST) Date: Sat, 24 Feb 2024 09:23:45 -0800 From: Noah Misch To: Heikki Linnakangas Cc: Peter Smith , Robert Haas , vignesh C , Andres Freund , pgsql-hackers , Melanie Plageman Subject: Re: Relation bulk write facility Message-ID: <20240224172345.32@rfd.leadboat.com> References: <30e8f366-58b3-b239-c521-422122dd5150@iki.fi> <20231119000416.fuyrbo6av7dytmf6@awork3.anarazel.de> <93e91b02-e07f-4205-8de6-3942b91760cb@iki.fi> <98832b4f-441f-4691-b9d4-9725eea8aed9@iki.fi> <6db39a5e-67ab-495d-9dfb-38b596df0d58@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 23, 2024 at 04:27:34PM +0200, Heikki Linnakangas wrote: > Committed this. Thanks everyone! https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=mandrill&dt=2024-02-24%2015%3A13%3A14 got: TRAP: failed Assert("(uintptr_t) buffer == TYPEALIGN(PG_IO_ALIGN_SIZE, buffer)"), File: "md.c", Line: 472, PID: 43188608 with this stack trace: #5 0x10005cf0 in ExceptionalCondition (conditionName=0x1015d790 "`", fileName=0x0, lineNumber=16780064) at assert.c:66 #6 0x102daba8 in mdextend (reln=0x1042628c , forknum=812540744, blocknum=33, buffer=0x306e6000, skipFsync=812539904) at md.c:472 #7 0x102d6760 in smgrextend (reln=0x306e6670, forknum=812540744, blocknum=33, buffer=0x306e6000, skipFsync=812539904) at smgr.c:541 #8 0x104c8dac in smgr_bulk_flush (bulkstate=0x306e6000) at bulk_write.c:245 #9 0x107baf24 in _bt_blwritepage (wstate=0x100d0a14 , buf=0x304f13b0, blkno=807631240) at nbtsort.c:638 #10 0x107bccd8 in _bt_buildadd (wstate=0x104c9384 , state=0x304eb190, itup=0xe10, truncextra=805686672) at nbtsort.c:984 #11 0x107bc86c in _bt_sort_dedup_finish_pending (wstate=0x3b6, state=0x19, dstate=0x3) at nbtsort.c:1036 #12 0x107bc188 in _bt_load (wstate=0x10, btspool=0x0, btspool2=0x0) at nbtsort.c:1331 #13 0x107bd4ec in _bt_leafbuild (btspool=0x101589fc , btspool2=0x0) at nbtsort.c:571 #14 0x107be028 in btbuild (heap=0x304d2a00, index=0x4e1f, indexInfo=0x3) at nbtsort.c:329 #15 0x1013538c in index_build (heapRelation=0x2, indexRelation=0x10bdc518 , indexInfo=0x2, isreindex=10, parallel=false) at index.c:3047 #16 0x101389e0 in index_create (heapRelation=0x1001aac0 , indexRelationName=0x20 , indexRelationId=804393376, parentIndexRelid=805686672, parentConstraintId=268544704, relFileNumber=805309688, indexInfo=0x3009a328, indexColNames=0x30237a20, accessMethodId=403, tableSpaceId=0, collationIds=0x304d29d8, opclassIds=0x304d29f8, opclassOptions=0x304d2a18, coloptions=0x304d2a38, reloptions=0, flags=0, constr_flags=0, allow_system_table_mods=false, is_internal=false, constraintId=0x2ff211b4) at index.c:1260 #17 0x1050342c in DefineIndex (tableId=19994, stmt=0x2ff21370, indexRelationId=0, parentIndexId=0, parentConstraintId=0, total_parts=0, is_alter_table=false, check_rights=true, check_not_in_use=true, skip_build=false, quiet=false) at indexcmds.c:1204 #18 0x104b4474 in ProcessUtilitySlow (pstate=, pstmt=0x3009a408, queryString=0x30099730 "CREATE INDEX dupindexcols_i ON dupindexcols (f1, id, f1 text_pattern_ops);", If there are other ways I should poke at it, let me know.