Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80683f2

Browse files
committed
Update FAQ from Robert Treat
1 parent5cb902c commit80683f2

File tree

2 files changed

+49
-38
lines changed

2 files changed

+49
-38
lines changed

‎doc/FAQ

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated:Fri Mar12 08:51:11 EST 2004
4+
Last updated:Mon Mar29 00:07:11 EST 2004
55

66
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
77

@@ -114,22 +114,24 @@
114114

115115
1.1) What is PostgreSQL? How is it pronounced?
116116

117-
PostgreSQL is pronounced Post-Gres-Q-L. The name "Postgres" is also
118-
used in conversation.
117+
PostgreSQL is pronounced Post-Gres-Q-L. An audio file is available at
118+
http://www.postgresql.org/postgresql.mp3 for those would like to hear
119+
the pronunciation.
119120

120121
PostgreSQL is an enhancement of the POSTGRES database management
121-
system, a next-generation DBMS research prototype. While PostgreSQL
122-
retains the powerful data model and rich data types of POSTGRES, it
123-
replaces the PostQuel query language with an extended subset of SQL.
124-
PostgreSQL is free and the complete source is available.
122+
system (and is still sometimes reffered to as simply "Postgres"), a
123+
next-generation DBMS research prototype. While PostgreSQL retains the
124+
powerful data model and rich data types of POSTGRES, it replaces the
125+
PostQuel query language with an extended subset of SQL. PostgreSQL is
126+
free and the complete source is available.
125127

126128
PostgreSQL development is performed by a team of developers who all
127129
subscribe to the PostgreSQL development mailing list. The current
128130
coordinator is Marc G. Fournier (scrappy@PostgreSQL.org). (See section
129131
1.6 on how to join). This team is now responsible for all development
130132
of PostgreSQL. It is a community project and is not controlled by any
131-
company. To get involved, see the developer's
132-
FAQ,http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html
133+
company. To get involved, see the developer's FAQ at
134+
http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html
133135

134136
The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
135137
others have contributed to the porting, testing, debugging, and
@@ -149,7 +151,7 @@
149151

150152
PostgreSQL Data Base Management System
151153

152-
Portions copyright (c) 1996-2002, PostgreSQL Global Development Group
154+
Portions copyright (c) 1996-2004, PostgreSQL Global Development Group
153155
Portions Copyright (c) 1994-6 Regents of the University of California
154156

155157
Permission to use, copy, modify, and distribute this software and its
@@ -177,7 +179,7 @@
177179

178180
1.3) What Unix platforms does PostgreSQL run on?
179181

180-
In general,a modern Unix-compatible platform should be able to run
182+
In general,any modern Unix-compatible platform should be able to run
181183
PostgreSQL. The platforms that had received explicit testing at the
182184
time of release are listed in the installation instructions.
183185

