Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd694260

Browse files
committed
Markup examples as examples.
1 parent4284002 commitd694260

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

‎doc/src/sgml/libpgtcl.sgml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,13 @@ in a BEGIN/END transaction block.
128128
<Sect1 id="libpgtcl-examples">
129129
<Title>Examples</Title>
130130

131-
<Para>
132-
Here's a small example of how to use the routines:
131+
<example>
132+
<title><application>pgtcl</application> Example Program</title>
133133

134-
<ProgramListing>
134+
<para>
135+
Here's a small example of how to use the routines:
136+
137+
<programlisting>
135138
# getDBs :
136139
# get the names of all the databases at a given host and port number
137140
# with the defaults being the localhost and port 5432
@@ -149,8 +152,8 @@ proc getDBs { {host "localhost"} {port "5432"} } {
149152
return $datnames
150153
}
151154
</ProgramListing>
152-
153-
</Para>
155+
</para>
156+
</example>
154157
</Sect1>
155158

156159
<Sect1 id="libpgtcl-ref">

‎doc/src/sgml/lobj.sgml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/lobj.sgml,v 1.20 2001/09/13 15:55:23 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/lobj.sgml,v 1.21 2001/09/15 16:08:59 petere Exp $
33
-->
44

55
<chapter id="largeObjects">
@@ -254,7 +254,7 @@ Oid lo_unlink(PGconn *<replaceable class="parameter">conn</replaceable>, Oid lob
254254
</sect1>
255255

256256
<sect1 id="lo-funcs">
257-
<title>Builtinregistered functions</title>
257+
<title>Server-side Built-inFunctions</title>
258258

259259
<para>
260260
There are two built-in registered functions, <acronym>lo_import</acronym>
@@ -295,10 +295,11 @@ SELECT lo_export(image.raster, '/tmp/motd') from image
295295
</para>
296296
</sect1>
297297

298-
<sect1 id="lo-sample">
299-
<title>Sample Program</title>
298+
<sect1 id="lo-example">
299+
<title>Example Program</title>
300300

301-
<para>
301+
<example>
302+
<title>Large Objects with <application>Libpq</application> Example Program</title>
302303
<programlisting>
303304
/*--------------------------------------------------------------
304305
*
@@ -320,8 +321,8 @@ SELECT lo_export(image.raster, '/tmp/motd') from image
320321
#define BUFSIZE 1024
321322

322323
/*
323-
* importFile * import file &quot;in_filename&quot; into database as large object &quot;lob
324-
jOid&quot;
324+
* importFile
325+
* import file &quot;in_filename&quot; into database as large object &quot;lobjOid&quot;
325326
*
326327
*/
327328
Oid
@@ -552,7 +553,7 @@ main(int argc, char **argv)
552553
exit(0);
553554
}
554555
</programlisting>
555-
</para>
556+
</example>
556557

557558
</sect1>
558559
</chapter>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp