PostGIS is an open-source, freely available spatial database extension for the PostgreSQL Database Management System. PostGIS adds spatial functions such as distance, area, union, intersection, and specialty geometry data types to PostgreSQL.
Take a look at these slides to learn more about spatial data types, multidimensional spatial indexing, and spatial functions.