@@ -14341,8 +14341,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14341
14341
</entry>
14342
14342
<entry><type>bigint</type></entry>
14343
14343
<entry>
14344
- Total disk space used by indexes attached to the table with the
14345
- specified OID or name
14344
+ Total disk space used by indexes attached to the specified table
14346
14345
</entry>
14347
14346
</row>
14348
14347
<row>
@@ -14353,7 +14352,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14353
14352
<entry>
14354
14353
Disk space used by the specified fork (<literal>'main'</literal>,
14355
14354
<literal>'fsm'</literal> or <literal>'vm'</>)
14356
- of the table or index with the specified OID or name
14355
+ of the specified table or index
14357
14356
</entry>
14358
14357
</row>
14359
14358
<row>
@@ -14378,9 +14377,8 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14378
14377
</entry>
14379
14378
<entry><type>bigint</type></entry>
14380
14379
<entry>
14381
- Disk space used by the table with the specified OID or name,
14382
- excluding indexes (but including TOAST, free space map, and visibility
14383
- map)
14380
+ Disk space used by the specified table, excluding indexes
14381
+ (but including TOAST, free space map, and visibility map)
14384
14382
</entry>
14385
14383
</row>
14386
14384
<row>
@@ -14403,7 +14401,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14403
14401
</entry>
14404
14402
<entry><type>bigint</type></entry>
14405
14403
<entry>
14406
- Total disk space used by the table with the specified OID or name ,
14404
+ Total disk space used by the specified table ,
14407
14405
including all indexes and <acronym>TOAST</> data
14408
14406
</entry>
14409
14407
</row>
@@ -14463,6 +14461,18 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14463
14461
appropriate.
14464
14462
</para>
14465
14463
14464
+ <para>
14465
+ The functions above that operate on tables or indexes accept a
14466
+ <type>regclass</> argument, which is simply the OID of the table or index
14467
+ in the <structname>pg_class</> system catalog. You do not have to look up
14468
+ the OID by hand, however, since the <type>regclass</> data type's input
14469
+ converter will do the work for you. Just write the table name enclosed in
14470
+ single quotes so that it looks like a literal constant. For compatibility
14471
+ with the handling of ordinary <acronym>SQL</acronym> names, the string
14472
+ will be converted to lower case unless it contains double quotes around
14473
+ the table name.
14474
+ </para>
14475
+
14466
14476
<para>
14467
14477
The functions shown in <xref linkend="functions-admin-dblocation"> assist
14468
14478
in identifying the specific disk files associated with database objects.
@@ -14490,7 +14500,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14490
14500
</entry>
14491
14501
<entry><type>oid</type></entry>
14492
14502
<entry>
14493
- Filenode number of the relation with the specified OID or name
14503
+ Filenode number of the specified relation
14494
14504
</entry>
14495
14505
</row>
14496
14506
<row>
@@ -14499,7 +14509,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14499
14509
</entry>
14500
14510
<entry><type>text</type></entry>
14501
14511
<entry>
14502
- File path name of the relation with the specified OID or name
14512
+ File path name of the specified relation
14503
14513
</entry>
14504
14514
</row>
14505
14515
</tbody>
@@ -14610,7 +14620,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
14610
14620
can be used to read a file in a specified encoding:
14611
14621
<programlisting>
14612
14622
SELECT convert_from(pg_read_binary_file('file_in_utf8.txt'), 'UTF8');
14613
- </programlisting>
14623
+ </programlisting>
14614
14624
</para>
14615
14625
14616
14626
<indexterm>
0 commit comments