Skip to content

Commit a4d7c97

Browse files
committed
Update FAQ.
1 parent 1c575ef commit a4d7c97

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

doc/FAQ

Lines changed: 19 additions & 5 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: Wed Sep 1 19:26:40 EDT 1999
4+
Last updated: Tue Sep 28 01:06:15 EDT 1999
55

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

@@ -95,6 +95,7 @@
9595
4.20) How do I tell what PostgreSQL version I am running?
9696
4.21) My large-object operations get invalid large obj descriptor.
9797
Why?
98+
4.22) How do I create a column that will default to the current time?
9899

99100
Extending PostgreSQL
100101

@@ -196,8 +197,9 @@
196197
The database server is now working on Windows NT using the Cygnus
197198
Unix/NT porting library. See pgsql/doc/README.NT in the distribution.
198199

199-
There is another port using U/Win at
200-
http://surya.wipro.com/uwin/ported.html.
200+
There is also a web page at
201+
http://members.tripod.com/~kevlo/postgres/portNT.html. There is
202+
another port using U/Win at http://surya.wipro.com/uwin/ported.html.
201203

202204
1.5) Where can I get PostgreSQL?
203205

@@ -254,7 +256,7 @@
254256

255257
1.7) What is the latest release of PostgreSQL?
256258

257-
The latest release of PostgreSQL is version 6.5.
259+
The latest release of PostgreSQL is version 6.5.2.
258260

259261
We plan to have major releases every four months.
260262

@@ -580,7 +582,7 @@
580582
You need to increase the postmaster's limit on how many concurrent
581583
backend processes it can start.
582584

583-
In Postgres 6.5, the default limit is 32 processes. You can increase
585+
In Postgres 6.5.*, the default limit is 32 processes. You can increase
584586
it by restarting the postmaster with a suitable -N value. With the
585587
default configuration you can set -N as large as 1024; if you need
586588
more, increase MAXBACKENDS in include/config.h and rebuild. You can
@@ -903,6 +905,18 @@ BYTEA bytea variable-length array of bytes
903905

904906
If you are using a client interface like ODBC you may need to set
905907
auto-commit off.
908+
909+
4.22) How do I create a column that will default to the current time?
910+
911+
The tempation is to do:
912+
create table test (x int, modtime timestamp default 'now');
913+
914+
but this makes the column default to the time of table creation, not
915+
the time of row insertion. Instead do:
916+
create table test (x int, modtime timestamp default text 'now');
917+
918+
The casting of the value to text prevents the default value from being
919+
computed at table creation time, and delays it until insertion time.
906920
_________________________________________________________________
907921

908922
Extending PostgreSQL

0 commit comments

Comments
 (0)