Re: [BUGS] BUG #9652: inet types don't support min/max

From: Asif Naeem <anaeem(dot)it(at)gmail(dot)com>
To: Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #9652: inet types don't support min/max
Date: 2014-07-07 08:59:35
Message-ID: CAEB4t-M49wLVgU7RRbqW1Pd+JG=Qj4qPeeB7MZex8OygG1GyfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Hi Haribabu,

Thank you for sharing the patch. I have spent some time to review the
changes. Overall patch looks good to me, make check and manual testing
seems run fine with it. There seems no related doc/sgml changes ?. Patch
added network_smaller() and network_greater() functions but in PG source
code, general practice seems to be to use “smaller" and “larger” as related
function name postfix e.g. timestamp_smaller()/timestamp_larger(),
interval_smaller/interval_larger(), cashsmaller()/cashlarger() etc. Thanks.

Regards,
Muhammad Asif Naeem

On Mon, Jul 7, 2014 at 1:56 PM, Asif Naeem <anaeem(dot)it(at)gmail(dot)com> wrote:

> On Mon, Jun 30, 2014 at 4:45 PM, Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com>
> wrote:
>
>> At 2014-06-30 16:35:45 +0500, anaeem(dot)it(at)gmail(dot)com wrote:
>> >
>> > pc1dotnetpk:postgresql asif$ patch -p0 <
>> > > ~/core/min_max_support_for_inet_datatypes/inet_agg_v4.patch
>> > > can't find file to patch at input line 3
>> > > Perhaps you used the wrong -p or --strip option?
>> > > The text leading up to this was:
>> > > --------------------------
>> > > |*** a/src/backend/utils/adt/network.c
>> > > |--- b/src/backend/utils/adt/network.c
>> > > --------------------------
>>
>> You need to use patch -p1, to strip off the "a"/"b" prefix.
>>
>
> Thank you Abhijit, It worked.
>
>
>>
>> -- Abhijit
>>
>
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message jakub.vrbas 2014-07-07 13:58:24 BUG #10889: Cannot add 2 floats from regular expression
Previous Message Asif Naeem 2014-07-07 08:56:07 Re: [BUGS] BUG #9652: inet types don't support min/max

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2014-07-07 10:50:15 Re: pg_receivexlog add synchronous mode
Previous Message Asif Naeem 2014-07-07 08:56:07 Re: [BUGS] BUG #9652: inet types don't support min/max