| От | Jasen Betts |
|---|---|
| Тема | Re: exclusion constraint for ranges of IP |
| Дата | |
| Msg-id | j2tf1k$b0u$1@reversiblemaps.ath.cx обсуждение исходный текст |
| Ответ на | exclusion constraint for ranges of IP (Herouth Maoz <herouth@unicell.co.il>) |
| Список | pgsql-sql |
On 2011-08-21, Herouth Maoz <herouth@unicell.co.il> wrote: > Hi, > > I'm designing a new database. One of the table contains allowed IP ranges for a customer (Fields: customer_id, from_ip,to_ip) which is intended to check - if an incoming connection's originating IP number falls within the range, itis identified as a particular customer. > > Naturally, I'd like to have constraints on the table that prevent entering of ip ranges that overlap. Is there a way todo that with exclusion constraints? Or do I have to define a new type for this? > > Herouth if you can use CIDR instead of ranges it should be relatively simple -- ⚂⚃ 100% natural
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера