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 1vd7ws-00EI5A-2q for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 14:22:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vd7wr-008GpG-2O for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 14:22:14 +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.96) (envelope-from ) id 1vd7wr-008Gp7-1G for pgsql-hackers@lists.postgresql.org; Tue, 06 Jan 2026 14:22:14 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vd7wp-004uPI-0j for pgsql-hackers@postgresql.org; Tue, 06 Jan 2026 14:22:13 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-7c71cca8fc2so587575a34.1 for ; Tue, 06 Jan 2026 06:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tigerdata.com; s=google; t=1767709329; x=1768314129; 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=NxAkzfLtmPvudnsxtRpJ4ZppmR1AT76IfrmIMwt64+c=; b=WYntedptc7cKpf8KoDqoyhDXiVhKAU4Eo2/UTFKYhqUeZr8gpPedPxGa+BoAWborbm axq0FeO3pvR+20iMlF2vAAxtSW7EmfBl9tHA3O0JE6QuID5C4MS3lldNuzGBHUt2rJi7 pQzae3BfdizhUs6zE4/o5lZMmaBTLW0Ya9vxBl61ZOxRDV/7UKRWXzeTwrV78hOHrMah Yb+wtJ17pgu9MRBT+IVxJb754S0R4Dsa0npfHtez6uZ5Kd4BKdGGlrAkDH/xMmlPR/kh rp7TlVT1787Y3LLFGVhnrdqN1/PNmXs8Ik0UEBd50K8jhV8xZYpyQ336q9PAJKl2Vu0w IXbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767709329; x=1768314129; 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=NxAkzfLtmPvudnsxtRpJ4ZppmR1AT76IfrmIMwt64+c=; b=EqhVFOqHa2AIZjrgFrP/BzoRuCOP504nS/Vy9bDzUAkeFIAt5JjbEBPyxA0aKH16YS djjVcoNWR5CAKY846pJeJAFXa/gf0g1Ee62hThC0GAPRunoIcVHnUE8GlL/LyZtecKym rU40c1fb3H+2cXPVBdRIGiu810tYjl2BUItID3ZSDSOGxB+QdHZEtJ0qGQ2zJDB9z4yv iVk6wfzX4mgL2QrkUeoJB4hQCABZJIF00s1jjv0tFZtyoPgP4vgkGbVxlhG7GUQQo10o 1Xob314Fc8i7aUMcPTN94AVph+M/BRRQicEHFKeI909wt85cDhZdZnK0jUPLl9/LT/Rl s7iA== X-Gm-Message-State: AOJu0Yyi4mojhpkl/1pz3lZiY7wu/jp3mhi/gYfZ3f5gbg29bn8yJNzL Zqh3QJuEi267PcOKEoYw4HGLVcjhGDtQFnRmznGukIAaz+yxF6TIVSAq50UrrvGfIHt2oO1vAU3 hx0CrBo0qCZzR1tjm3P7KphIW1+V/dQ3kq6OoNPdrfYzynAgMmVekPu2iB3XP X-Gm-Gg: AY/fxX6tf9kTdI3jz8U4MSRqlSyLlIGqINWai7X1cZgrImjFcGLWCkzUIX8nqK7bBGB nDvk5u4j1RC05zjIsRm/wGEMkzD7FNRO9KrIeDZP6NTCSL5Qivvh6cBd5MhXVJ2tryvb64IZYDH GN6KdlbQBhPAxvPn68WTR3di0nwIoo1oZQt5BurINvYfTc2gcsSOznsucJxoLhkzDJoCTD/ZI+n gmjZ8sGy1XS5t5B7Bwy1fGyaIRCuSrFXtEJFPe2F/3QYHKaxFt8747u0fYgdSzYhth0TDOw X-Google-Smtp-Source: AGHT+IGfqtpbSZrpSBeWifoeHluOXe1ZwNq4KPqTHcxJ0qstv6AH6coLNtkk8rqfv9QT0c0Bhe96DFp8xDLEmrkeoAM= X-Received: by 2002:a05:6830:230c:b0:7c7:2cdb:ff4b with SMTP id 46e09a7af769-7ce466f5c59mr2077243a34.20.1767709329580; Tue, 06 Jan 2026 06:22:09 -0800 (PST) MIME-Version: 1.0 References: <2869012.1767023578@sss.pgh.pa.us> In-Reply-To: From: Aleksander Alekseev Date: Tue, 6 Jan 2026 17:21:55 +0300 X-Gm-Features: AQt7F2qp6gMC8dp2a3CruoYU2QfU6bxDaWwU84oos5hkJsupv6mNAsER8_9noDY Message-ID: Subject: Re: Define DatumGetInt8 function. To: pgsql-hackers Cc: Kirill Reshke , David Rowley , Tom Lane Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, > > Kirill, are you working on this patch? > > Yes, PFA. > > > I've not studied in detail, > > but looks like it would require making > > char_decrement()/char_increment() and btcharskipsupport() all use > > CharGetDatum()/DatumGetChar() and switch to using SCHAR_MIN/SCHAR_MAX > > rather than 0/UCHAR_MAX. > > This is also a possible change, and can be a separate patch. I will > try to also work on this this week. v1 looks incomplete to me. As I understand, Tom proposed to get rid of UInt8 conversions as well. Are you going to implement this idea as well? -- Best regards, Aleksander Alekseev