@@ -92,7 +92,7 @@ test=# \COPY (select dump_statistic()) TO 'dump_stat.sql'
92
92
system catalog. It produces an <literal>INSERT</> statement
93
93
per each tuple of the
94
94
<link linkend="catalog-pg-statistic"><structname>pg_statistic</structname></link>,
95
- excluding the ones that do not relate to the tables in
95
+ excluding the ones that do not relate to the tables in the
96
96
<literal>schema_name</> schema.
97
97
</para>
98
98
</listitem>
@@ -141,8 +141,15 @@ test=# \COPY (select dump_statistic()) TO 'dump_stat.sql'
141
141
142
142
<listitem>
143
143
<para>
144
- Fetches the schema-qualified type name by type id <literal>typid</>.
144
+ Fetches the schema-qualified type name by type id <literal>typid</>. For example:
145
145
</para>
146
+ <screen>
147
+ test=# SELECT to_schema_qualified_operator('+(int,int)'::regoperator);
148
+ to_schema_qualified_operator
149
+ ------------------------------------------------
150
+ pg_catalog.+(pg_catalog.int4, pg_catalog.int4)
151
+ (1 row)
152
+ </screen>
146
153
</listitem>
147
154
</varlistentry>
148
155
@@ -171,8 +178,16 @@ test=# \COPY (select dump_statistic()) TO 'dump_stat.sql'
171
178
172
179
<listitem>
173
180
<para>
174
- Returns the element type of the given array as <literal>oid</>.
181
+ Returns the element type of the given array as <literal>oid</>. For example:
175
182
</para>
183
+ <screen>
184
+ test=# SELECT anyarray_elemtype(array_in('{1,2,3}', 'int'::regtype, -1));
185
+ anyarray_elemtype
186
+ -------------------
187
+ 23
188
+ (1 row)
189
+ </screen>
190
+
176
191
</listitem>
177
192
</varlistentry>
178
193
@@ -219,7 +234,7 @@ test=# \COPY (select dump_statistic()) TO 'dump_stat.sql'
219
234
<listitem>
220
235
<para>
221
236
Given a relation name <literal>relation</> and a column name
222
- <literal>col</>, returns the column type as <literal>text</>.
237
+ <literal>col</>, returns theschema-qualified column type as <literal>text</>.
223
238
</para>
224
239
</listitem>
225
240
</varlistentry>