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
9b775726
Commit
9b775726
authored
Sep 04, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mention of bytea data type and escaping rules.
parent
b553cba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
doc/src/sgml/datatype.sgml
doc/src/sgml/datatype.sgml
+25
-2
No files found.
doc/src/sgml/datatype.sgml
View file @
9b775726
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.6
0 2001/08/31 01:55:25 ishii
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.6
1 2001/09/04 03:17:54 momjian
Exp $
-->
-->
<chapter id="datatype">
<chapter id="datatype">
...
@@ -83,6 +83,12 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.60 2001/08/31 01:55:25 is
...
@@ -83,6 +83,12 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.60 2001/08/31 01:55:25 is
<entry>rectangular box in 2D plane</entry>
<entry>rectangular box in 2D plane</entry>
</row>
</row>
<row>
<entry><type>bytea</type></entry>
<entry></entry>
<entry>binary data</entry>
</row>
<row>
<row>
<entry><type>character(<replaceable>n</replaceable>)</type></entry>
<entry><type>character(<replaceable>n</replaceable>)</type></entry>
<entry><type>char(<replaceable>n</replaceable>)</type></entry>
<entry><type>char(<replaceable>n</replaceable>)</type></entry>
...
@@ -782,7 +788,11 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
...
@@ -782,7 +788,11 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
<entry>text</entry>
<entry>text</entry>
<entry>Variable unlimited length</entry>
<entry>Variable unlimited length</entry>
</row>
</row>
</tbody>
<row>
<entry>bytea</entry>
<entry>binary data</entry>
</row>
</tbody>
</tgroup>
</tgroup>
</table>
</table>
...
@@ -829,6 +839,19 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
...
@@ -829,6 +839,19 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
standard, many other RDBMS packages have it as well.
standard, many other RDBMS packages have it as well.
</para>
</para>
<para>
The <type>bytea</type> data type allows storage of binary data,
specifically allowing storage of NULLs which are entered as
<literal>'\\000'</>. The first backslash is interpreted by the
single quotes, and the second is recognized by <type>bytea</> and
preceeds a three digit octal value. For a similar reason, a
backslash must be entered into a field as <literal>'\\\\'</> or
<literal>'\\134'</>. You may also have to escape line feeds and
carriage return if your interface automatically translates these. It
can store values of any length. <type>Bytea</> is a non-standard
data type.
</para>
<para>
<para>
The storage requirement for data of these types is 4 bytes plus
The storage requirement for data of these types is 4 bytes plus
the actual string, and in case of <type>character</type> plus the
the actual string, and in case of <type>character</type> plus the
...
...
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