Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4976816b
Commit
4976816b
authored
Jan 12, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve CHAR() description.
parent
19b88633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
doc/FAQ
doc/FAQ
+7
-6
No files found.
doc/FAQ
View file @
4976816b
Frequently Asked Questions (FAQ) for PostgreSQL
Last updated:
Tue Dec 17 23:56:27 EST 2002
Last updated:
Sun Jan 12 00:16:01 EST 2003
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
@@ -834,13 +834,14 @@ BYTEA bytea variable-length byte array (null-byte safe)
space used is slightly greater than the declared size. However, these
data types are also subject to compression or being stored out-of-line
by TOAST, so the space on disk might also be less than expected.
CHAR(n) is best when storing strings that are usually the same length.
VARCHAR(n) is best when storing variable-length strings but it limits
how long a string can be. TEXT is for strings of unlimited length,
maximum 1 gigabyte. BYTEA is for storing binary data, particularly
values that include NULL bytes. These types have similar performance
characteristics.
maximum 1 gigabyte.
CHAR(n) is for storing strings that are all the same length. CHAR(n)
stores trailing spaces, while VARCHAR(n) trims them. BYTEA is for
storing binary data, particularly values that include NULL bytes.
These types have similar performance characteristics.
4.15.1) How do I create a serial/auto-incrementing field?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment