Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
80683f2a
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
80683f2a
编写于
3月 29, 2004
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update FAQ from Robert Treat
上级
5cb902cb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
49 addition
and
38 deletion
+49
-38
doc/FAQ
doc/FAQ
+27
-22
doc/src/FAQ/FAQ.html
doc/src/FAQ/FAQ.html
+22
-16
未找到文件。
doc/FAQ
浏览文件 @
80683f2a
Frequently Asked Questions (FAQ) for PostgreSQL
Frequently Asked Questions (FAQ) for PostgreSQL
Last updated:
Fri Mar 12 08:51
:11 EST 2004
Last updated:
Mon Mar 29 00:07
:11 EST 2004
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
@@ -114,22 +114,24 @@
...
@@ -114,22 +114,24 @@
1.1) What is PostgreSQL? How is it pronounced?
1.1) What is PostgreSQL? How is it pronounced?
PostgreSQL is pronounced Post-Gres-Q-L. The name "Postgres" is also
PostgreSQL is pronounced Post-Gres-Q-L. An audio file is available at
used in conversation.
http://www.postgresql.org/postgresql.mp3 for those would like to hear
the pronunciation.
PostgreSQL is an enhancement of the POSTGRES database management
PostgreSQL is an enhancement of the POSTGRES database management
system, a next-generation DBMS research prototype. While PostgreSQL
system (and is still sometimes reffered to as simply "Postgres"), a
retains the powerful data model and rich data types of POSTGRES, it
next-generation DBMS research prototype. While PostgreSQL retains the
replaces the PostQuel query language with an extended subset of SQL.
powerful data model and rich data types of POSTGRES, it replaces the
PostgreSQL is free and the complete source is available.
PostQuel query language with an extended subset of SQL. PostgreSQL is
free and the complete source is available.
PostgreSQL development is performed by a team of developers who all
PostgreSQL development is performed by a team of developers who all
subscribe to the PostgreSQL development mailing list. The current
subscribe to the PostgreSQL development mailing list. The current
coordinator is Marc G. Fournier (scrappy@PostgreSQL.org). (See section
coordinator is Marc G. Fournier (scrappy@PostgreSQL.org). (See section
1.6 on how to join). This team is now responsible for all development
1.6 on how to join). This team is now responsible for all development
of PostgreSQL. It is a community project and is not controlled by any
of PostgreSQL. It is a community project and is not controlled by any
company. To get involved, see the developer's
company. To get involved, see the developer's
FAQ at
FAQ,
http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html
http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html
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
...
@@ -149,7 +151,7 @@
...
@@ -149,7 +151,7 @@
PostgreSQL Data Base Management System
PostgreSQL Data Base Management System
Portions copyright (c) 1996-200
2
, PostgreSQL Global Development Group
Portions copyright (c) 1996-200
4
, PostgreSQL Global Development Group
Portions Copyright (c) 1994-6 Regents of the University of California
Portions Copyright (c) 1994-6 Regents of the University of California
Permission to use, copy, modify, and distribute this software and its
Permission to use, copy, modify, and distribute this software and its
...
@@ -177,7 +179,7 @@
...
@@ -177,7 +179,7 @@
1.3) What Unix platforms does PostgreSQL run on?
1.3) What Unix platforms does PostgreSQL run on?
In general, a modern Unix-compatible platform should be able to run
In general, a
ny
modern Unix-compatible platform should be able to run
PostgreSQL. The platforms that had received explicit testing at the
PostgreSQL. The platforms that had received explicit testing at the
time of release are listed in the installation instructions.
time of release are listed in the installation instructions.
...
@@ -436,7 +438,7 @@
...
@@ -436,7 +438,7 @@
These include PgAccess http://www.pgaccess.org), PgAdmin III
These include PgAccess http://www.pgaccess.org), PgAdmin III
(http://www.pgadmin.org, RHDB Admin (http://sources.redhat.com/rhdb/ )
(http://www.pgadmin.org, RHDB Admin (http://sources.redhat.com/rhdb/ )
and Rekall ( http://www.thekompany.com/products/rekall/, proprietary).
and Rekall ( http://www.thekompany.com/products/rekall/, proprietary).
There is also P
HP
PgAdmin ( http://phppgadmin.sourceforge.net/ ), a
There is also P
hp
PgAdmin ( http://phppgadmin.sourceforge.net/ ), a
web-based interface to PostgreSQL.
web-based interface to PostgreSQL.
See http://techdocs.postgresql.org/guides/GUITools for a more detailed
See http://techdocs.postgresql.org/guides/GUITools for a more detailed
...
@@ -503,14 +505,14 @@
...
@@ -503,14 +505,14 @@
By default, PostgreSQL only allows connections from the local machine
By default, PostgreSQL only allows connections from the local machine
using Unix domain sockets. Other machines will not be able to connect
using Unix domain sockets. Other machines will not be able to connect
unless you
add the -i flag to postmaster, and enable host-based
unless you
turn on tcpip_sockets in the postgresql.conf and enable
authentication by modifying the file $PGDATA/pg_hba.conf accordingly.
host-based authentication by modifying the file $PGDATA/pg_hba.conf
This will allow TCP/IP connections.
accordingly.
This will allow TCP/IP connections.
3.6) How do I tune the database engine for better performance?
3.6) How do I tune the database engine for better performance?
Certainly, indexes can speed up queries. The EXPLAIN
command allows
Certainly, indexes can speed up queries. The EXPLAIN
ANALYZE command
you to see how PostgreSQL is interpreting your query, and which
allows
you to see how PostgreSQL is interpreting your query, and which
indexes are being used.
indexes are being used.
If you are doing many INSERTs, consider doing them in a large batch
If you are doing many INSERTs, consider doing them in a large batch
...
@@ -657,11 +659,14 @@
...
@@ -657,11 +659,14 @@
4.3) How do I get a list of tables or other things I can see in psql?
4.3) How do I get a list of tables or other things I can see in psql?
You can read the source code for psql in file
Use the \dt command to see tables in psql. For a complete list of
pgsql/src/bin/psql/describe.c. It contains SQL commands that generate
commands inside psql you can use \?. Alternatively you can read the
the output for psql's backslash commands. You can also start psql with
source code for psql in file pgsql/src/bin/psql/describe.c, it
the -E option so it will print out the queries it uses to execute the
contains SQL commands that generate the output for psql's backslash
commands you give.
commands. You can also start psql with the -E option so it will print
out the queries it uses to execute the commands you give. PostgreSQL
also provides an SQLi compliant INFORMATION SCHEMA interface you can
query to get information about the database.
4.4) How do you remove a column from a table, or change its data type?
4.4) How do you remove a column from a table, or change its data type?
...
...
doc/src/FAQ/FAQ.html
浏览文件 @
80683f2a
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
alink=
"#0000ff"
>
alink=
"#0000ff"
>
<H1>
Frequently Asked Questions (FAQ) for PostgreSQL
</H1>
<H1>
Frequently Asked Questions (FAQ) for PostgreSQL
</H1>
<P>
Last updated:
Fri Mar 12 08:51
:11 EST 2004
</P>
<P>
Last updated:
Mon Mar 29 00:07
:11 EST 2004
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
...
@@ -156,11 +156,14 @@
...
@@ -156,11 +156,14 @@
<H4><A
name=
"1.1"
>
1.1
</A>
) What is PostgreSQL? How is it pronounced?
</H4>
<H4><A
name=
"1.1"
>
1.1
</A>
) What is PostgreSQL? How is it pronounced?
</H4>
<P>
PostgreSQL is pronounced
<I>
Post-Gres-Q-L
</I>
. The name "Postgres" is
<P>
PostgreSQL is pronounced
<I>
Post-Gres-Q-L
</I>
. An audio file is
also used in conversation.
</P>
available at http://www.postgresql.org/postgresql.mp3 for those
would like to hear the pronunciation.
</P>
<P>
PostgreSQL is an enhancement of the POSTGRES database management
<P>
PostgreSQL is an enhancement of the POSTGRES database management
system, a next-generation
<SMALL>
DBMS
</SMALL>
research prototype.
system (and is still sometimes reffered to as simply "Postgres"),
a next-generation
<SMALL>
DBMS
</SMALL>
research prototype.
While PostgreSQL retains the powerful data model and rich data
While PostgreSQL retains the powerful data model and rich data
types of POSTGRES, it replaces the PostQuel query language with an
types of POSTGRES, it replaces the PostQuel query language with an
extended subset of
<SMALL>
SQL
</SMALL>
. PostgreSQL is free and the
extended subset of
<SMALL>
SQL
</SMALL>
. PostgreSQL is free and the
...
@@ -173,7 +176,7 @@
...
@@ -173,7 +176,7 @@
section
<a
href=
"#1.6"
>
1.6
</a>
on how to join). This team is now
section
<a
href=
"#1.6"
>
1.6
</a>
on how to join). This team is now
responsible for all development of PostgreSQL. It is a community
responsible for all development of PostgreSQL. It is a community
project and is not controlled by any company. To get involved, see
project and is not controlled by any company. To get involved, see
the developer's FAQ
,
<A
href=
the developer's FAQ
at
<A
href=
"http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html"
>
http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html
</A>
"http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html"
>
http://www.PostgreSQL.org/docs/faqs/FAQ_DEV.html
</A>
</P>
</P>
...
@@ -197,7 +200,7 @@
...
@@ -197,7 +200,7 @@
<P>
PostgreSQL Data Base Management System
</P>
<P>
PostgreSQL Data Base Management System
</P>
<P>
Portions copyright (c) 1996-200
2
, PostgreSQL Global Development
<P>
Portions copyright (c) 1996-200
4
, PostgreSQL Global Development
Group Portions Copyright (c) 1994-6 Regents of the University of
Group Portions Copyright (c) 1994-6 Regents of the University of
California
</P>
California
</P>
...
@@ -227,7 +230,7 @@
...
@@ -227,7 +230,7 @@
<H4><A
name=
"1.3"
>
1.3
</A>
) What Unix platforms does PostgreSQL run
<H4><A
name=
"1.3"
>
1.3
</A>
) What Unix platforms does PostgreSQL run
on?
</H4>
on?
</H4>
<P>
In general, a modern Unix-compatible platform should be able to
<P>
In general, a
ny
modern Unix-compatible platform should be able to
run PostgreSQL. The platforms that had received explicit testing at
run PostgreSQL. The platforms that had received explicit testing at
the time of release are listed in the installation
the time of release are listed in the installation
instructions.
</P>
instructions.
</P>
...
@@ -563,7 +566,7 @@
...
@@ -563,7 +566,7 @@
href=
"http://sources.redhat.com/rhdb/"
>
http://sources.redhat.com/rhdb/
href=
"http://sources.redhat.com/rhdb/"
>
http://sources.redhat.com/rhdb/
</a>
) and Rekall (
<a
href=
"http://www.thekompany.com/products/rekall/"
>
</a>
) and Rekall (
<a
href=
"http://www.thekompany.com/products/rekall/"
>
http://www.thekompany.com/products/rekall/
</a>
, proprietary). There is
http://www.thekompany.com/products/rekall/
</a>
, proprietary). There is
also P
HP
PgAdmin (
<a
href=
"http://phppgadmin.sourceforge.net/"
>
also P
hp
PgAdmin (
<a
href=
"http://phppgadmin.sourceforge.net/"
>
http://phppgadmin.sourceforge.net/
</a>
), a web-based interface to
http://phppgadmin.sourceforge.net/
</a>
), a web-based interface to
PostgreSQL.
</P>
PostgreSQL.
</P>
...
@@ -651,7 +654,7 @@
...
@@ -651,7 +654,7 @@
<P>
By default, PostgreSQL only allows connections from the local
<P>
By default, PostgreSQL only allows connections from the local
machine using Unix domain sockets. Other machines will not be able
machine using Unix domain sockets. Other machines will not be able
to connect unless you
add the
<I>
-i
</I>
flag to
<I>
postmaster
</I>
,
to connect unless you
turn on tcpip_sockets in the postgresql.conf
<B>
and
</B>
enable host-based authentication by modifying the file
<B>
and
</B>
enable host-based authentication by modifying the file
<I>
$PGDATA/pg_hba.conf
</I>
accordingly. This will allow TCP/IP
<I>
$PGDATA/pg_hba.conf
</I>
accordingly. This will allow TCP/IP
connections.
</P>
connections.
</P>
...
@@ -660,7 +663,7 @@
...
@@ -660,7 +663,7 @@
better performance?
</H4>
better performance?
</H4>
<P>
Certainly, indexes can speed up queries. The
<P>
Certainly, indexes can speed up queries. The
<SMALL>
EXPLAIN
</SMALL>
command allows you to see how PostgreSQL is
<SMALL>
EXPLAIN
ANALYZE
</SMALL>
command allows you to see how PostgreSQL is
interpreting your query, and which indexes are being used.
</P>
interpreting your query, and which indexes are being used.
</P>
<P>
If you are doing many
<SMALL>
INSERTs
</SMALL>
, consider doing
<P>
If you are doing many
<SMALL>
INSERTs
</SMALL>
, consider doing
...
@@ -837,12 +840,15 @@
...
@@ -837,12 +840,15 @@
<H4><A
name=
"4.3"
>
4.3
</A>
) How do I get a list of tables or other
<H4><A
name=
"4.3"
>
4.3
</A>
) How do I get a list of tables or other
things I can see in
<I>
psql
</I>
?
</H4>
things I can see in
<I>
psql
</I>
?
</H4>
<P>
You can read the source code for
<I>
psql
</I>
in file
<P>
Use the \dt command to see tables in
<I>
psql
</I>
. For a complete list of
<I>
pgsql/src/bin/psql/describe.c
</I>
. It contains
commands inside psql you can use \?. Alternatively you can read the source
<SMALL>
SQL
</SMALL>
commands that generate the output for psql's
code for
<I>
psql
</I>
in file
<I>
pgsql/src/bin/psql/describe.c
</I>
, it
backslash commands. You can also start
<I>
psql
</I>
with the
contains
<SMALL>
SQL
</SMALL>
commands that generate the output for
<I>
-E
</I>
option so it will print out the queries it uses to
<I>
psql
</I>
's backslash commands. You can also start
<I>
psql
</I>
with the
execute the commands you give.
</P>
<I>
-E
</I>
option so it will print out the queries it uses to execute the
commands you give. PostgreSQL also provides an
<SMALL>
SQLi
</SMALL>
compliant
INFORMATION SCHEMA interface you can query to get information about the
database.
</P>
<H4><A
name=
"4.4"
>
4.4
</A>
) How do you remove a column from a
<H4><A
name=
"4.4"
>
4.4
</A>
) How do you remove a column from a
table, or change its data type?
</H4>
table, or change its data type?
</H4>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录