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
d6942607
Commit
d6942607
authored
Sep 15, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Markup examples as examples.
parent
4284002d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
13 deletions
+17
-13
doc/src/sgml/libpgtcl.sgml
doc/src/sgml/libpgtcl.sgml
+8
-5
doc/src/sgml/lobj.sgml
doc/src/sgml/lobj.sgml
+9
-8
No files found.
doc/src/sgml/libpgtcl.sgml
View file @
d6942607
...
...
@@ -128,10 +128,13 @@ in a BEGIN/END transaction block.
<Sect1 id="libpgtcl-examples">
<Title>Examples</Title>
<Para
>
Here's a small example of how to use the routines:
<example
>
<title><application>pgtcl</application> Example Program</title>
<ProgramListing>
<para>
Here's a small example of how to use the routines:
<programlisting>
# getDBs :
# get the names of all the databases at a given host and port number
# with the defaults being the localhost and port 5432
...
...
@@ -149,8 +152,8 @@ proc getDBs { {host "localhost"} {port "5432"} } {
return $datnames
}
</ProgramListing>
</Para
>
</para>
</example
>
</Sect1>
<Sect1 id="libpgtcl-ref">
...
...
doc/src/sgml/lobj.sgml
View file @
d6942607
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/lobj.sgml,v 1.2
0 2001/09/13 15:55:23
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/lobj.sgml,v 1.2
1 2001/09/15 16:08:59
petere Exp $
-->
<chapter id="largeObjects">
...
...
@@ -254,7 +254,7 @@ Oid lo_unlink(PGconn *<replaceable class="parameter">conn</replaceable>, Oid lob
</sect1>
<sect1 id="lo-funcs">
<title>
Built in registered f
unctions</title>
<title>
Server-side Built-in F
unctions</title>
<para>
There are two built-in registered functions, <acronym>lo_import</acronym>
...
...
@@ -295,10 +295,11 @@ SELECT lo_export(image.raster, '/tmp/motd') from image
</para>
</sect1>
<sect1 id="lo-
s
ample">
<title>
S
ample Program</title>
<sect1 id="lo-
ex
ample">
<title>
Ex
ample Program</title>
<para>
<example>
<title>Large Objects with <application>Libpq</application> Example Program</title>
<programlisting>
/*--------------------------------------------------------------
*
...
...
@@ -320,8 +321,8 @@ SELECT lo_export(image.raster, '/tmp/motd') from image
#define BUFSIZE 1024
/*
* importFile
* import file "in_filename" into database as large object "lob
jOid"
* importFile
* import file "in_filename" into database as large object "lob
jOid"
*
*/
Oid
...
...
@@ -552,7 +553,7 @@ main(int argc, char **argv)
exit(0);
}
</programlisting>
</
para
>
</
example
>
</sect1>
</chapter>
...
...
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