"jorge alberto" <jorge(dot)is(dot)a(dot)geek(at)gmail(dot)com> writes:
> I want to know how can I add a new spatial access method into the
> postgresql,
Developing a new index access method is hardly a novice-level task.
Are you sure you need to do that? Perhaps you can accomplish what
you want by making a new datatype and interfacing it to GiST indexes.
That's still a pretty large chunk to bite off, but there are examples
available --- look into the contrib/ directory to find existing add-on
datatypes that have GiST indexing capability. The documentation for
this area is weak. Be prepared to read source code ...
regards, tom lane