Chapter 2. PostgreSQL Data Types

I l @ ve RuBoard

Data types are the basic building blocks of any RDBMS. They provide the mechanisms needed for the higher-level functionality of modern databases to exist. Queries, data validation, comparison operators, manipulation functions, and so on exist only as an extension of the data-type concept.

Without data types, it would be extremely difficult to consistently obtain meaningful information from a database. Data types ensure that data at the columnar level is stored in a consistent format. This facilitates the capability to make comparisons and manipulation of the underlying data in a predictable manner. Without such consistency, it could be like comparing apples and oranges (or integers and strings, in this case) when trying to make valid comparisons of the underlying data.

A further benefit of data types is that they provide a significant boost to the overall performance and efficiency of a database system. Because the database knows what type of data is stored in a given column, assumptions can be made about how to most efficiently store and retrieve that data.

I l @ ve RuBoard


PostgreSQL Essential Reference
PostgreSQL Essential Reference
ISBN: 0735711216
EAN: 2147483647
Year: 2001
Pages: 118
Authors: Barry Stinson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net