Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkEBN-0007b8-FS for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Dec 2020 22:31:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkEBM-0007F9-BS for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Dec 2020 22:31:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkEBM-0007F2-4X for pgsql-hackers@lists.postgresql.org; Tue, 01 Dec 2020 22:31:36 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkEBK-00032l-Ak for pgsql-hackers@postgresql.org; Tue, 01 Dec 2020 22:31:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+Ieeh0MgJt9Nuc4ZsxHKuR9su409V3SJMeYGJvYHdjw=; b=cvzzhQNKHegQlBdN2eM2mxbLhW Sk3+svJJPOXrMXSsIKhu85i7Twqx4u52DQsag9biU+cS91TKtnxY67HzxTxjDjnB+cBjfeeAU4M1q VvzLdo010lqYeSGiNm+c8wud1V2zIMTaxzEpgPN1t6VZBibtV5TeooIigC3z4XE3OwliqLRJh23A6 WC7+TCBiXVkdoAngQVuUj49v1CfZRi5cYohFoUFn639ZvIUuh1TtuazB9GVmtXKyo+4Ug85A/xe22 f0nswwH550sWnQm6SeLuKnIPfaSoch1iRgW1rCvl1nwXoUO6LdvIVcL16iHPta9Vf/EuSal0VCk89 NK/ocO+A==; Received: from [184.19.31.139] (port=43171) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kkEBG-006U23-HL; Tue, 01 Dec 2020 17:31:31 -0500 Subject: Re: Setof RangeType returns To: Patrick Handja , Tom Lane References: <1b469b07-eede-38d8-3876-8d98ed077ddd@iki.fi> <721455.1606505049@sss.pgh.pa.us> Cc: Heikki Linnakangas , pgsql-hackers@postgresql.org From: Chapman Flack Message-ID: <5FC6C441.60403@anastigmatix.net> Date: Tue, 1 Dec 2020 17:31:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-96.8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/01/20 17:19, Patrick Handja wrote: > Just figured out. I think I can use RANGE_EMPTY and it will be like: > >> typcache =range_get_typcache(fcinfo, RangeTypeGetOid(RANGE_EMPTY)); Are you sure you are not simply looking for range_get_typcache(fcinfo, INT4RANGEOID) ? Top-posting is not used for replies on these lists. Regards, -Chap