From 905109f24a49caed336ffe15f8191be440c42305 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 12 Nov 2001 07:38:57 +0000 Subject: [PATCH] Update FAQ. --- doc/FAQ | 6 +++--- doc/src/FAQ/FAQ.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/FAQ b/doc/FAQ index 0203710045..d1b9900e06 100644 --- a/doc/FAQ +++ b/doc/FAQ @@ -1,7 +1,7 @@ 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) @@ -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? - Use now(): -CREATE TABLE test (x int, modtime timestamp DEFAULT now() ); + Use CURRENT_TIMESTAMP: +CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP ); 4.23) Why are my subqueries using IN so slow? diff --git a/doc/src/FAQ/FAQ.html b/doc/src/FAQ/FAQ.html index efb5724282..e34794f866 100644 --- a/doc/src/FAQ/FAQ.html +++ b/doc/src/FAQ/FAQ.html @@ -12,7 +12,7 @@ alink="#0000FF">

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)
@@ -1202,9 +1202,9 @@ BYTEA bytea variable-length byte array (null-safe) 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 );
 
 
-- 2.40.0