Update FAQ.

REL7_1_STABLE
Bruce Momjian 25 years ago
parent cfe26c0fb1
commit 5eced96f2c
  1. 8
      doc/FAQ
  2. 2136
      doc/src/FAQ/FAQ.html

@ -229,14 +229,12 @@
The bugs mailing list is available. To subscribe to this list, send
email to pgsql-bugs-request@PostgreSQL.org with a body of:
subscribe
end
There is also a developers discussion mailing list available. To
subscribe to this list, send email to
pgsql-hackers-request@PostgreSQL.org with a body of:
subscribe
end
@ -964,19 +962,19 @@ BYTEA bytea variable-length byte array (null-safe)
4.22) How do I create a column that will default to the current time?
Use now():
CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
4.23) Why are my subqueries using IN so slow?
Currently, we join subqueries to outer queries by sequentially
scanning the result of the subquery for each row of the outer query. A
workaround is to replace IN with EXISTS:
SELECT *
SELECT *
FROM tab
WHERE col1 IN (SELECT col2 FROM TAB2)
to:
SELECT *
SELECT *
FROM tab
WHERE EXISTS (SELECT col2 FROM TAB2 WHERE col1 = col2)

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save