1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpgtcl.sgml,v 1.38 2003/09/29 18 :18:35 momjian Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpgtcl.sgml,v 1.39 2003/10/31 00 :18:55 tgl Exp $
3
3
-->
4
4
5
5
<chapter id="pgtcl">
@@ -1217,7 +1217,7 @@ pg_lo_creat <parameter>conn</parameter> <parameter>mode</parameter>
1217
1217
<term><parameter>conn</parameter></term>
1218
1218
<listitem>
1219
1219
<para>
1220
- The handle of a database connection in which to create the large
1220
+ The handle of a connection to the database in which to create the large
1221
1221
object.
1222
1222
</para>
1223
1223
</listitem>
@@ -1284,8 +1284,8 @@ pg_lo_open <parameter>conn</parameter> <parameter>loid</parameter> <parameter>mo
1284
1284
1285
1285
<listitem>
1286
1286
<para>
1287
- The handle of a database connection in which the large object to
1288
- be opened exists.
1287
+ The handle of a connection to the database in which the large object
1288
+ exists.
1289
1289
</para>
1290
1290
</listitem>
1291
1291
</varlistentry>
@@ -1354,7 +1354,7 @@ pg_lo_close <parameter>conn</parameter> <parameter>descriptor</parameter>
1354
1354
<term><parameter>conn</parameter></term>
1355
1355
<listitem>
1356
1356
<para>
1357
- The handle of a database connection in which the large object
1357
+ The handle of a connection to the database in which the large object
1358
1358
exists.
1359
1359
</para>
1360
1360
</listitem>
@@ -1417,7 +1417,7 @@ pg_lo_read <parameter>conn</parameter> <parameter>descriptor</parameter> <parame
1417
1417
<term><parameter>conn</parameter></term>
1418
1418
<listitem>
1419
1419
<para>
1420
- The handle of a database connection in which the large object
1420
+ The handle of a connection to the database in which the large object
1421
1421
exists.
1422
1422
</para>
1423
1423
</listitem>
@@ -1458,7 +1458,9 @@ pg_lo_read <parameter>conn</parameter> <parameter>descriptor</parameter> <parame
1458
1458
<title>Return Value</title>
1459
1459
1460
1460
<para>
1461
- None
1461
+ The number of bytes actually read is returned; this could be less than
1462
+ the number requested if the end of the large object is reached first.
1463
+ In event of an error, the return value is negative.
1462
1464
</para>
1463
1465
</refsect1>
1464
1466
</refentry>
@@ -1499,7 +1501,7 @@ pg_lo_write <parameter>conn</parameter> <parameter>descriptor</parameter> <param
1499
1501
<term><parameter>conn</parameter></term>
1500
1502
<listitem>
1501
1503
<para>
1502
- The handle of a database connection in which the large object
1504
+ The handle of a connection to the database in which the large object
1503
1505
exists.
1504
1506
</para>
1505
1507
</listitem>
@@ -1519,7 +1521,8 @@ pg_lo_write <parameter>conn</parameter> <parameter>descriptor</parameter> <param
1519
1521
<term><parameter>buf</parameter></term>
1520
1522
<listitem>
1521
1523
<para>
1522
- The string to write to the large object (not a variable name).
1524
+ The string to write to the large object (not a variable name,
1525
+ but the value itself).
1523
1526
</para>
1524
1527
</listitem>
1525
1528
</varlistentry>
@@ -1528,7 +1531,8 @@ pg_lo_write <parameter>conn</parameter> <parameter>descriptor</parameter> <param
1528
1531
<term><parameter>len</parameter></term>
1529
1532
<listitem>
1530
1533
<para>
1531
- The maximum number of bytes to write.
1534
+ The maximum number of bytes to write. The number written will
1535
+ be the smaller of this value and the length of the string.
1532
1536
</para>
1533
1537
</listitem>
1534
1538
</varlistentry>
@@ -1539,7 +1543,9 @@ pg_lo_write <parameter>conn</parameter> <parameter>descriptor</parameter> <param
1539
1543
<title>Return Value</title>
1540
1544
1541
1545
<para>
1542
- None
1546
+ The number of bytes actually written is returned; this will ordinarily
1547
+ be the same as the number requested.
1548
+ In event of an error, the return value is negative.
1543
1549
</para>
1544
1550
</refsect1>
1545
1551
</refentry>
@@ -1580,7 +1586,7 @@ pg_lo_lseek <parameter>conn</parameter> <parameter>descriptor</parameter> <param
1580
1586
<term><parameter>conn</parameter></term>
1581
1587
<listitem>
1582
1588
<para>
1583
- The handle of a database connection in which the large object
1589
+ The handle of a connection to the database in which the large object
1584
1590
exists.
1585
1591
</para>
1586
1592
</listitem>
@@ -1664,7 +1670,7 @@ pg_lo_tell <parameter>conn</parameter> <parameter>descriptor</parameter>
1664
1670
1665
1671
<listitem>
1666
1672
<para>
1667
- The handle of a database connection in which the large object
1673
+ The handle of a connection to the database in which the large object
1668
1674
exists.
1669
1675
</para>
1670
1676
</listitem>
@@ -1727,7 +1733,7 @@ pg_lo_unlink <parameter>conn</parameter> <parameter>loid</parameter>
1727
1733
<term><parameter>conn</parameter></term>
1728
1734
<listitem>
1729
1735
<para>
1730
- The handle of a database connection in which the large object
1736
+ The handle of a connection to the database in which the large object
1731
1737
exists.
1732
1738
</para>
1733
1739
</listitem>
@@ -1788,7 +1794,7 @@ pg_lo_import <parameter>conn</parameter> <parameter>filename</parameter>
1788
1794
<term><parameter>conn</parameter></term>
1789
1795
<listitem>
1790
1796
<para>
1791
- The handle of a database connection in which to create the large
1797
+ The handle of a connection to the database in which to create the large
1792
1798
object.
1793
1799
</para>
1794
1800
</listitem>
@@ -1858,7 +1864,7 @@ pg_lo_export <parameter>conn</parameter> <parameter>loid</parameter> <parameter>
1858
1864
<term><parameter>conn</parameter></term>
1859
1865
<listitem>
1860
1866
<para>
1861
- The handle of a database connection in which the large object
1867
+ The handle of a connection to the database in which the large object
1862
1868
exists.
1863
1869
</para>
1864
1870
</listitem>
0 commit comments