pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Skinner <skin@skin.dhs.org>
To: pgsql-docs@postgresql.org
Subject: Text Type
Date: Mon, 22 Jan 2001 21:58:47 -0500
Message-ID: <001e01c084e8$69015cf0$03320a0a@skinz> (raw)

Character Types
SQL defines two primary character types: character and character varying. Postgres supports these types, in addition to the more general text type, which unlike character varying does not require an explicit declared upper limit on the size of the field. 


Table 3-4. Postgres Character Types

      Character Type Storage Recommendation Description 
      character(n), char(n) (4+n) bytes SQL-compatible Fixed-length blank padded 
      character varying(n), varchar(n) (4+n) bytes SQL-compatible Variable-length with limit 
      text (4+n) bytes Most flexible Variable unlimited length 




-----------------------

Text type is not unlimited but rather limited by tuple size of 8140 bytes.

Paul

Message-ID: <001e01c084e8$69015cf0$03320a0a@skinz>
Permalink:  ../001e01c084e8$69015cf0$03320a0a@skinz/
Also on:    postgresql.org/message-id/001e01c084e8$69015cf0$03320a0a@skinz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: skin@skin.dhs.org
  Subject: Re: Text Type
  In-Reply-To: <001e01c084e8$69015cf0$03320a0a@skinz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox