summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian2024-11-01 19:54:16 +0000
committerBruce Momjian2024-11-01 19:54:16 +0000
commite1a76db1a880c2e80ae96c40a31b0ee589e06562 (patch)
treec5e191f1d135d7a6d5cd8c7f08e705384f03be27 /doc/src
parent4200fea80e79851994b8eb5a64a3d4420456c977 (diff)
doc: improve tablespace example query and link to helper funcs.
Reported-by: Agustín Discussion: https://postgr.es/m/[email protected] Backpatch-through: master
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/manage-ag.sgml11
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/src/sgml/manage-ag.sgml b/doc/src/sgml/manage-ag.sgml
index a8a70a1fc42..fe4cb4410cd 100644
--- a/doc/src/sgml/manage-ag.sgml
+++ b/doc/src/sgml/manage-ag.sgml
@@ -530,9 +530,11 @@ CREATE TABLE foo(i int);
<link linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname>
</link> system catalog, for example
<synopsis>
-SELECT spcname FROM pg_tablespace;
+SELECT spcname, spcowner::regrole, pg_tablespace_location(oid) FROM pg_tablespace;
</synopsis>
- The <xref linkend="app-psql"/> program's <literal>\db</literal> meta-command
+ It is possible to find which databases use which tablespaces;
+ see <xref linkend="functions-info-catalog-table"/>. The <xref
+ linkend="app-psql"/> program's <literal>\db</literal> meta-command
is also useful for listing the existing tablespaces.
</para>
@@ -541,10 +543,7 @@ SELECT spcname FROM pg_tablespace;
point to each of the non-built-in tablespaces defined in the cluster.
Although not recommended, it is possible to adjust the tablespace
layout by hand by redefining these links. Under no circumstances perform
- this operation while the server is running. Note that in PostgreSQL 9.1
- and earlier you will also need to update the <structname>pg_tablespace</structname>
- catalog with the new locations. (If you do not, <literal>pg_dump</literal> will
- continue to output the old tablespace locations.)
+ this operation while the server is running.
</para>
</sect1>