<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://www.sqlines.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.sqlines.com/feed.php">
        <title>SQLines Tools postgresql:datatypes</title>
        <description></description>
        <link>https://www.sqlines.com/</link>
        <image rdf:resource="https://www.sqlines.com/lib/images/favicon.ico" />
       <dc:date>2026-04-09T06:55:44+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.sqlines.com/postgresql/datatypes/int?rev=1323594399&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/postgresql/datatypes/serial?rev=1666418357&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/postgresql/datatypes/text?rev=1323853281&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.sqlines.com/lib/images/favicon.ico">
        <title>SQLines Tools</title>
        <link>https://www.sqlines.com/</link>
        <url>https://www.sqlines.com/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.sqlines.com/postgresql/datatypes/int?rev=1323594399&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-12-11T09:06:39+00:00</dc:date>
        <title>PostgreSQL INT, INTEGER Data Type - Features, Examples and Equivalents</title>
        <link>https://www.sqlines.com/postgresql/datatypes/int?rev=1323594399&amp;do=diff</link>
        <description>INT data type stores 32-bit integer data.

 Syntax  INT or INTEGER  Quick Example  CREATE TABLE t (c INT);  Range  -231 to 231-1 (2 Gb)  Storage Size  4 bytes  Synonyms  INT, INTEGER and INT4 

Versions: PostgreSQL 9.x and 8.x

Related Data Types in PostgreSQL


Related data types for INT/INTEGER in PostgreSQL:</description>
    </item>
    <item rdf:about="https://www.sqlines.com/postgresql/datatypes/serial?rev=1666418357&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-10-22T05:59:17+00:00</dc:date>
        <title>PostgreSQL - SERIAL - Generate IDs (Identity, Auto-increment)</title>
        <link>https://www.sqlines.com/postgresql/datatypes/serial?rev=1666418357&amp;do=diff</link>
        <description>SERIAL data type allows you to automatically generate unique integer numbers (IDs, identity, auto-increment, sequence) for a column.

Quick Example:


   -- Define a table with SERIAL column (id starts at 1)
   CREATE TABLE teams
   (
      id SERIAL UNIQUE, 
      name VARCHAR(90)
   );
 
   -- Insert a row, ID will be automatically generated
   INSERT INTO teams (name) VALUES ('Tottenham Hotspur');
   
   -- Retrieve generated ID (just one of the possible options)
   SELECT LASTVAL(); 
   -- R…</description>
    </item>
    <item rdf:about="https://www.sqlines.com/postgresql/datatypes/text?rev=1323853281&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-12-14T09:01:21+00:00</dc:date>
        <title>PostgreSQL TEXT Data Type - Features, Examples and Equivalents</title>
        <link>https://www.sqlines.com/postgresql/datatypes/text?rev=1323853281&amp;do=diff</link>
        <description>TEXT data type stores variable-length character data.

 Syntax  TEXT   Quick Example  CREATE TABLE t (c TEXT);  Range  up to 1 Gb  Trailing Spaces  Stored and retrieved if data contains them. Significant in comparison 

Versions: PostgreSQL 9.x and 8.x</description>
    </item>
</rdf:RDF>
