Re: [HACKERS] Box operation algorithms

Поиск
Список
Период
Сортировка
От Eugene Selkov Jr.
Тема Re: [HACKERS] Box operation algorithms
Дата
Msg-id 35586CC7.5E7196B3@mcs.anl.gov
обсуждение исходный текст
Ответ на Box operation algorithms  ("Andy Farrell" <Andy_Farrell@gator-gate.itd.sterling.com>)
Список pgsql-hackers
Andy Farrell wrote:
>
> REGARDING                Box operation algorithms
>
> Hello,
>
> I was wondering if the algorithms used to implement the operations on
> box/polygon/point datatypes are documented and available anywhere on the web?
>
> TIA,
> Andy

Most of geo funcions are one-liners or very small. I think they are easy
to understand. That's probably why no one (yet) felt an urge to document
them. If you have postgres sources, look in
/usr/src/pgsql/src/backend/utils/adt/geo_ops.c and
/usr/src/pgsql/src/backend/utils/adt/geo_selfuncs.c

Essential part of geo_ops.c are input routines dedicated to parsing of
external representations (box_in(), point_in() and friends). You can
safely ignore functions in this file whose names make no sense to you,
unless you find an accidental feature in parsing.

--Gene

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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] Box operation algorithms
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Try again: S_LOCK reduced contentionh]