1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.192 2007/06/28 06:40:16 neilc Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.193 2007/07/10 00:21:31 tgl Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -1916,8 +1916,8 @@ lo_import 152801
1916
1916
<para>
1917
1917
A pattern that contains a dot (<literal>.</>) is interpreted as a schema
1918
1918
name pattern followed by an object name pattern. For example,
1919
- <literal>\dt foo*.bar*</> displays all tables whose table name
1920
- starts with <literal>bar</> that are in schemas whose schema name
1919
+ <literal>\dt foo*.* bar*</> displays all tables whose table name
1920
+ includes <literal>bar</> that are in schemas whose schema name
1921
1921
starts with <literal>foo</>. When no dot appears, then the pattern
1922
1922
matches only objects that are visible in the current schema search path.
1923
1923
Again, a dot within double quotes loses its special meaning and is matched
@@ -1930,17 +1930,20 @@ lo_import 152801
1930
1930
expression special characters work as specified in
1931
1931
<xref linkend="functions-posix-regexp">, except for <literal>.</> which
1932
1932
is taken as a separator as mentioned above, <literal>*</> which is
1933
- translated to the regular-expression notation <literal>.*</>, and
1934
- <literal>?</> which is translated to <literal>.</>. You can emulate
1933
+ translated to the regular-expression notation <literal>.*</>,
1934
+ <literal>?</> which is translated to <literal>.</>, and
1935
+ <literal>$</> which is matched literally. You can emulate
1935
1936
these pattern characters at need by writing
1936
1937
<literal>?</> for <literal>.</>,
1937
1938
<literal>(<replaceable class="parameter">R</replaceable>+|)</literal> for
1938
1939
<literal><replaceable class="parameter">R</replaceable>*</literal>, or
1939
1940
<literal>(<replaceable class="parameter">R</replaceable>|)</literal> for
1940
1941
<literal><replaceable class="parameter">R</replaceable>?</literal>.
1941
- Remember that the pattern must match the whole name, unlike the usual
1942
- interpretation of regular expressions; write <literal>*</> at the beginning
1943
- and/or end if you don't wish the pattern to be anchored.
1942
+ <literal>$</> is not needed as a regular-expression character since
1943
+ the pattern must match the whole name, unlike the usual
1944
+ interpretation of regular expressions (in other words, <literal>$</>
1945
+ is automatically appended to your pattern). Write <literal>*</> at the
1946
+ beginning and/or end if you don't wish the pattern to be anchored.
1944
1947
Note that within double quotes, all regular expression special characters
1945
1948
lose their special meanings and are matched literally. Also, the regular
1946
1949
expression special characters are matched literally in operator name
0 commit comments