10
10
alink ="#0000ff ">
11
11
< H1 > Frequently Asked Questions (FAQ) for PostgreSQL</ H1 >
12
12
13
- < P > Last updated: Fri Mar 12 08:51 :11 EST 2004</ P >
13
+ < P > Last updated: Mon Mar 29 00:07 :11 EST 2004</ P >
14
14
15
15
< P > Current maintainer: Bruce Momjian (< A href =
16
16
"mailto:pgman@candle.pha.pa.us "> pgman@candle.pha.pa.us</ A > )< BR >
@@ -156,11 +156,14 @@ <H2 align="center">General Questions</H2>
156
156
157
157
< H4 > < A name ="1.1 "> 1.1</ A > ) What is PostgreSQL? How is it pronounced?</ H4 >
158
158
159
- < P > PostgreSQL is pronounced < I > Post-Gres-Q-L</ I > . The name "Postgres" is
160
- also used in conversation.</ P >
159
+ < P > PostgreSQL is pronounced < I > Post-Gres-Q-L</ I > . An audio file is
160
+ available at http://www.postgresql.org/postgresql.mp3 for those
161
+ would like to hear the pronunciation.
162
+ </ P >
161
163
162
164
< P > PostgreSQL is an enhancement of the POSTGRES database management
163
- system, a next-generation < SMALL > DBMS</ SMALL > research prototype.
165
+ system (and is still sometimes reffered to as simply "Postgres"),
166
+ a next-generation < SMALL > DBMS</ SMALL > research prototype.
164
167
While PostgreSQL retains the powerful data model and rich data
165
168
types of POSTGRES, it replaces the PostQuel query language with an
166
169
extended subset of < SMALL > SQL</ SMALL > . PostgreSQL is free and the
@@ -173,7 +176,7 @@ <H4><A name="1.1">1.1</A>) What is PostgreSQL? How is it pronounced?</H4>
173
176
section < a href ="#1.6 "> 1.6</ a > on how to join). This team is now
174
177
responsible for all development of PostgreSQL. It is a community
175
178
project and is not controlled by any company. To get involved, see
176
- the developer's FAQ, < A href =
179
+ the developer's FAQ at < A href =
177
180
"http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html "> http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html</ A >
178
181
</ P >
179
182
@@ -197,7 +200,7 @@ <H4><A name="1.2">1.2</A>) What is the copyright on
197
200
198
201
< P > PostgreSQL Data Base Management System</ P >
199
202
200
- < P > Portions copyright (c) 1996-2002 , PostgreSQL Global Development
203
+ < P > Portions copyright (c) 1996-2004 , PostgreSQL Global Development
201
204
Group Portions Copyright (c) 1994-6 Regents of the University of
202
205
California</ P >
203
206
@@ -227,7 +230,7 @@ <H4><A name="1.2">1.2</A>) What is the copyright on
227
230
< H4 > < A name ="1.3 "> 1.3</ A > ) What Unix platforms does PostgreSQL run
228
231
on?</ H4 >
229
232
230
- < P > In general, a modern Unix-compatible platform should be able to
233
+ < P > In general, any modern Unix-compatible platform should be able to
231
234
run PostgreSQL. The platforms that had received explicit testing at
232
235
the time of release are listed in the installation
233
236
instructions.</ P >
@@ -563,7 +566,7 @@ <H4><A name="2.3">2.3</A>) Does PostgreSQL have a graphical user
563
566
href ="http://sources.redhat.com/rhdb/ "> http://sources.redhat.com/rhdb/
564
567
</ a > ) and Rekall (< a href ="http://www.thekompany.com/products/rekall/ ">
565
568
http://www.thekompany.com/products/rekall/</ a > , proprietary). There is
566
- also PHPPgAdmin (< a href ="http://phppgadmin.sourceforge.net/ ">
569
+ also PhpPgAdmin (< a href ="http://phppgadmin.sourceforge.net/ ">
567
570
http://phppgadmin.sourceforge.net/ </ a > ), a web-based interface to
568
571
PostgreSQL.</ P >
569
572
@@ -651,7 +654,7 @@ <H4><A name="3.5">3.5</A>) How do I control connections from other
651
654
652
655
< P > By default, PostgreSQL only allows connections from the local
653
656
machine using Unix domain sockets. Other machines will not be able
654
- to connect unless you add the < I > -i </ I > flag to < I > postmaster </ I > ,
657
+ to connect unless you turn on tcpip_sockets in the postgresql.conf
655
658
< B > and</ B > enable host-based authentication by modifying the file
656
659
< I > $PGDATA/pg_hba.conf</ I > accordingly. This will allow TCP/IP
657
660
connections.</ P >
@@ -660,7 +663,7 @@ <H4><A name="3.6">3.6</A>) How do I tune the database engine for
660
663
better performance?</ H4 >
661
664
662
665
< P > Certainly, indexes can speed up queries. The
663
- < SMALL > EXPLAIN</ SMALL > command allows you to see how PostgreSQL is
666
+ < SMALL > EXPLAIN ANALYZE </ SMALL > command allows you to see how PostgreSQL is
664
667
interpreting your query, and which indexes are being used.</ P >
665
668
666
669
< P > If you are doing many < SMALL > INSERTs</ SMALL > , consider doing
@@ -837,12 +840,15 @@ <H4><A name="4.2">4.2</A>) How do I <SMALL>SELECT</SMALL> only the
837
840
< H4 > < A name ="4.3 "> 4.3</ A > ) How do I get a list of tables or other
838
841
things I can see in < I > psql</ I > ?</ H4 >
839
842
840
- < P > You can read the source code for < I > psql</ I > in file
841
- < I > pgsql/src/bin/psql/describe.c</ I > . It contains
842
- < SMALL > SQL</ SMALL > commands that generate the output for psql's
843
- backslash commands. You can also start < I > psql</ I > with the
844
- < I > -E</ I > option so it will print out the queries it uses to
845
- execute the commands you give.</ P >
843
+ < P > Use the \dt command to see tables in < I > psql</ I > . For a complete list of
844
+ commands inside psql you can use \?. Alternatively you can read the source
845
+ code for < I > psql</ I > in file < I > pgsql/src/bin/psql/describe.c</ I > , it
846
+ contains < SMALL > SQL</ SMALL > commands that generate the output for
847
+ < I > psql</ I > 's backslash commands. You can also start < I > psql</ I > with the
848
+ < I > -E</ I > option so it will print out the queries it uses to execute the
849
+ commands you give. PostgreSQL also provides an < SMALL > SQLi</ SMALL > compliant
850
+ INFORMATION SCHEMA interface you can query to get information about the
851
+ database.</ P >
846
852
847
853
< H4 > < A name ="4.4 "> 4.4</ A > ) How do you remove a column from a
848
854
table, or change its data type?</ H4 >
0 commit comments