14
14
alink ="#0000ff ">
15
15
< H1 > Frequently Asked Questions (FAQ) for PostgreSQL</ H1 >
16
16
17
- < P > Last updated: Sun Oct 13 22:49:56 EDT 2002</ P >
17
+ < P > Last updated: Sun Oct 13 23:15:09 EDT 2002</ P >
18
18
19
19
< P > Current maintainer: Bruce Momjian (< A href =
20
20
"mailto:pgman@candle.pha.pa.us "> pgman@candle.pha.pa.us</ A > )< BR >
@@ -78,8 +78,8 @@ <H2 align="center">Administrative Questions</H2>
78
78
< A href ="#3.7 "> 3.7</ A > ) What debugging features are available?< BR >
79
79
< A href ="#3.8 "> 3.8</ A > ) Why do I get < I > "Sorry, too many
80
80
clients"</ I > when trying to connect?< BR >
81
- < A href ="#3.9 "> 3.9</ A > ) What are the < I > pg_sorttempNNN.NN </ I >
82
- files in my database directory?< BR >
81
+ < A href ="#3.9 "> 3.9</ A > ) What is in the < I > pgsql_tmp </ I >
82
+ directory?< BR >
83
83
< A href ="#3.10 "> 3.10</ A > ) Why do I need to do a dump and restore
84
84
to upgrade PostgreSQL releases?< BR >
85
85
@@ -250,10 +250,11 @@ <H4><A name="1.4">1.4</A>) What non-Unix ports are available?</H4>
250
250
< P > The database server can run on Windows NT and Win2k using
251
251
Cygwin, the Cygnus Unix/NT porting library. See
252
252
< I > pgsql/doc/FAQ_MSWIN</ I > in the distribution or the MS Windows FAQ
253
- at < A href ="http://www.PostgreSQL.org/docs/faq-mswin.html "> http://www.PostgreSQL.org/docs/faq-mswin.html</ A > .</ P >
253
+ at < A href ="http://www.PostgreSQL.org/docs/faq-mswin.html ">
254
+ http://www.PostgreSQL.org/docs/faq-mswin.html</ A > .</ P >
254
255
255
- < p > A native port to some Microsoft platforms is currently being worked
256
- upon .</ p >
256
+ < p > A native port to MS Win NT/2000/XP is currently being worked
257
+ on .</ p >
257
258
258
259
< H4 > < A name ="1.5 "> 1.5</ A > ) Where can I get PostgreSQL?</ H4 >
259
260
@@ -484,7 +485,7 @@ <H4><A name="1.15">1.15</A>) How can I financially assist
484
485
PostgreSQL?</ H4 >
485
486
486
487
< P > PostgreSQL has had a first-class infrastructure since we started
487
- in 1994 . This is all thanks to Marc Fournier, who has created
488
+ in 1996 . This is all thanks to Marc Fournier, who has created
488
489
and managed this infrastructure over the years.</ P >
489
490
490
491
< P > Quality infrastructure is very important to an open-source
@@ -545,9 +546,9 @@ <H4><A name="2.3">2.3</A>) Does PostgreSQL have a graphical user
545
546
interface? A report generator? An embedded query language
546
547
interface?</ H4 >
547
548
548
- < P > We have a nice graphical user interface called PgAccess, which is
549
- shipped as part of the distribution. PgAccess also has a report
550
- generator. The Web page is < A href ="http://www.pgaccess.org/ "> http://www.pgaccess.org/</ A > .</ P >
549
+ < P > We have a nice graphical user interface called PgAccess which can
550
+ also be used as a report generator. The Web page is
551
+ < A href ="http://www.pgaccess.org/ "> http://www.pgaccess.org/</ A > .</ P >
551
552
552
553
< P > We also include < I > ecpg</ I > , which is an embedded SQL query
553
554
language interface for C.</ P >
@@ -565,7 +566,7 @@ <H4><A name="2.4">2.4</A>) What languages are able to communicate with PostgreSQ
565
566
566
567
< LI > Java (jdbc)</ LI >
567
568
568
- < LI > Perl (DBD::Pg)</ LI >
569
+ < LI > Perl (DBD::Pg and perl5 )</ LI >
569
570
570
571
< LI > ODBC (odbc)</ LI >
571
572
@@ -578,7 +579,9 @@ <H4><A name="2.4">2.4</A>) What languages are able to communicate with PostgreSQ
578
579
< LI > PHP ('pg_' functions, Pear::DB)</ LI >
579
580
</ UL >
580
581
< P > Additional interfaces are available at
581
- < a href ="http://www.PostgreSQL.org/interfaces.html "> http://www.PostgreSQL.org/interfaces.html</ A > .
582
+ < a href ="http://www.PostgreSQL.org/interfaces.html "> http://www.PostgreSQL.org/interfaces.html</ A >
583
+ and
584
+ < a href ="http://gborg.PostgreSQL.org "> http://gborg.PostgreSQL.org</ A > .
582
585
</ P >
583
586
< HR >
584
587
@@ -765,19 +768,18 @@ <H4><A name="3.8">3.8</A>) Why do I get <I>"Sorry, too many
765
768
the MaxBackendId constant in
766
769
< I > include/storage/sinvaladt.h</ I > .</ P >
767
770
768
- < H4 > < A name ="3.9 "> 3.9</ A > ) What are the < I > pg_tempNNN.NN </ I >
769
- files in my database directory?</ H4 >
771
+ < H4 > < A name ="3.9 "> 3.9</ A > ) What are the < I > pgsql_tmp </ I >
772
+ directory?</ H4 >
770
773
771
774
< P > They are temporary files generated by the query executor. For
772
775
example, if a sort needs to be done to satisfy an < SMALL > ORDER
773
776
BY,</ SMALL > and the sort requires more space than the backend's
774
777
< I > -S</ I > parameter allows, then temporary files are created to
775
778
hold the extra data.</ P >
776
779
777
- < P > The temporary files should be deleted automatically, but might
778
- not if a backend crashes during a sort. If you have no backends
779
- running at the time, it is safe to delete the pg_tempNNN.NN
780
- files.</ P >
780
+ < P > The temporary files are usually deleted automatically, but might
781
+ remain if a backend crashes during a sort. A stop and restart of the
782
+ < I > postmaster</ I > will remove files from those directories.</ P >
781
783
782
784
< H4 > < A name ="3.10 "> 3.10</ A > ) Why do I need to do a dump and restore
783
785
to upgrade between major PostgreSQL releases?</ H4 >
@@ -790,10 +792,10 @@ <H4><A name="3.10">3.10</A>) Why do I need to do a dump and restore
790
792
data in a generic format that can then be loaded in using the new internal
791
793
format.</ P >
792
794
793
- < p > In releases where the on-disk format does not change, the
794
- < i > pg_upgrade</ i > script can be used to upgrade without a dump/restore.
795
- The release notes mention whether < i > pg_upgrade</ i > is available for the
796
- release.</ p >
795
+ < P > In releases where the on-disk format does not change, the
796
+ < I > pg_upgrade</ I > script can be used to upgrade without a dump/restore.
797
+ The release notes mention whether < I > pg_upgrade</ I > is available for the
798
+ release.</ P >
797
799
798
800
< HR >
799
801
@@ -831,8 +833,9 @@ <H4><A name="4.3">4.3</A>) How do I get a list of tables or other
831
833
< H4 > < A name ="4.4 "> 4.4</ A > ) How do you remove a column from a
832
834
table?</ H4 >
833
835
834
- < P > Prior to version 7.3, < SMALL > ALTER TABLE DROP COLUMN</ SMALL > is not supported.
835
- You can do this instead:</ P >
836
+ < P > This functionality was added in release 7.3 with
837
+ < SMALL > ALTER TABLE DROP COLUMN</ SMALL > . In earlier versions,
838
+ you can do this:</ P >
836
839
< PRE >
837
840
BEGIN;
838
841
LOCK TABLE old_table;
@@ -1023,13 +1026,13 @@ <H4><A name="4.12">4.12</A>) How do I perform regular expression
1023
1026
< PRE >
1024
1027
SELECT *
1025
1028
FROM tab
1026
- WHERE LOWER (col) = 'abc';
1029
+ WHERE lower (col) = 'abc';
1027
1030
</ PRE >
1028
1031
1029
1032
This will not use an standard index. However, if you create a
1030
1033
functional index, it will be used:
1031
1034
< PRE >
1032
- CREATE INDEX tabindex ON tab (LOWER (col));
1035
+ CREATE INDEX tabindex ON tab (lower (col));
1033
1036
</ PRE >
1034
1037
1035
1038
< H4 > < A name ="4.13 "> 4.13</ A > ) In a query, how do I detect if a field
@@ -1118,7 +1121,7 @@ <H4><A name="4.15.2">4.15.2</A>) How do I get the value of a
1118
1121
and your < SMALL > SERIAL</ SMALL > column, respectively.
1119
1122
1120
1123
< P > Alternatively, you could retrieve the assigned
1121
- < SMALL > SERIAL</ SMALL > value with the < I > currval</ I > () function
1124
+ < SMALL > SERIAL</ SMALL > value with the < I > currval() </ I > function
1122
1125
< I > after</ I > it was inserted by default, e.g.,</ P >
1123
1126
< PRE >
1124
1127
execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
@@ -1135,7 +1138,7 @@ <H4><A name="4.15.2">4.15.2</A>) How do I get the value of a
1135
1138
< H4 > < A name ="4.15.3 "> 4.15.3</ A > ) Don't < I > currval()</ I > and
1136
1139
< I > nextval()</ I > lead to a race condition with other users?</ H4 >
1137
1140
1138
- < P > No. < i > currval</ i > () returns the current value assigned by your
1141
+ < P > No. < I > currval() </ I > returns the current value assigned by your
1139
1142
backend, not by all users.</ P >
1140
1143
1141
1144
< H4 > < A name ="4.15.4 "> 4.15.4</ A > ) Why aren't my sequence numbers
0 commit comments