Variables in PL/pgSQL can be represented by any of SQL's standard data types, such as an
INTEGER or CHAR. In addition to SQL data types,
PL/pgSQL also provides the additional RECORD data type, which is designed to allow you to
store row information without specifying the columns that will be supplied when data is inserted into the variable. More
information on using RECORD data types is provided later in this chapter. For further
information on standard SQL data types, see the Section called Data Types in Chapter 3" in Chapter 3;
the following is a brief list of commonly used data types in PL/pgSQL:
-
boolean
-
text
-
char
-
integer
-
double precision
-
date
-
time