pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chapman Flack <chap@anastigmatix.net>
To: Patrick Handja <patrick.bungama@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Setof RangeType returns
Date: Tue, 1 Dec 2020 17:31:29 -0500
Message-ID: <5FC6C441.60403@anastigmatix.net> (raw)
In-Reply-To: <CAOKRWVAssZXC9z0PxdxqFQvgGNjGG8M3euiUF1H2cyyTKVwY7Q@mail.gmail.com>
References: <CAOKRWVCrbjGzW4DGNod5TVFTZYLPZnc5jWhFLPLi1jTHw=NHtA@mail.gmail.com>
	<1b469b07-eede-38d8-3876-8d98ed077ddd@iki.fi>
	<CAOKRWVBU5dxL5MawXhdSBVcSNC1qnaVTUsMCUU3+LpA5dznaYg@mail.gmail.com>
	<721455.1606505049@sss.pgh.pa.us>
	<CAOKRWVA9n-8U-QS7M_oyQ3ZeeFDcjpF=5iexnjYvsHoRvc-FdA@mail.gmail.com>
	<CAOKRWVAssZXC9z0PxdxqFQvgGNjGG8M3euiUF1H2cyyTKVwY7Q@mail.gmail.com>

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





view thread (9+ messages)  latest in thread

Message-ID: <5FC6C441.60403@anastigmatix.net>
Permalink:  ../5FC6C441.60403@anastigmatix.net/
Also on:    postgresql.org/message-id/5FC6C441.60403@anastigmatix.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: chap@anastigmatix.net, patrick.bungama@gmail.com, tgl@sss.pgh.pa.us, hlinnaka@iki.fi
  Subject: Re: Setof RangeType returns
  In-Reply-To: <5FC6C441.60403@anastigmatix.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox