This PostgreSQL module provides two data types, ip4 and ip4r, which can contain a single IPv4 address or a range of IPv4 addresses, respectively.
While PostgreSQL already has built-in types 'inet' and 'cidr', the authors of this module found that they had a number of requirements that were not addressed by the built-in type.
Firstly and most importantly, the built-in types have no support for index lookups of the form (column >>= parameter), i.e. where you have a table of IP address ranges and wish to find which ones include a given IP address. This requires an rtree or gist index to do efficiently, and also requires a way to represent IP address ranges that do not fall precisely on CIDR boundaries.
Secondly, the built-in inet/cidr are somewhat overloaded with semantics, with inet combining two distinct concepts (a netblock, and a specific IP within that netblock). Furthermore, they are variable length types (to support IPv6) with non-trivial overheads, and the authors (whose applications mainly deal in large volumes of single IPv4 addresses) wanted a more lightweight representation.
ip4r therefore supports two distinct data types (so far):
ip4 - a single IPv4 address ip4r - an arbitrary range of IPv4 addresses
|
|
|
| アーキテクチャ | パッケージサイズ | インストールサイズ | ファイル |
|---|---|---|---|
| alpha | 23.6 kB | 132 kB | [ファイル一覧] |
| amd64 | 21.8 kB | 124 kB | [ファイル一覧] |
| arm | 20.3 kB | 120 kB | [ファイル一覧] |
| hppa | 22.7 kB | 124 kB | [ファイル一覧] |
| i386 | 20.6 kB | 68 kB | [ファイル一覧] |
| ia64 | 24.7 kB | 136 kB | [ファイル一覧] |
| mips | 21.2 kB | 128 kB | [ファイル一覧] |
| mipsel | 21.2 kB | 128 kB | [ファイル一覧] |
| powerpc | 23.1 kB | 128 kB | [ファイル一覧] |
| s390 | 23.6 kB | 128 kB | [ファイル一覧] |
| sparc | 21.2 kB | 120 kB | [ファイル一覧] |