Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3fb8c9d

Browse files
committed
Update FAQ.
1 parent c446509 commit 3fb8c9d

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

doc/FAQ

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@
335335

336336
Features
337337
PostgreSQL has most features present in large commercial
338-
DBMS's, like transactions, subselects, triggers, views, and
339-
sophisticated locking. We have some features they don't have,
340-
like user-defined types, inheritance, rules, and multi-version
341-
concurrency control to reduce lock contention. We don't have
342-
foreign key referential integrity or outer joins, but are
338+
DBMS's, like transactions, subselects, triggers, views, foreign
339+
key referential integrity, and sophisticated locking. We have
340+
some features they don't have, like user-defined types,
341+
inheritance, rules, and multi-version concurrency control to
342+
reduce lock contention. We don't have outer joins, but are
343343
working on them for our next release.
344344

345345
Performance
@@ -396,10 +396,10 @@
396396

397397
2.1) Are there ODBC drivers for PostgreSQL?
398398

399-
There are two ODBC drivers available, PostODBC and OpenLink ODBC.
399+
There are two ODBC drivers available, PsqlODBC and OpenLink ODBC.
400400

401-
PostODBC is included in the distribution. More information about it
402-
can be gotten from: http://www.insightdist.com/psqlodbc
401+
PsqlODBC is included in the distribution. More information about it
402+
can be gotten from: ftp://ftp.postgresql.org/pub/odbc/index.html
403403

404404
OpenLink ODBC can be gotten from http://www.openlinksw.com. It works
405405
with their standard ODBC client software so you'll have PostgreSQL
@@ -410,6 +410,8 @@
410410
commercial-quality support, but a freeware version will always be
411411
available. Questions to postgres95@openlink.co.uk.
412412

413+
See also the ODBC chapter of the Programmer's Guide.
414+
413415
2.2) What tools are available for hooking PostgreSQL to Web pages?
414416

415417
A nice introduction to Database-backed Web pages can be seen at:
@@ -972,12 +974,9 @@ BYTEA bytea variable-length array of bytes
972974

973975
4.22) How do I create a column that will default to the current time?
974976

975-
This way always works:
977+
Use now():
976978
CREATE TABLE test (x int, modtime timestamp default now() );
977979

978-
In releases 7.0 and later, you may use:
979-
create table test (x int, modtime timestamp default 'now');
980-
981980
4.23) Why are my subqueries using IN so slow?
982981

983982
Currently, we join subqueries to outer queries by sequential scanning

doc/src/FAQ.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ <H4><A NAME="1.14">1.14</A>) How does PostgreSQL compare to other
434434
<DD>
435435

436436
PostgreSQL has most features present in large commercial DBMS's, like
437-
transactions, subselects, triggers, views, and sophisticated locking.
438-
We have some features they don't have, like user-defined types,
439-
inheritance, rules, and multi-version concurrency control to reduce lock
440-
contention. We don't have foreign key referential integrity or outer
437+
transactions, subselects, triggers, views, foreign key referential
438+
integrity, and sophisticated locking. We have some features they don't
439+
have, like user-defined types, inheritance, rules, and multi-version
440+
concurrency control to reduce lock contention. We don't have outer
441441
joins, but are working on them for our next release.<BR><BR>
442442

443443
<DT> <B>Performance</B>
@@ -506,11 +506,11 @@ <H2><CENTER>User Client Questions</CENTER></H2>
506506

507507
<H4><A NAME="2.1">2.1</A>) Are there ODBC drivers for PostgreSQL?</H4><P>
508508

509-
There are two ODBC drivers available, PostODBC and OpenLink ODBC.<P>
509+
There are two ODBC drivers available, PsqlODBC and OpenLink ODBC.<P>
510510

511-
PostODBC is included in the distribution. More information about it can
512-
be gotten from: <A HREF="http://www.insightdist.com/psqlodbc">
513-
http://www.insightdist.com/psqlodbc</A><P>
511+
PsqlODBC is included in the distribution. More information about it can
512+
be gotten from: <A HREF="ftp://ftp.postgresql.org/pub/odbc/index.html">
513+
ftp://ftp.postgresql.org/pub/odbc/index.html</A><P>
514514

515515
OpenLink ODBC can be gotten from <A HREF="http://www.openlinksw.com/">
516516
http://www.openlinksw.com</A>. It works with their standard ODBC client
@@ -522,6 +522,8 @@ <H4><A NAME="2.1">2.1</A>) Are there ODBC drivers for PostgreSQL?</H4><P>
522522
available. Questions to <A
523523
HREF="mailto:postgres95@openlink.co.uk">postgres95@openlink.co.uk</A>.<P>
524524

525+
See also the <A HREF="http://www.postgresql.org/docs/programmer/odbc.htm">
526+
ODBC chapter of the Programmer's Guide</A>.<P>
525527

526528

527529
<H4><A NAME="2.2">2.2</A>) What tools are available for hooking
@@ -1054,7 +1056,7 @@ <H4><A NAME="4.16.1">4.16.1</A>) How do I create a
10541056
option or <SMALL>COPY WITH OIDS</SMALL> option to preserve the oids.<P>
10551057

10561058
For more details, see Bruce Momjian's chapter on
1057-
<A HREF="http://www.postgresql.org/docs/aw_pgsql_book/node74.html">Numbering Rows.</A>
1059+
<A HREF="http://www.postgresql.org/docs/aw_pgsql_book">Numbering Rows.</A>
10581060

10591061
<H4><A NAME="4.16.2">4.16.2</A>) How do I get the back the generated SERIAL value after an insert?</H4><P>
10601062
Probably the simplest approach is to to retrieve the next SERIAL value from the sequence object with the <I>nextval()</I> function <I>before</I> inserting and then insert it explicitly. Using the example table in <A HREF="#4.16.1">4.16.1</A>, that might look like this:

0 commit comments

Comments
 (0)