]> begriffs open source - ai-pg/blob - full-docs/src/sgml/html/infoschema-datatypes.html
WIP: toc builder
[ai-pg] / full-docs / src / sgml / html / infoschema-datatypes.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>35.2. Data Types</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="infoschema-schema.html" title="35.1. The Schema" /><link rel="next" href="infoschema-information-schema-catalog-name.html" title="35.3. information_schema_catalog_name" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">35.2. Data Types</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="infoschema-schema.html" title="35.1. The Schema">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="information-schema.html" title="Chapter 35. The Information Schema">Up</a></td><th width="60%" align="center">Chapter 35. The Information Schema</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="infoschema-information-schema-catalog-name.html" title="35.3. information_schema_catalog_name">Next</a></td></tr></table><hr /></div><div class="sect1" id="INFOSCHEMA-DATATYPES"><div class="titlepage"><div><div><h2 class="title" style="clear: both">35.2. Data Types <a href="#INFOSCHEMA-DATATYPES" class="id_link">#</a></h2></div></div></div><p>
3    The columns of the information schema views use special data types
4    that are defined in the information schema.  These are defined as
5    simple domains over ordinary built-in types.  You should not use
6    these types for work outside the information schema, but your
7    applications must be prepared for them if they select from the
8    information schema.
9   </p><p>
10    These types are:
11
12    </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="type">cardinal_number</code></span></dt><dd><p>
13        A nonnegative integer.
14       </p></dd><dt><span class="term"><code class="type">character_data</code></span></dt><dd><p>
15        A character string (without specific maximum length).
16       </p></dd><dt><span class="term"><code class="type">sql_identifier</code></span></dt><dd><p>
17        A character string.  This type is used for SQL identifiers, the
18        type <code class="type">character_data</code> is used for any other kind of
19        text data.
20       </p></dd><dt><span class="term"><code class="type">time_stamp</code></span></dt><dd><p>
21        A domain over the type <code class="type">timestamp with time zone</code>
22       </p></dd><dt><span class="term"><code class="type">yes_or_no</code></span></dt><dd><p>
23        A character string domain that contains
24        either <code class="literal">YES</code> or <code class="literal">NO</code>.  This
25        is used to represent Boolean (true/false) data in the
26        information schema.  (The information schema was invented
27        before the type <code class="type">boolean</code> was added to the SQL
28        standard, so this convention is necessary to keep the
29        information schema backward compatible.)
30       </p></dd></dl></div><p>
31
32    Every column in the information schema has one of these five types.
33   </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="infoschema-schema.html" title="35.1. The Schema">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="information-schema.html" title="Chapter 35. The Information Schema">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="infoschema-information-schema-catalog-name.html" title="35.3. information_schema_catalog_name">Next</a></td></tr><tr><td width="40%" align="left" valign="top">35.1. The Schema </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 35.3. <code class="literal">information_schema_catalog_name</code></td></tr></table></div></body></html>