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 1ql964-001RXM-J1 for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Sep 2023 14:31:32 +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 1ql963-00CWTX-91 for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Sep 2023 14:31:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ql962-00CWTA-Ut for pgsql-hackers@lists.postgresql.org; Tue, 26 Sep 2023 14:31:30 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ql95w-007hGh-9f for pgsql-hackers@lists.postgresql.org; Tue, 26 Sep 2023 14:31:30 +0000 Received: by mail-pf1-x444.google.com with SMTP id d2e1a72fcca58-6927528c01dso1387074b3a.0 for ; Tue, 26 Sep 2023 07:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695738682; x=1696343482; darn=lists.postgresql.org; h=to:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=eTBYgOlI8DvjLna/+uhDd96sIlsCa/DsTzcPZsuIZBY=; b=W2QeJ4pXEasYf0OyDAD44HrID8qxYgx0JN+Ea33FMEVzq37JCbJBQcxeD5a43+MDTQ dv0Fiatyg0xZZds/oJswNq3kWCbKqJKcWhtnFR6PfGmb8/8/VuwmH1S24fhdZphqTNbh VVd5hCTWsRlPAEiD52ZWiknMWyJdMR2IYDmZFwq4fBwM4ReqPEi06IfwFw25TWCwmCZi IgNexOw1BTSveAJl41z1/NzZX3ckdZe03r3OYfzSMQrPTFyH3fNTd1yss2g78l7nZlt5 SPrB4U/HRDiFXpBaKCDb1zO+QMOGMy04vsR3odbQRkw0DPeuBkuKiAA8t/BjO+yrz6ZQ inxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695738682; x=1696343482; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eTBYgOlI8DvjLna/+uhDd96sIlsCa/DsTzcPZsuIZBY=; b=weDDE8HysIRCndHHMkZZqEO32/58SNljHzcpgDOZl/rk5ychOdR/55AtM3hmxEvBXj qx0qUf/2vSzhOgLocbSm0JY0go5Jh5j/fgnDxV5M8rbr7tCBhz2UUrYdwOkiMuY4oZ7L pZ1rZksW3nXKrHbgiIQ+OU14tD1GkAa4hh4rN07zTX5RngF69dHVMzw11ozoh/OArDis KDXyZHFZninQEqc+pv6hEPrnGuiEKqu03/rJu1M7HErMvCfq145g4SRZtxMfgmd3biRE WlPlFIVSSOCgJR4fh2A4tc18uFKMDnRG/GCnQVG70U0ol7v5ITrsSjXhoOkKrUYnpGHY 7h2Q== X-Gm-Message-State: AOJu0Yz1QgdViPu9rqhmRsfEEzJ8RPVmd5FpZCXX9A+FlHRnbUjHcon0 kGtzfv/AkjnOpG3BgeG1caaHtI7ku8/yuJaF4ws= X-Google-Smtp-Source: AGHT+IFGiTJF5zCw6UfplJB1qF2COYrGQDTbCkNAGylvMptXO2TNl15Fld9XgW8ipNSSPJL1oM9uFg== X-Received: by 2002:a05:6a20:8f15:b0:13d:d5bd:758f with SMTP id b21-20020a056a208f1500b0013dd5bd758fmr12017753pzk.6.1695738681452; Tue, 26 Sep 2023 07:31:21 -0700 (PDT) Received: from smtpclient.apple ([2406:da18:a45:900:8b3f:74fe:59d8:503c]) by smtp.gmail.com with ESMTPSA id x5-20020a654145000000b00578bb6aacc3sm8514168pgp.33.2023.09.26.07.31.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Sep 2023 07:31:21 -0700 (PDT) From: jacktby jacktby Content-Type: multipart/alternative; boundary="Apple-Mail=_D866F347-ADED-48B4-843F-1D7546C3875F" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Index AmInsert Parameter Confused? Message-Id: <8ADD1D60-2F10-44CF-A9B1-7D1824D48C36@gmail.com> Date: Tue, 26 Sep 2023 22:31:09 +0800 To: pgsql-hackers@lists.postgresql.org X-Mailer: Apple Mail (2.3731.600.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_D866F347-ADED-48B4-843F-1D7546C3875F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 typedef bool (*aminsert_function) (Relation indexRelation, Datum = *values, bool = *isnull, = ItemPointer heap_tid, = Relation heapRelation, = IndexUniqueCheck checkUnique, bool = indexUnchanged, = struct IndexInfo *indexInfo); Why is there a heap_tid, We haven=E2=80=99t inserted the value, so where = does it from ?= --Apple-Mail=_D866F347-ADED-48B4-843F-1D7546C3875F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
typedef = bool (*aminsert_function) (Relation indexRelation,
=   Datum = *values,
=   bool *isnull,
=   ItemPointer = heap_tid,
=   Relation heapRelation,
=   IndexUniqueCheck = checkUnique,
=   bool indexUnchanged,
=   struct IndexInfo = *indexInfo);

Why is there a heap_tid, We = haven=E2=80=99t inserted the value, so where does it from = ?
= --Apple-Mail=_D866F347-ADED-48B4-843F-1D7546C3875F--