Re: Does postgres have Equivalent range C range Ty​pe for Built-in SQL range Types

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Does postgres have Equivalent range C range Ty​pe for Built-in SQL range Types
Date: 2022-08-28 16:36:32
Message-ID: CACJufxF_aOH8V3CzBV1c2eOuJgMO9EQ5tNxu_MZkZMFZC18EQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Sun, Aug 28, 2022 at 4:07 PM Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
wrote:

>
>
> ne 28. 8. 2022 v 12:36 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> napsal:
>
>> Hi
>>
>>
>> ne 28. 8. 2022 v 10:10 odesílatel jian he <jian(dot)universality(at)gmail(dot)com>
>> napsal:
>>
>>>
>>> Equivalent C Types for Built-in SQL Types
>>> https://www.postgresql.org/docs/15/xfunc-c.html#XFUNC-C-TYPE-TABLE
>>> Does postgres have Equivalent C range Type for Built-in SQL range Types?
>>>
>>>
>> No, there is only common ancestor - RangeType
>>
>> Ranges are containers like arrays or records - so has not own type
>> specific type
>>
>
> look
> https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/rangetypes.c
>
>>
>> Regards
>>
>> Pavel
>>
>>
>>> I recommend David Deutsch's <<The Beginning of Infinity>>
>>>
>>> Jian
>>>
>>>
>>>
technically, Can i use jsonbor range or array in C-language function?
If that's possible, for range type I need #include rangetypes.h in the c
file(used to create c function) ?

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Pavel Stehule 2022-08-28 17:08:25 Re: Does postgres have Equivalent range C range Ty​pe for Built-in SQL range Types
Previous Message Alvaro Herrera 2022-08-28 15:44:45 Re: Section 40.1 Overview of Event Trigger Behavior, and Table 40.1 missing needed details