diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml
index 34f1b496eb..5461924b36 100644
--- a/doc/src/sgml/ref/copy.sgml
+++ b/doc/src/sgml/ref/copy.sgml
@@ -1,5 +1,5 @@
@@ -708,6 +708,18 @@ COPY country FROM '/usr1/proj/bray/sql/country_data';
+
+ To copy into a file just the countries whose names start with 'A'
+ using a temporary table which is automatically deleted:
+
+BEGIN;
+CREATE TEMP TABLE a_list_COUNTRIES AS
+ SELECT * FROM country WHERE country_name LIKE 'A%';
+COPY a_list_countries TO '/usr1/proj/bray/sql/a_list_countries.copy';
+ROLLBACK;
+
+
+
Here is a sample of data suitable for copying into a table from
STDIN: