aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-06-25 01:45:58 +0000
committerBruce Momjian <bruce@momjian.us>2002-06-25 01:45:58 +0000
commit0b584830f0efef400ef26da58e5c17f14cece3e7 (patch)
treeee4148746fac76beaceb33422e17c9b210fa619c
parent6918df16a5483600fb0466b96f813ed5b6927fd8 (diff)
downloadpostgresql-0b584830f0efef400ef26da58e5c17f14cece3e7.tar.gz
postgresql-0b584830f0efef400ef26da58e5c17f14cece3e7.zip
Update FAQ.
-rw-r--r--doc/FAQ11
-rw-r--r--doc/src/FAQ/FAQ.html7
2 files changed, 10 insertions, 8 deletions
diff --git a/doc/FAQ b/doc/FAQ
index a1f9d150ba7..0cc05b3d3b7 100644
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
Frequently Asked Questions (FAQ) for PostgreSQL
- Last updated: Sun Jun 23 17:16:13 EDT 2002
+ Last updated: Mon Jun 24 21:45:50 EDT 2002
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
@@ -743,13 +743,14 @@
using an index with ORDER BY and LIMIT:
SELECT col
FROM tab
- ORDER BY col
+ ORDER BY col [ DESC ]
LIMIT 1
When using wild-card operators such as LIKE or ~, indexes can only be
- used if the beginning of the search is anchored to the start of the
- string. Therefore, to use indexes, LIKE patterns must not start with
- %, and ~(regular expression) patterns must start with ^.
+ used if the default C local is used during initdb and the beginning of
+ the search is anchored to the start of the string. Therefore, to use
+ indexes, LIKE patterns must not start with %, and ~(regular
+ expression) patterns must start with ^.
4.9) How do I see how the query optimizer is evaluating my query?
diff --git a/doc/src/FAQ/FAQ.html b/doc/src/FAQ/FAQ.html
index b6de1a6d499..3240a406850 100644
--- a/doc/src/FAQ/FAQ.html
+++ b/doc/src/FAQ/FAQ.html
@@ -14,7 +14,7 @@
alink="#0000ff">
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
- <P>Last updated: Sun Jun 23 17:16:13 EDT 2002</P>
+ <P>Last updated: Mon Jun 24 21:45:50 EDT 2002</P>
<P>Current maintainer: Bruce Momjian (<A href=
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -946,12 +946,13 @@
<PRE>
SELECT col
FROM tab
- ORDER BY col
+ ORDER BY col [ DESC ]
LIMIT 1
</PRE>
<P>When using wild-card operators such as <SMALL>LIKE</SMALL> or
- <I>~</I>, indexes can only be used if the beginning of the search
+ <I>~</I>, indexes can only be used if the default C local is used
+during initdb and the beginning of the search
is anchored to the start of the string. Therefore, to use indexes,
<SMALL>LIKE</SMALL> patterns must not start with <I>%</I>, and
<I>~</I>(regular expression) patterns must start with <I>^</I>.</P>