Re: Postgresql INET select and default route ?

Поиск
Список
Период
Сортировка
От Tim Smith
Тема Re: Postgresql INET select and default route ?
Дата
Msg-id CA+HuS5EahvwnyWnebfstuHCYo8-hJz+PYmRSyvZDP+6YUxZdew@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Postgresql INET select and default route ?  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general
Fabuous !  Thank you !

On 14 December 2015 at 07:52, Albe Laurenz <laurenz.albe@wien.gv.at> wrote:
> Tim Smith wrote:
>> Re: I am surprised that you don't expect "0.0.0.0/0" to be returned by the first
>> query if you expect it to be returned by the second.
>> Is that an oversicht?
>>
>> Thanks for the question, but no, it wasn't an oversight, I only am
>> looking for 0.0.0.0/0 to be returned if there is no more specific
>> match.
>
> I see, but then you'll have to use a different query:
>
> SELECT a from test where '11.1.2.3' <<= a
>    ORDER BY masklen(a) DESC LIMIT 1;
>
> Yours,
> Laurenz Albe


В списке pgsql-general по дате отправления:

Предыдущее
От: Benjamin Smith
Дата:
Сообщение: Permissions, "soft read failure" - wishful thinking?
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Permissions, "soft read failure" - wishful thinking?