From d694260765594c841c80bcf5470dc581bc6621ab Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 15 Sep 2001 16:08:59 +0000 Subject: [PATCH] Markup examples as examples. --- doc/src/sgml/libpgtcl.sgml | 13 ++++++++----- doc/src/sgml/lobj.sgml | 17 +++++++++-------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/doc/src/sgml/libpgtcl.sgml b/doc/src/sgml/libpgtcl.sgml index f40e9c491a..a9ee83a9f9 100644 --- a/doc/src/sgml/libpgtcl.sgml +++ b/doc/src/sgml/libpgtcl.sgml @@ -128,10 +128,13 @@ in a BEGIN/END transaction block. Examples - -Here's a small example of how to use the routines: + + <application>pgtcl</application> Example Program - + + Here's a small example of how to use the routines: + + # 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 } - - + + diff --git a/doc/src/sgml/lobj.sgml b/doc/src/sgml/lobj.sgml index 475fe2d5f2..6ba725d360 100644 --- a/doc/src/sgml/lobj.sgml +++ b/doc/src/sgml/lobj.sgml @@ -1,5 +1,5 @@ @@ -254,7 +254,7 @@ Oid lo_unlink(PGconn *conn, Oid lob -Built in registered functions +Server-side Built-in Functions There are two built-in registered functions, lo_import @@ -295,10 +295,11 @@ SELECT lo_export(image.raster, '/tmp/motd') from image - -Sample Program + +Example Program - + + Large Objects with <application>Libpq</application> Example Program /*-------------------------------------------------------------- * @@ -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 "lobjOid" * */ Oid @@ -552,7 +553,7 @@ main(int argc, char **argv) exit(0); } - + -- 2.11.0