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 1qOSDC-007tif-Uv for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2023 00:17:06 +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 1qOSDB-001LFH-Cc for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2023 00:17:05 +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 1qOSDB-001LF9-3E for pgsql-hackers@lists.postgresql.org; Wed, 26 Jul 2023 00:17:05 +0000 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qOSD6-000Maf-70 for pgsql-hackers@postgresql.org; Wed, 26 Jul 2023 00:17:04 +0000 Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-345d3c10bdfso25394725ab.2 for ; Tue, 25 Jul 2023 17:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690330618; x=1690935418; h=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=4WYhOzFz2irFQBHASUcWNORv4Kwqk0lyit9UndmfEB8=; b=YTAuAn1qA1qZ4hhwSZSw1rZxuI4+r8i40uUJdVvIJ02+G0XQxErL1hSBkclTP1l1K+ jKVWmkz2o3Ahqb1GRCYZUZsZydL7RTlL9z418RcJs1SUP8H0lD5gne/1fXK6HDI4mmRE i4uXi5poH8DzMPNmFjO0i+3Y/N3srfIJYjq44n9REYhefUChA+ocNxroEWHSuT5qdaNW tFCG+Pu3tadWXTM2IrYl32+RU5egGo9WTgX+SfbzcDV1cqaCjJmsAnkHHaZqqfaEeyvg 1UxNyQvvEdtCdm1ckRv8xLKkqd1ztI9VDol7pCJd3DoaA4vg8UENe70kU6Odgjjj8sng VpTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690330618; x=1690935418; h=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=4WYhOzFz2irFQBHASUcWNORv4Kwqk0lyit9UndmfEB8=; b=hj3bidJAbAEcJJUw7l8R3nfp5uQu5XXCxO/pySLiPA6xXIh5hvRjERNUZmSe1O43ns LVLXzBP8nZXjerxJcqf3bO2HYsReygHlkvUVNwKKtFmskuRhyCwzjL+gTNqEeiH74HRE Ix9lR3fIEiCV7FjVshMWgbvSRcYJfpGPB66hUdGOR28wLX8rT98hSjoIFW26X/1W/NOh I3sUBCazuFq1UfqJsbE9y1CRUPDryQXr6QUBPSEnPUSvBbdGcWkZv9408wd7WDpQntn3 vy0c1/Qwxmp5wNVQtpMAnW0ZM7iITQ4mGyYtWGOV12SE6hCxRoD+XU7u3VHGL/MkPNnq S6dQ== X-Gm-Message-State: ABy/qLZeUZVHBEyy8QPqoqX/77uD7o/+y1zTKt3UaFCVl1FYRS67EO6t BKSwtWQDgyQ9lzCgF3CHnCs= X-Google-Smtp-Source: APBJJlFZP8L8UNLUWPC6SGXiMmTBqtQudpvPrM6wU4OZM2I6muWiN30cYwa7J8sKbtb87r9giNS4aw== X-Received: by 2002:a05:6e02:1111:b0:348:8396:9f88 with SMTP id u17-20020a056e02111100b0034883969f88mr485663ilk.9.1690330618303; Tue, 25 Jul 2023 17:16:58 -0700 (PDT) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id l20-20020a170903005400b001b8a85489a3sm11627754pla.262.2023.07.25.17.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 17:16:57 -0700 (PDT) Date: Tue, 25 Jul 2023 17:16:56 -0700 From: Nathan Bossart To: Kirk Wolak Cc: Peter Eisentraut , Eric Radman , pgsql-hackers@postgresql.org Subject: Re: [PATCH] Add function to_oct Message-ID: <20230726001656.GC2992317@nathanxps13> References: <5c260f97-d8c8-4a68-7498-022e550c6b10@enterprisedb.com> <20230725232426.GA2992317@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725232426.GA2992317@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jul 25, 2023 at 04:24:26PM -0700, Nathan Bossart wrote: > I started taking a look at this and ended up adding to_binary() and a > bigint version of to_oct() for completeness. While I was at it, I moved > the base-conversion logic out to a separate static function that > to_binary/oct/hex all use. Bleh, this patch seems to fail horribly on 32-bit builds. I'll look into it soon. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com