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.96) (envelope-from ) id 1wc37a-0033C0-07 for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jun 2026 15:33:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wc37Y-00CdUh-2z for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jun 2026 15:33:04 +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.96) (envelope-from ) id 1wc37Y-00CdUZ-27 for pgsql-hackers@lists.postgresql.org; Tue, 23 Jun 2026 15:33:04 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wc37X-00000001lTU-1UJ8 for pgsql-hackers@postgresql.org; Tue, 23 Jun 2026 15:33:03 +0000 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-9157b94a07aso588288385a.0 for ; Tue, 23 Jun 2026 08:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782228782; cv=none; d=google.com; s=arc-20240605; b=Z4LpLfCh+558pSuUb7w/hpHXbVWD/X7b6RVCgkL/VasSifyAugvSxUb/ue4oVvwD5h ogeyjFps8gtpB2HQeCMQRf5sr5i64lWH94SI8c8ofU+q0zI/dHtG9NM5/JzX5FVtrKdA zYTqDh1qWmMOcBy9wEXgtUV7FNCVuQEm4RBiYe5J+I3oWH7utCOh1QM4HjbtW2hJrpMu dFm1sE3T7ub5jItVK0CQ2wWBT3m5rMM9BOkumxswLBbBp8FxVkFvBSRbVR1FdkHhSU5u XF3lXYQw5Aah0LvP0y+lh8NJbNclwnp8KI2ZHDYXBv9gH0hCTcHBWUhMp223itssWitS MyMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=C+91ZkvKKorsRb7jjKmgxxpJpcjNbv/AMhyo5BDS83U=; fh=3HbQnRuv1U6IU7OdpqnDnyzYV68SVe9wcRZN2bmfKSM=; b=K0j1foNepEEXxPdw2Oagw09oiXOnkAn+OAsV3WYCJf/OdP9rWgV4NIp0nTBbaaLgNM 4Ly2zHM2Ma00FmpYAurHuR7GvTbbNnxlFLQiPs/uFVfvj+AbiRVQP49vSM+IaPuI+TXu 3M/BCh6SNCJOhZLh9cMfddJ3W1Rw9MSF8QdbkvP0oFQa45cdYhnnWXx5gEfFq2A/trbN unOqceR+VvVZifBZl6c9CqK6+FeksNE55WYRfPxtQnAn452Rc3a8fmw8yA8oCSoDbKyd I1pD9n6obU9zAzQsYkvAllSTNSPHQ5dlKwuGt/CoDAFWaLd5LBDMlmFM5k1b1QDW+tdk RoYg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782228782; x=1782833582; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C+91ZkvKKorsRb7jjKmgxxpJpcjNbv/AMhyo5BDS83U=; b=UItQjLiDgDuehNnQ6Xy49BrcCm5Dqe1PH2AqdgwPm96aG0vfVjVtJgkl/3lbBTy/Ce gVNmLzrVd424MAV21EOxY1d+9KEIV8QlpijULvj56EoTWKEKwSGrRlGIUJ1bm4HSoTWZ MeMdnCqxcDCwdEKSxKqqJeOSr5xMn3ucZtL2tA+gILZg6rSxZUng2s5zY3lcUsJbYKq9 pMnDzW+SqFQfi8tND+6LSJkr3XszXjCtnPJ10XTC+q1XpNInb8jJvbfHWZGdwgjoqICv QrOgBOcVikrQnWK0BtwcdoklzCPYlDhucSwGhyr4EWetdGHzHXKGlGVExHbsMr9b308o JdNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782228782; x=1782833582; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=C+91ZkvKKorsRb7jjKmgxxpJpcjNbv/AMhyo5BDS83U=; b=Po4RnALII9OF5K91WaveMRIrIz70TqL4kM02SqHEPS1wG0S9fznii32XjxoxwXSFfo KzDLMGw++ljqS+a7ZQLJ5UuEB3iDS1oLzrFneAQBJ+dIgpYudDzOX3/gCvlB/gPfG+JF sAyKxjuOQ3qik9KVnhixPKa4CUcCQsqfqUwdTE1cqtc5MlyQTYmc6414LOImMm1plNh1 uGRyZanRfqR+PHLAve5YcUJDdW2GLD9X6t70s0pfyrSSGSHJrqsEBMt8GJgvacuJGfB5 fxrjPdbuF3EEdqXPauloywShDLbHG6AR6krbyr/iWW6vJ0FnPYrlSilH8Qa494QEebJz gd5g== X-Forwarded-Encrypted: i=1; AFNElJ/iI2wzZi3hFqeAcU5ld6jmDHn6bMGD7Go6f3f7Znxxsu3p4wUU44njgePLiuAFs5WtrQqe3HDQ4DQ4Daen@postgresql.org X-Gm-Message-State: AOJu0YyD7v9C0Iv/jmmtZRvZG81XTkC7InTRGjdqWRBnD73iNBF1We4h ZpZVbvejk0/0KVUf6j2FyhkvRiqZJ9dyuFfFY5OqWTHsY2arlN5aVqW36hveXfZ+JcmJeVfyXvk eDxZoh0/wYV+/7+Z0FVJ85TG/89aS4Xg= X-Gm-Gg: AfdE7clhWjzeFDOd+yfdCiFNNKWb1dVV6DoycQi6AqiNj4VWScomTFH3u0JByf3+sDZ KIPuvtMXkHEKSv6QzqcZWrh1TIfZjXMtWphrQVLq3kxNh8a0IgYN4ugIgdSeq22XKplhUZMZu+U DjQ2/z4zSOwh98oOShyf20wDoQ780bhrU1XRzdkaALJ1T9cqxkL4FDayC3jsDVOkiOn0+9Rqkjs UeQk2uWr6V7+sgWYmoI5mhxJ70nrN883xaiXh+dKI0SPnAffofv5bjDKTwJp/q6ux2U5//PKWh5 oHHO+yTYzhd/3lZUhjFzi7jrgRtlWUKdCerb4iAXRRstWt+tsmssNmIwqe2lgZCsqp8L41BVjpq jtP6ymZDifEaHog== X-Received: by 2002:a05:620a:171e:b0:914:cf92:46fb with SMTP id af79cd13be357-926465834damr565559185a.32.1782228782118; Tue, 23 Jun 2026 08:33:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Corey Huinker Date: Tue, 23 Jun 2026 11:32:48 -0400 X-Gm-Features: AVVi8CdrEeyj_iDQttXxv-XuNEGE5jL33ksgAIXhOn0L0haupe_plGwwIAACj30 Message-ID: Subject: Re: use of SPI by postgresImportForeignStatistics To: jian he Cc: Robert Haas , Etsuro Fujita , "pgsql-hackers@postgresql.org" Content-Type: multipart/alternative; boundary="000000000000777a070654ed7932" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000777a070654ed7932 Content-Type: text/plain; charset="UTF-8" > > > Just a quick thought: the above can be replaced by InputFunctionCallSafe? > Potentially, yes. The functions were originally returning the actual data types rather than the Datum serializations. Which way those functions go depends a lot on the data structure they end up populating, which is currently in flux. --000000000000777a070654ed7932 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Just a quick thought: the above can be replaced by InputFunctionCallSafe?

Potentially, yes. The functions were ori= ginally returning the actual data types rather than the Datum serialization= s. Which way those functions go depends a lot on the data structure they en= d up populating, which is currently in flux.
--000000000000777a070654ed7932--