Re: match an IP address
| От | Phoenix Kiula | 
|---|---|
| Тема | Re: match an IP address | 
| Дата | |
| Msg-id | e373d31e0809230838i6f8a2689na24332d106bcbda4@mail.gmail.com обсуждение исходный текст | 
| Ответ на | Re: match an IP address (Craig Ringer <craig@postnewspapers.com.au>) | 
| Список | pgsql-general | 
<...snip...> > > I'd try a functional index first. If that didn't do the job, I'd use a > trigger-maintained column _purely_ as an optimisation (ie I could drop > it and lose no data) that stored text representations of the data. > Honestly, though, I expect the functional index would be more than good > enough and probably wouldn't have much of an INSERT/UPDATE cost. <.../snip...> I made a test table and tried a functional index (coalescing the two columns). Works! Now let me try that on a mirror on my full real table with millions of rows and report back. Sounds like a cleaner design so I may be on to something! Hope this helps the original poster with some ideas too.
В списке pgsql-general по дате отправления: