<literal>t</literal> and <literal>f</literal>.
</para>
- <tip>
- <para>
- Values of the <type>boolean</type> type cannot be cast directly
- to other types (e.g., <literal>CAST
- (<replaceable>boolval</replaceable> AS integer)</literal> does
- not work). This can be accomplished using the
- <literal>CASE</literal> expression: <literal>CASE WHEN
- <replaceable>boolval</replaceable> THEN 'value if true' ELSE
- 'value if false' END</literal>. See <xref
- linkend="functions-conditional">.
- </para>
- </tip>
-
<para>
<type>boolean</type> uses 1 byte of storage.
</para>