mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Update FAQ.
This commit is contained in:
60
doc/FAQ
60
doc/FAQ
@ -1,24 +1,15 @@
|
|||||||
|
|
||||||
Frequently Asked Questions (FAQ) for PostgreSQL
|
Frequently Asked Questions (FAQ) for PostgreSQL
|
||||||
|
|
||||||
Last updated: Fri Jun 2 11:32:13 EDT 2000
|
Last updated: Wed Jul 26 13:33:21 EDT 2000
|
||||||
|
|
||||||
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
||||||
|
|
||||||
The most recent version of this document can be viewed at
|
The most recent version of this document can be viewed at
|
||||||
http://www.PostgreSQL.org/docs/faq-english.html.
|
http://www.PostgreSQL.org/docs/faq-english.html.
|
||||||
|
|
||||||
Linux-specific questions are answered in
|
Platform-specific questions are answered at
|
||||||
http://www.PostgreSQL.org/docs/faq-linux.html.
|
http://www.PostgreSQL.org/docs/.
|
||||||
|
|
||||||
HPUX-specific questions are answered in
|
|
||||||
http://www.PostgreSQL.org/docs/faq-hpux.html.
|
|
||||||
|
|
||||||
Solaris-specific questions are answered in
|
|
||||||
http://www.PostgreSQL.org/docs/faq-solaris.html.
|
|
||||||
|
|
||||||
Irix-specific questions are answered in
|
|
||||||
http://www.PostgreSQL.org/docs/faq-irix.html.
|
|
||||||
_________________________________________________________________
|
_________________________________________________________________
|
||||||
|
|
||||||
General Questions
|
General Questions
|
||||||
@ -86,7 +77,7 @@
|
|||||||
4.11) What is an R-tree index?
|
4.11) What is an R-tree index?
|
||||||
4.12) What is Genetic Query Optimization?
|
4.12) What is Genetic Query Optimization?
|
||||||
4.13) How do I do regular expression searches and case-insensitive
|
4.13) How do I do regular expression searches and case-insensitive
|
||||||
regular expression searching?
|
regular expression searches?
|
||||||
4.14) In a query, how do I detect if a field is NULL?
|
4.14) In a query, how do I detect if a field is NULL?
|
||||||
4.15) What is the difference between the various character types?
|
4.15) What is the difference between the various character types?
|
||||||
4.16.1) How do I create a serial/auto-incrementing field?
|
4.16.1) How do I create a serial/auto-incrementing field?
|
||||||
@ -127,11 +118,11 @@
|
|||||||
replaces the PostQuel query language with an extended subset of SQL.
|
replaces the PostQuel query language with an extended subset of SQL.
|
||||||
PostgreSQL is free and the complete source is available.
|
PostgreSQL is free and the complete source is available.
|
||||||
|
|
||||||
PostgreSQL development is being performed by a team of Internet
|
PostgreSQL development is performed by a team of Internet developers
|
||||||
developers who all subscribe to the PostgreSQL development mailing
|
who all subscribe to the PostgreSQL development mailing list. The
|
||||||
list. The current coordinator is Marc G. Fournier
|
current coordinator is Marc G. Fournier (scrappy@PostgreSQL.org). (See
|
||||||
(scrappy@PostgreSQL.org). (See below on how to join). This team is now
|
below on how to join). This team is now responsible for all
|
||||||
responsible for all development of PostgreSQL.
|
development of PostgreSQL.
|
||||||
|
|
||||||
The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
|
The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
|
||||||
others have contributed to the porting, testing, debugging and
|
others have contributed to the porting, testing, debugging and
|
||||||
@ -214,8 +205,8 @@
|
|||||||
|
|
||||||
1.6) Where can I get support?
|
1.6) Where can I get support?
|
||||||
|
|
||||||
There is no official support for PostgreSQL from the University of
|
There is no support for PostgreSQL from the University of California,
|
||||||
California, Berkeley. It is maintained through volunteer effort.
|
Berkeley. It is maintained through volunteer effort.
|
||||||
|
|
||||||
The main mailing list is: pgsql-general@PostgreSQL.org. It is
|
The main mailing list is: pgsql-general@PostgreSQL.org. It is
|
||||||
available for discussion of matters pertaining to PostgreSQL. To
|
available for discussion of matters pertaining to PostgreSQL. To
|
||||||
@ -414,8 +405,7 @@
|
|||||||
For web integration, PHP is an excellent interface. It is at
|
For web integration, PHP is an excellent interface. It is at
|
||||||
http://www.php.net
|
http://www.php.net
|
||||||
|
|
||||||
PHP is great for simple stuff, but for more complex cases, many use
|
For complex cases, many use the perl interface and CGI.pm.
|
||||||
the perl interface and CGI.pm.
|
|
||||||
|
|
||||||
A WWW gateway based on WDB using perl can be downloaded from
|
A WWW gateway based on WDB using perl can be downloaded from
|
||||||
http://www.eol.ists.ca/~dunlop/wdb-p95
|
http://www.eol.ists.ca/~dunlop/wdb-p95
|
||||||
@ -433,15 +423,15 @@
|
|||||||
2.4) What languages are available to communicate with PostgreSQL?
|
2.4) What languages are available to communicate with PostgreSQL?
|
||||||
|
|
||||||
We have:
|
We have:
|
||||||
* C(libpq)
|
* C (libpq)
|
||||||
* C++(libpq++)
|
* C++ (libpq++)
|
||||||
* Embedded C(ecpg)
|
* Embedded C (ecpg)
|
||||||
* Java(jdbc)
|
* Java (jdbc)
|
||||||
* Perl(perl5)
|
* Perl (perl5)
|
||||||
* ODBC(odbc)
|
* ODBC (odbc)
|
||||||
* Python(PyGreSQL)
|
* Python (PyGreSQL)
|
||||||
* TCL(libpgtcl)
|
* TCL (libpgtcl)
|
||||||
* C Easy API(libpgeasy)
|
* C Easy API (libpgeasy)
|
||||||
* Embedded HTML (PHP from http://www.php.net)
|
* Embedded HTML (PHP from http://www.php.net)
|
||||||
_________________________________________________________________
|
_________________________________________________________________
|
||||||
|
|
||||||
@ -632,9 +622,9 @@
|
|||||||
requires more space than the backend's -S parameter allows, then
|
requires more space than the backend's -S parameter allows, then
|
||||||
temporary files are created to hold the extra data.
|
temporary files are created to hold the extra data.
|
||||||
|
|
||||||
The temp files should be deleted automatically, but might not if a
|
The temporary files should be deleted automatically, but might not if
|
||||||
backend crashes during a sort. If you have no backends running at the
|
a backend crashes during a sort. If you have no backends running at
|
||||||
time, it is safe to delete the pg_tempNNN.NN files.
|
the time, it is safe to delete the pg_tempNNN.NN files.
|
||||||
_________________________________________________________________
|
_________________________________________________________________
|
||||||
|
|
||||||
Operational Questions
|
Operational Questions
|
||||||
@ -796,7 +786,7 @@ Maximum number of indexes on a table? unlimited
|
|||||||
join queries through non-exhaustive search.
|
join queries through non-exhaustive search.
|
||||||
|
|
||||||
4.13) How do I do regular expression searches and case-insensitive regular
|
4.13) How do I do regular expression searches and case-insensitive regular
|
||||||
expression searching?
|
expression searches?
|
||||||
|
|
||||||
The ~ operator does regular-expression matching, and ~* does
|
The ~ operator does regular-expression matching, and ~* does
|
||||||
case-insensitive regular-expression matching. There is no
|
case-insensitive regular-expression matching. There is no
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Frequently Asked Questions (FAQ) for PostgreSQL
|
Frequently Asked Questions (FAQ) for PostgreSQL
|
||||||
</H1>
|
</H1>
|
||||||
<P>
|
<P>
|
||||||
Last updated: Fri Jun 2 11:32:13 EDT 2000
|
Last updated: Wed Jul 26 13:33:21 EDT 2000
|
||||||
<P>
|
<P>
|
||||||
Current maintainer: Bruce Momjian (<A
|
Current maintainer: Bruce Momjian (<A
|
||||||
HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
|
HREF="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR><P>
|
||||||
@ -16,17 +16,8 @@ The most recent version of this document can be viewed at
|
|||||||
<A HREF="http://www.Postgresql.org/docs/faq-english.html">
|
<A HREF="http://www.Postgresql.org/docs/faq-english.html">
|
||||||
http://www.PostgreSQL.org/docs/faq-english.html</A>.<P>
|
http://www.PostgreSQL.org/docs/faq-english.html</A>.<P>
|
||||||
|
|
||||||
Linux-specific questions are answered in <A
|
Platform-specific questions are answered at <A
|
||||||
HREF="http://www.PostgreSQL.org/docs/faq-linux.html">http://www.PostgreSQL.org/docs/faq-linux.html</A>.<P>
|
HREF="http://www.PostgreSQL.org/docs/">http://www.PostgreSQL.org/docs/</A>.<P>
|
||||||
|
|
||||||
HPUX-specific questions are answered in <A
|
|
||||||
HREF="http://www.PostgreSQL.org/docs/faq-hpux.html">http://www.PostgreSQL.org/docs/faq-hpux.html</A>.<P>
|
|
||||||
|
|
||||||
Solaris-specific questions are answered in <A
|
|
||||||
HREF="http://www.PostgreSQL.org/docs/faq-solaris.html">http://www.PostgreSQL.org/docs/faq-solaris.html</A>.<P>
|
|
||||||
|
|
||||||
Irix-specific questions are answered in <A
|
|
||||||
HREF="http://www.PostgreSQL.org/docs/faq-irix.html">http://www.PostgreSQL.org/docs/faq-irix.html</A>.<P>
|
|
||||||
|
|
||||||
<HR><P>
|
<HR><P>
|
||||||
|
|
||||||
@ -115,7 +106,7 @@ evaluating my query?<BR>
|
|||||||
<A HREF="#4.12">4.12</A>) What is Genetic Query Optimization?<BR>
|
<A HREF="#4.12">4.12</A>) What is Genetic Query Optimization?<BR>
|
||||||
|
|
||||||
<A HREF="#4.13">4.13</A>) How do I do regular expression searches
|
<A HREF="#4.13">4.13</A>) How do I do regular expression searches
|
||||||
and case-insensitive regular expression searching?<BR>
|
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 NULL?<BR>
|
is NULL?<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
|
||||||
@ -169,7 +160,7 @@ powerful data model and rich data types of POSTGRES, it replaces the
|
|||||||
PostQuel query language with an extended subset of SQL. PostgreSQL is
|
PostQuel query language with an extended subset of SQL. PostgreSQL is
|
||||||
free and the complete source is available.<P>
|
free and the complete source is available.<P>
|
||||||
|
|
||||||
PostgreSQL development is being performed by a team of Internet
|
PostgreSQL development is performed by a team of Internet
|
||||||
developers who all subscribe to the PostgreSQL development mailing list.
|
developers who all subscribe to the PostgreSQL development mailing list.
|
||||||
The current coordinator is Marc G. Fournier (<A
|
The current coordinator is Marc G. Fournier (<A
|
||||||
HREF="mailto:scrappy@PostgreSQL.org">scrappy@PostgreSQL.org</A>). (See
|
HREF="mailto:scrappy@PostgreSQL.org">scrappy@PostgreSQL.org</A>). (See
|
||||||
@ -252,13 +243,13 @@ platforms (some of these compiles require gcc):
|
|||||||
|
|
||||||
<H4><A NAME="1.4">1.4</A>) What non-unix ports are available?</H4><P>
|
<H4><A NAME="1.4">1.4</A>) What non-unix ports are available?</H4><P>
|
||||||
|
|
||||||
It is possible to compile the libpq C library, psql, and other
|
It is possible to compile the <I>libpq</I> C library, psql, and other
|
||||||
interfaces and binaries to run on MS Windows platforms. In this case,
|
interfaces and binaries to run on MS Windows platforms. In this case,
|
||||||
the client is running on MS Windows, and communicates via TCP/IP to a
|
the client is running on MS Windows, and communicates via TCP/IP to a
|
||||||
server running on one of our supported Unix platforms.<P>
|
server running on one of our supported Unix platforms.<P>
|
||||||
|
|
||||||
A file <I>win31.mak</I> is included in the distribution for making a
|
A file <I>win31.mak</I> is included in the distribution for making a
|
||||||
Win32 libpq library and psql.<P>
|
Win32 <I>libpq</I> library and psql.<P>
|
||||||
|
|
||||||
The database server is now working on Windows NT using the Cygnus
|
The database server is now working on Windows NT using the Cygnus
|
||||||
Unix/NT porting library. See <I>pgsql/doc/FAQ_NT</I> in the distribution.<P>
|
Unix/NT porting library. See <I>pgsql/doc/FAQ_NT</I> in the distribution.<P>
|
||||||
@ -272,7 +263,7 @@ For mirror sites, see our main web site.
|
|||||||
|
|
||||||
<H4><A NAME="1.6">1.6</A>) Where can I get support?</H4><P>
|
<H4><A NAME="1.6">1.6</A>) Where can I get support?</H4><P>
|
||||||
|
|
||||||
There is no official support for PostgreSQL from the University of
|
There is no support for PostgreSQL from the University of
|
||||||
California, Berkeley. It is maintained through volunteer effort.<P>
|
California, Berkeley. It is maintained through volunteer effort.<P>
|
||||||
|
|
||||||
The main mailing list is: <A
|
The main mailing list is: <A
|
||||||
@ -531,8 +522,7 @@ http://www.phone.net/home/mwm/hotlist/.</A><P>
|
|||||||
For web integration, PHP is an excellent interface. It is at
|
For web integration, PHP is an excellent interface. It is at
|
||||||
<A HREF="http://www.php.net">http://www.php.net</A><P>
|
<A HREF="http://www.php.net">http://www.php.net</A><P>
|
||||||
|
|
||||||
PHP is great for simple stuff, but for more complex cases, many
|
For complex cases, many use the perl interface and CGI.pm.<P>
|
||||||
use the perl interface and CGI.pm.<P>
|
|
||||||
|
|
||||||
A WWW gateway based on WDB using perl can be downloaded from <A
|
A WWW gateway based on WDB using perl can be downloaded from <A
|
||||||
HREF="http://www.eol.ists.ca/~dunlop/wdb-p95">http://www.eol.ists.ca/~dunlop/wdb-p95</A>
|
HREF="http://www.eol.ists.ca/~dunlop/wdb-p95">http://www.eol.ists.ca/~dunlop/wdb-p95</A>
|
||||||
@ -553,15 +543,15 @@ communicate with PostgreSQL?</H4><P>
|
|||||||
|
|
||||||
We have:
|
We have:
|
||||||
<UL>
|
<UL>
|
||||||
<LI>C(libpq)
|
<LI>C (libpq)
|
||||||
<LI>C++(libpq++)
|
<LI>C++ (libpq++)
|
||||||
<LI>Embedded C(ecpg)
|
<LI>Embedded C (ecpg)
|
||||||
<LI>Java(jdbc)
|
<LI>Java (jdbc)
|
||||||
<LI>Perl(perl5)
|
<LI>Perl (perl5)
|
||||||
<LI>ODBC(odbc)
|
<LI>ODBC (odbc)
|
||||||
<LI>Python(PyGreSQL)
|
<LI>Python (PyGreSQL)
|
||||||
<LI>TCL(libpgtcl)
|
<LI>TCL (libpgtcl)
|
||||||
<LI>C Easy API(libpgeasy)
|
<LI>C Easy API (libpgeasy)
|
||||||
<LI>Embedded HTML (<A HREF="http://www.php.net">PHP from http://www.php.net</A>)
|
<LI>Embedded HTML (<A HREF="http://www.php.net">PHP from http://www.php.net</A>)
|
||||||
</UL><P>
|
</UL><P>
|
||||||
|
|
||||||
@ -783,7 +773,7 @@ example, if a sort needs to be done to satisfy an <SMALL>ORDER BY,</SMALL> and
|
|||||||
the sort requires more space than the backend's <I>-S</I> parameter allows,
|
the sort requires more space than the backend's <I>-S</I> parameter allows,
|
||||||
then temporary files are created to hold the extra data.<P>
|
then temporary files are created to hold the extra data.<P>
|
||||||
|
|
||||||
The temp files should be deleted automatically, but might not if a backend
|
The temporary files should be deleted automatically, but might not if a backend
|
||||||
crashes during a sort. If you have no backends running at the time,
|
crashes during a sort. If you have no backends running at the time,
|
||||||
it is safe to delete the pg_tempNNN.NN files.<P>
|
it is safe to delete the pg_tempNNN.NN files.<P>
|
||||||
|
|
||||||
@ -977,7 +967,7 @@ Algorithm (GA). It allows the handling of large join queries through
|
|||||||
non-exhaustive search.<P>
|
non-exhaustive search.<P>
|
||||||
|
|
||||||
<H4><A NAME="4.13">4.13</A>) How do I do regular expression searches and
|
<H4><A NAME="4.13">4.13</A>) How do I do regular expression searches and
|
||||||
case-insensitive regular expression searching?</H4><P>
|
case-insensitive regular expression searches?</H4><P>
|
||||||
|
|
||||||
The <I>~</I> operator does regular-expression matching, and <I>~*</I>
|
The <I>~</I> operator does regular-expression matching, and <I>~*</I>
|
||||||
does case-insensitive regular-expression matching. There is no
|
does case-insensitive regular-expression matching. There is no
|
||||||
@ -1231,7 +1221,7 @@ Beware of mixing <I>malloc/free</I> and <I>palloc/pfree.</I>
|
|||||||
functions to PostgreSQL?</H4><P>
|
functions to PostgreSQL?</H4><P>
|
||||||
|
|
||||||
|
|
||||||
Send your extensions to the pgsql-hackers mailing list, and they will
|
Send your extensions to the <I>pgsql-hackers</I> mailing list, and they will
|
||||||
eventually end up in the <I>contrib/</I> subdirectory.<P>
|
eventually end up in the <I>contrib/</I> subdirectory.<P>
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user