New function - hostmask

Поиск
Список
Период
Сортировка
Искать

New function - hostmask

От:
"greg" <greg.wickham@grangenet.net>
Дата:

Hi,

Have (by necessity) copied and altered the existing 'netmask' function
in postgresql to perform 'hostmask' style duties.

A diff against v7.3.2 is attached.

The patch affects three files:

  postgresql-7.3.2/doc/src/sgml/func.sgml - Updated list of network
functions with a simple example
  postgresql-7.3.2/src/backend/utils/adt/network.c - The bulk of the new
'hostmask' routine.
  postgresql-7.3.2/src/include/catalog/pg_proc.h - Addition of function
'hostmask' into pg_proc

Note that I arbitrarily chose 2311 as the OID (in pg_proc) as it was
unused (although not guaranteed to be the lowest unused value).

Would appreciate any feedback on this (first submission to postgresql
and all),

Cheers,

   -Greg

--


begin 666 postgres-hostmask.diff
M9&EF9B M7!E/BD\+V5N=')Y
M/@HK"3QE;G1R>3X\='EP93YI;F5T/"]T>7!E/CPO96YT3X**PD\96YT3X*( D\96YT3YE>'1R86-T(&YE='=O3X*9&EF9B M2!U;G5S960@8FETF5R;V5D("HO
M"BL)365M4V5T*&1S="P@,"P@5D%22$124UH@*R!S:7IE;V8H:6YE=%]S=')U
M8W0I*3L**PHK"6EF("AI<%]F86UI;'DH:7 I(#T]($%&7TE.150I"BL)>PHK
M"0DO*B!)="=S(&%N($E0(%8T(&%D9')E2!S:&EF
M="!I9B!T:&4@;6%S:R!L96X@:7,@/" S,B!B:71S("XN"BL)"2 J+PHK"BL)
M"6EF("AI<%]B:71S*&EP*2 \(#,R*0HK"0D);6%S:R ^/CT@:7!?8FET2 H)60I(BP@:7!?9F%M:6QY*&EP*2D["BL**PEI<%]F
M86UI;'DH9'-T*2 ](&EP7V9A;6EL>2AI<"D["BL):7!?='EP92AD'0)"0D)4$=.4U @4$=5240@,3(@9B!F('0@9B!I(#$@,C4@
M(C@V.2(@(&YE='=O'1?:6YE=" M(%]N=6QL7R I*3L*($1%4T-2
M*")T97AT('1O(&EN970B*3L*($1!5$$H:6YS97)T($])1" ](#$W,30@*" @
M8VED<@D)"0E01TY34"!01U5)1" Q,B!F(&8@="!F(&D@,2 V-3 @(C(U(B @
M=&5X=%]C:61R("T@7VYU;&Q?("DI.PI/;FQY(&EN('!O
FAQ