提交 be88b0d8 编写于 作者: B Bruce Momjian

Update FAQ.

上级 08dcf0a6
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
</CENTER> </CENTER>
<A href="#2.1">2.1</A>) Are there <SMALL>ODBC</SMALL> drivers for <A href="#2.1">2.1</A>) Are there <SMALL>ODBC</SMALL> drivers for
PostgreSQL?<BR> PostgreSQL?<BR>
<A href="#2.2">2.2</A>) What tools are available for use PostgreSQL <A href="#2.2">2.2</A>) What tools are available for use
with Web pages?<BR> PostgreSQL with Web pages?<BR>
<A href="#2.3">2.3</A>) Does PostgreSQL have a graphical user <A href="#2.3">2.3</A>) Does PostgreSQL have a graphical user
interface? A report generator? An embedded query language interface? A report generator? An embedded query language
interface?<BR> interface?<BR>
...@@ -103,16 +103,16 @@ ...@@ -103,16 +103,16 @@
database?<BR> database?<BR>
<A href="#4.7">4.7</A>) How much database disk space is required <A href="#4.7">4.7</A>) How much database disk space is required
to store data from a typical text file?<BR> to store data from a typical text file?<BR>
<A href="#4.8">4.8</A>) How do I find out what tables or <A href="#4.8">4.8</A>) How do I find out what tables or indexes
indexes are defined in the database?<BR> are defined in the database?<BR>
<A href="#4.9">4.9</A>) My queries are slow or don't make use of <A href="#4.9">4.9</A>) My queries are slow or don't make use of
the indexes. Why?<BR> the indexes. Why?<BR>
<A href="#4.10">4.10</A>) How do I see how the query optimizer is <A href="#4.10">4.10</A>) How do I see how the query optimizer is
evaluating my query?<BR> evaluating my query?<BR>
<A href="#4.11">4.11</A>) What is an R-tree index?<BR> <A href="#4.11">4.11</A>) What is an R-tree index?<BR>
<A href="#4.12">4.12</A>) What is the Genetic Query Optimizer?<BR> <A href="#4.12">4.12</A>) What is the Genetic Query Optimizer?<BR>
<A href="#4.13">4.13</A>) How do I perform regular expression searches <A href="#4.13">4.13</A>) How do I perform regular expression
and case-insensitive regular expression searches?<BR> searches and case-insensitive regular expression searches?<BR>
<A href="#4.14">4.14</A>) In a query, how do I detect if a field <A href="#4.14">4.14</A>) In a query, how do I detect if a field
is <SMALL>NULL</SMALL>?<BR> is <SMALL>NULL</SMALL>?<BR>
<A href="#4.15">4.15</A>) What is the difference between the <A href="#4.15">4.15</A>) What is the difference between the
...@@ -198,8 +198,9 @@ ...@@ -198,8 +198,9 @@
<P>PostgreSQL Data Base Management System</P> <P>PostgreSQL Data Base Management System</P>
<P>Portions copyright (c) 1996-2001, PostgreSQL Global Development Group Portions <P>Portions copyright (c) 1996-2001, PostgreSQL Global Development
Copyright (c) 1994-6 Regents of the University of California</P> Group Portions Copyright (c) 1994-6 Regents of the University of
California</P>
<P>Permission to use, copy, modify, and distribute this software <P>Permission to use, copy, modify, and distribute this software
and its documentation for any purpose, without fee, and without a and its documentation for any purpose, without fee, and without a
...@@ -499,8 +500,8 @@ ...@@ -499,8 +500,8 @@
"mailto:postgres95@openlink.co.uk">postgres95@openlink.co.uk</A>.</P> "mailto:postgres95@openlink.co.uk">postgres95@openlink.co.uk</A>.</P>
<P>See also the <A href= <P>See also the <A href=
"http://www.PostgreSQL.org/users-lounge/docs/programmer/odbc.htm">ODBC chapter "http://www.PostgreSQL.org/users-lounge/docs/programmer/odbc.htm">ODBC
of the Programmer's Guide</A>.</P> chapter of the Programmer's Guide</A>.</P>
<H4><A name="2.2">2.2</A>) What tools are available for using <H4><A name="2.2">2.2</A>) What tools are available for using
PostgreSQL with Web pages?</H4> PostgreSQL with Web pages?</H4>
...@@ -839,16 +840,16 @@ Maximum number of columns in a table? 250-1600 depending on column types ...@@ -839,16 +840,16 @@ Maximum number of columns in a table? 250-1600 depending on column types
Maximum number of indexes on a table? unlimited Maximum number of indexes on a table? unlimited
</PRE> </PRE>
Of course, these are not actually unlimited, but limited to Of course, these are not actually unlimited, but limited to
available disk space and memory/swap space. Performance may available disk space and memory/swap space. Performance may suffer
suffer when these values get unusually large. when these values get unusually large.
<P>The maximum table size of 16TB does not require large file <P>The maximum table size of 16TB does not require large file
support from the operating system. Large tables are stored support from the operating system. Large tables are stored as
as multiple 1GB files. multiple 1GB files.</P>
<P>The maximum table size and maximum number of columns can be <P>The maximum table size and maximum number of columns can be
increased by a factor of four if the default block size is increased by a factor of four if the default block size is
increased to 32k. increased to 32k.</P>
<H4><A name="4.7">4.7</A>) How much database disk space is required <H4><A name="4.7">4.7</A>) How much database disk space is required
to store data from a typical text file?<BR> to store data from a typical text file?<BR>
...@@ -883,8 +884,8 @@ Maximum number of indexes on a table? unlimited ...@@ -883,8 +884,8 @@ Maximum number of indexes on a table? unlimited
<P>Indexes do not require as much overhead, but do contain the data <P>Indexes do not require as much overhead, but do contain the data
that is being indexed, so they can be large also.</P> that is being indexed, so they can be large also.</P>
<H4><A name="4.8">4.8</A>) How do I find out what tables or <H4><A name="4.8">4.8</A>) How do I find out what tables or indexes
indexes are defined in the database?</H4> are defined in the database?</H4>
<P><I>psql</I> has a variety of backslash commands to show such <P><I>psql</I> has a variety of backslash commands to show such
information. Use \? to see them.</P> information. Use \? to see them.</P>
...@@ -966,8 +967,8 @@ Maximum number of indexes on a table? unlimited ...@@ -966,8 +967,8 @@ Maximum number of indexes on a table? unlimited
<P>The <I>~</I> operator does regular expression matching, and <P>The <I>~</I> operator does regular expression matching, and
<I>~*</I> does case-insensitive regular expression matching. The <I>~*</I> does case-insensitive regular expression matching. The
case-insensitive variant of <SMALL>LIKE</SMALL> case-insensitive variant of <SMALL>LIKE</SMALL> is called
is called <SMALL>ILIKE</SMALL>.</P> <SMALL>ILIKE</SMALL>.</P>
<H4><A name="4.14">4.14</A>) In a query, how do I detect if a field <H4><A name="4.14">4.14</A>) In a query, how do I detect if a field
is <SMALL>NULL</SMALL>?</H4> is <SMALL>NULL</SMALL>?</H4>
...@@ -1223,13 +1224,14 @@ BYTEA bytea variable-length byte array (null-safe) ...@@ -1223,13 +1224,14 @@ BYTEA bytea variable-length byte array (null-safe)
SELECT * SELECT *
FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col); FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
</PRE> </PRE>
or or
<PRE> <PRE>
SELECT * SELECT *
FROM t1 LEFT OUTER JOIN t2 USING (col); FROM t1 LEFT OUTER JOIN t2 USING (col);
</PRE> </PRE>
These identical queries join t1.col to t2.col, and also return any
unjoined rows in t1 (those with no match in t2). A <P>These identical queries join t1.col to t2.col, and also return
any unjoined rows in t1 (those with no match in t2). A
<SMALL>RIGHT</SMALL> join would add unjoined rows of t2. A <SMALL>RIGHT</SMALL> join would add unjoined rows of t2. A
<SMALL>FULL</SMALL> join would return the matched rows plus all <SMALL>FULL</SMALL> join would return the matched rows plus all
unjoined rows from t1 and t2. The word <SMALL>OUTER</SMALL> is unjoined rows from t1 and t2. The word <SMALL>OUTER</SMALL> is
...@@ -1242,7 +1244,7 @@ or ...@@ -1242,7 +1244,7 @@ or
joining <I>tab1</I> and <I>tab2,</I> the following query does an joining <I>tab1</I> and <I>tab2,</I> the following query does an
<I>outer</I> join of the two tables:<BR> <I>outer</I> join of the two tables:<BR>
<BR> <BR>
</P>
<PRE> <PRE>
SELECT tab1.col1, tab2.col2 SELECT tab1.col1, tab2.col2
FROM tab1, tab2 FROM tab1, tab2
...@@ -1296,3 +1298,4 @@ or ...@@ -1296,3 +1298,4 @@ or
compiler compute the dependencies automatically.</P> compiler compute the dependencies automatically.</P>
</BODY> </BODY>
</HTML> </HTML>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册