@@ -436,7 +438,7 @@
436438
These include PgAccess http://www.pgaccess.org), PgAdmin III
437439
(http://www.pgadmin.org, RHDB Admin (http://sources.redhat.com/rhdb/ )
438440
and Rekall ( http://www.thekompany.com/products/rekall/, proprietary).
439-
There is alsoPHPPgAdmin ( http://phppgadmin.sourceforge.net/ ), a
441+
There is alsoPhpPgAdmin ( http://phppgadmin.sourceforge.net/ ), a
440442
web-based interface to PostgreSQL.
441443

442444
See http://techdocs.postgresql.org/guides/GUITools for a more detailed
@@ -503,14 +505,14 @@
503505

504506
By default, PostgreSQL only allows connections from the local machine
505507
using Unix domain sockets. Other machines will not be able to connect
506-
unless youadd the -i flag to postmaster, and enable host-based
507-
authentication by modifying the file $PGDATA/pg_hba.conf accordingly.
508-
This will allow TCP/IP connections.
508+
unless youturn on tcpip_sockets in the postgresql.conf and enable
509+
host-basedauthentication by modifying the file $PGDATA/pg_hba.conf
510+
accordingly.This will allow TCP/IP connections.
509511

510512
3.6) How do I tune the database engine for better performance?
511513

512-
Certainly, indexes can speed up queries. The EXPLAINcommand allows
513-
you to see how PostgreSQL is interpreting your query, and which
514+
Certainly, indexes can speed up queries. The EXPLAINANALYZE command
515+
allowsyou to see how PostgreSQL is interpreting your query, and which
514516
indexes are being used.
515517

516518
If you are doing many INSERTs, consider doing them in a large batch
@@ -657,11 +659,14 @@
657659

658660
4.3) How do I get a list of tables or other things I can see in psql?
659661

660-
You can read the source code for psql in file
661-
pgsql/src/bin/psql/describe.c. It contains SQL commands that generate
662-
the output for psql's backslash commands. You can also start psql with
663-
the -E option so it will print out the queries it uses to execute the
664-
commands you give.
662+
Use the \dt command to see tables in psql. For a complete list of
663+
commands inside psql you can use \?. Alternatively you can read the
664+
source code for psql in file pgsql/src/bin/psql/describe.c, it
665+
contains SQL commands that generate the output for psql's backslash
666+
commands. You can also start psql with the -E option so it will print
667+
out the queries it uses to execute the commands you give. PostgreSQL
668+
also provides an SQLi compliant INFORMATION SCHEMA interface you can
669+
query to get information about the database.
665670

666671
4.4) How do you remove a column from a table, or change its data type?
667672

‎doc/src/FAQ/FAQ.html

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
alink="#0000ff">
1111
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
1212

13-
<P>Last updated:Fri Mar12 08:51:11 EST 2004</P>
13+
<P>Last updated:Mon Mar29 00:07:11 EST 2004</P>
1414

1515
<P>Current maintainer: Bruce Momjian (<Ahref=
1616
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -156,11 +156,14 @@ <H2 align="center">General Questions</H2>
156156

157157
<H4><Aname="1.1">1.1</A>) What is PostgreSQL? How is it pronounced?</H4>
158158

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>
161163

162164
<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.
164167
While PostgreSQL retains the powerful data model and rich data
165168
types of POSTGRES, it replaces the PostQuel query language with an
166169
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>
173176
section<ahref="#1.6">1.6</a> on how to join). This team is now
174177
responsible for all development of PostgreSQL. It is a community
175178
project and is not controlled by any company. To get involved, see
176-
the developer's FAQ,<Ahref=
179+
the developer's FAQ at<Ahref=
177180
"http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html">http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html</A>
178181
</P>
179182

@@ -197,7 +200,7 @@ <H4><A name="1.2">1.2</A>) What is the copyright on
197200

198201
<P>PostgreSQL Data Base Management System</P>
199202

200-
<P>Portions copyright (c) 1996-2002, PostgreSQL Global Development
203+
<P>Portions copyright (c) 1996-2004, PostgreSQL Global Development
201204
Group Portions Copyright (c) 1994-6 Regents of the University of
202205
California</P>
203206

@@ -227,7 +230,7 @@ <H4><A name="1.2">1.2</A>) What is the copyright on
227230
<H4><Aname="1.3">1.3</A>) What Unix platforms does PostgreSQL run
228231
on?</H4>
229232

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
231234
run PostgreSQL. The platforms that had received explicit testing at
232235
the time of release are listed in the installation
233236
instructions.</P>
@@ -563,7 +566,7 @@ <H4><A name="2.3">2.3</A>) Does PostgreSQL have a graphical user
563566
href="http://sources.redhat.com/rhdb/">http://sources.redhat.com/rhdb/
564567
</a>) and Rekall (<ahref="http://www.thekompany.com/products/rekall/">
565568
http://www.thekompany.com/products/rekall/</a>, proprietary). There is
566-
alsoPHPPgAdmin (<ahref="http://phppgadmin.sourceforge.net/">
569+
alsoPhpPgAdmin (<ahref="http://phppgadmin.sourceforge.net/">
567570
http://phppgadmin.sourceforge.net/</a>), a web-based interface to
568571
PostgreSQL.</P>
569572

@@ -651,7 +654,7 @@ <H4><A name="3.5">3.5</A>) How do I control connections from other
651654

652655
<P>By default, PostgreSQL only allows connections from the local
653656
machine using Unix domain sockets. Other machines will not be able
654-
to connect unless youadd the<I>-i</I> flag to<I>postmaster</I>,
657+
to connect unless youturn on tcpip_sockets in the postgresql.conf
655658
<B>and</B> enable host-based authentication by modifying the file
656659
<I>$PGDATA/pg_hba.conf</I> accordingly. This will allow TCP/IP
657660
connections.</P>
@@ -660,7 +663,7 @@ <H4><A name="3.6">3.6</A>) How do I tune the database engine for
660663
better performance?</H4>
661664

662665
<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
664667
interpreting your query, and which indexes are being used.</P>
665668

666669
<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
837840
<H4><Aname="4.3">4.3</A>) How do I get a list of tables or other
838841
things I can see in<I>psql</I>?</H4>
839842

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>
846852

847853
<H4><Aname="4.4">4.4</A>) How do you remove a column from a
848854
table, or change its data type?</H4>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp