mirror of
https://github.com/postgres/postgres.git
synced 2025-07-20 05:03:10 +03:00
Update FAQ.
This commit is contained in:
6
doc/FAQ
6
doc/FAQ
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Frequently Asked Questions (FAQ) for PostgreSQL
|
Frequently Asked Questions (FAQ) for PostgreSQL
|
||||||
|
|
||||||
Last updated: Sun Oct 14 19:27:20 EDT 2001
|
Last updated: Mon Nov 12 02:38:47 EST 2001
|
||||||
|
|
||||||
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
||||||
|
|
||||||
@ -938,8 +938,8 @@ BYTEA bytea variable-length byte array (null-safe)
|
|||||||
|
|
||||||
4.22) How do I create a column that will default to the current time?
|
4.22) How do I create a column that will default to the current time?
|
||||||
|
|
||||||
Use now():
|
Use CURRENT_TIMESTAMP:
|
||||||
CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
|
CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
|
||||||
|
|
||||||
4.23) Why are my subqueries using IN so slow?
|
4.23) Why are my subqueries using IN so slow?
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
alink="#0000FF">
|
alink="#0000FF">
|
||||||
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
||||||
|
|
||||||
<P>Last updated: Sun Oct 14 19:27:20 EDT 2001</P>
|
<P>Last updated: Mon Nov 12 02:38:47 EST 2001</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>
|
||||||
@ -1202,9 +1202,9 @@ BYTEA bytea variable-length byte array (null-safe)
|
|||||||
default to the current time?<BR>
|
default to the current time?<BR>
|
||||||
</H4>
|
</H4>
|
||||||
|
|
||||||
<P>Use <I>now()</I>:</P>
|
<P>Use <I>CURRENT_TIMESTAMP</I>:</P>
|
||||||
<PRE>
|
<PRE>
|
||||||
<CODE>CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
|
<CODE>CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
|
||||||
</CODE>
|
</CODE>
|
||||||
</PRE>
|
</PRE>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user