Skip to content

Commit adf2cb5

Browse files
funbringervbwagner
authored andcommitted
\copy example
1 parent b901ae2 commit adf2cb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/src/sgml/dump_stat.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ ins as (
6363
AND to_attnum(relname, attname) IS NOT NULL
6464
AND to_atttype(relname, attname) = atttype)
6565
INSERT INTO pg_catalog.pg_statistic SELECT * FROM ins;
66+
</screen>
67+
</para>
68+
69+
<para>
70+
Produced statements could be saved to a file, e.g.
71+
<screen>
72+
\COPY (select dump_statistic()) TO 'dump_stat.sql'
6673
</screen>
6774
</para>
6875
</listitem>

0 commit comments

Comments
 (0)