Changes of Revision 5
[-] | Changed | postgresql-ip4r.changes |
x 1
2 ------------------------------------------------------------------- 3 +Wed Sep 29 18:06:04 UTC 2010 - cs@linux-administrator.com 4 + 5 +- update to 1.05 6 + 7 +------------------------------------------------------------------- 8 +Sat Jul 4 00:19:23 CEST 2009 - poeml@suse.de 9 + 10 +- update to 1.04: 11 + Updates for 8.4. Minor changes for 8.4 GiST indexing. 12 + 13 +------------------------------------------------------------------- 14 +Tue Apr 28 13:09:48 CEST 2009 - poeml@novell.com 15 + 16 +- own the /usr/lib*/pgsql directory 17 +- remove unneeded (and non-working) directives to install the README to the 18 + documentation directory 19 + 20 +------------------------------------------------------------------- 21 Wed Dec 10 12:21:45 CET 2008 - poeml@suse.de 22 23 - increase release number, so that the package supersedes the one 24 |
||
[-] | Changed | postgresql-ip4r.spec ^ |
44 1
2 3 Summary: IPv4 and IPv4 range index types for PostgreSQL 4 Name: postgresql-%{sname} 5 -Version: 1.03 6 +Version: 1.05 7 Release: 10 8 License: BSD 9 Group: Applications/Databases 10
11 12 install -d %{buildroot}%{_libdir}/pgsql/ 13 install -d %{buildroot}%{_datadir}/%{name} 14 -install -d %{buildroot}%{_docdir}/%{name}-%{version} 15 install -m 755 %{sname}.so %{buildroot}%{_libdir}/pgsql/%{sname}.so 16 install -p -m 755 %{sname}.sql %{buildroot}%{_datadir}/%{name} 17 -install -p -m 755 README.%{sname} %{buildroot}%{_docdir}/%{name}-%{version}/README 18 19 %clean 20 rm -rf %{buildroot} 21 22 %files 23 %defattr(644,root,root,755) 24 -%dir %{_docdir}/%{name}-%{version} 25 -%doc %{_docdir}/%{name}-%{version}/README 26 +%doc README.ip4r 27 %{_datadir}/%{name} 28 %{_datadir}/%{name}/%{sname}*.sql 29 %dir %{_libdir}/pgsql 30 %{_libdir}/pgsql/%{sname}.so 31 32 %changelog 33 -* Fri Feb 1 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 1.03-1 34 -- Update to 1.03 35 - 36 -* Sun Jan 20 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 1.02-1 37 -- Update to 1.02 38 - 39 -* Mon Jul 9 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 1.01-2 40 -- Removed unneeded ldconfig calls, per bz review #246747 41 - 42 -* Wed Jul 4 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 1.01-1 43 -- Initial RPM packaging for Fedora 44 |
||
[+] | Changed | ip4r-1.04.tar.gz/ip4r.c ^ |
@@ -1,10 +1,12 @@ -/* $Id: ip4r.c,v 1.8 2008/01/28 23:18:35 andrewsn Exp $ */ +/* $Id: ip4r.c,v 1.9 2009/06/29 15:17:54 andrewsn Exp $ */ /* New type 'ip4' used to represent a single IPv4 address efficiently New type 'ip4r' used to represent a range of IPv4 addresses, along with support for GiST and rtree indexing of the type. + V1.04: updates for 8.4 + V1.03: fix the inet conversions which were not handling short varlenas correctly on 8.3 @@ -397,6 +399,18 @@ #error "Unknown or unsupported postgresql version" #endif +/* 8.4 adds parameters to gist consistent() to support dynamic setting + * of the "recheck" flag, and defaults recheck to true (giving us some + * performance loss since we don't need recheck). + */ + +#if IP4R_PGVER >= 8004000 +#define IP4R_GIST_HAS_RECHECK +#define IP4R_GIST_RECHECK_ARG ((bool *) PG_GETARG_POINTER(4)) +#else +#define IP4R_GIST_RECHECK_ARG (NULL) +#endif + /* 8.3 changes the varlena header (to support "short" varlenas without * needing a full 32-bit length field) and changes the varlena macros * to support this. Keep the new interface (which is cleaner than the @@ -1529,9 +1543,14 @@ GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0); IP4R *query = (IP4R *) PG_GETARG_POINTER(1); StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2); + bool *recheck = IP4R_GIST_RECHECK_ARG; IP4R *key = (IP4R *) DatumGetPointer(entry->key); bool retval; + /* recheck is never needed with this type */ + if (recheck) + *recheck = false; + /* * * if entry is not leaf, use gip4r_internal_consistent, * else use * gip4r_leaf_consistent | ||
[+] | Changed | ip4r-1.04.tar.gz/ip4r.sql.in ^ |
@@ -737,6 +737,12 @@ -- define the GiST support methods +-- these type declarations are actually wrong for 8.4+ (which added +-- more args to consistent) but we ignore that because the access +-- method code doesn't actually look at the function declaration, and +-- the differences are handled in the C code. Having the SQL +-- definition changing is just too much of a pain. + CREATE OR REPLACE FUNCTION gip4r_consistent(internal,ip4r,int4) RETURNS bool AS 'MODULE_PATHNAME' | ||
Added | ip4r-1.05.tar.gz ^ |