From demolish@cwgsy.net Fri Feb 21 11:33:22 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4D3F8475AFA for ; Fri, 21 Feb 2003 06:33:22 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 85345-01 for ; Fri, 21 Feb 2003 06:33:11 -0500 (EST) Received: from gsy_sbs_1.cisx.com (unknown [213.133.202.58]) by postgresql.org (Postfix) with ESMTP id 9CAAC475925 for ; Fri, 21 Feb 2003 06:32:54 -0500 (EST) Received: from DEMOLITION ([192.168.100.22]) by gsy_sbs_1.cisx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id FLGV4P2D; Fri, 21 Feb 2003 11:25:43 -0000 Message-ID: <002601c2d99d$8ca4d220$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" Subject: Changing the time on the server Date: Fri, 21 Feb 2003 11:36:56 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0023_01C2D99D.8996CED0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/349 X-Sequence-Number: 7547 This is a multi-part message in MIME format. ------=_NextPart_000_0023_01C2D99D.8996CED0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Could somebody tell me the consequences of setting the date forward in time= on the server running PostgreSQL and then at a later date, after some tran= sactions have been committed, setting the date back in time? Thanks in advance, Donald Fraser ------=_NextPart_000_0023_01C2D99D.8996CED0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Could somebody tell me the consequences=20 of setting the date forward in time on the server running Postgre= SQL=20 and then at a later date, after some transactions have been=20 committed, setting the date back in time?
 
Thanks in advance,
Donald Fraser
------=_NextPart_000_0023_01C2D99D.8996CED0-- From nikolaus@dilger.cc Fri Feb 21 15:23:24 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A9421474E5C for ; Fri, 21 Feb 2003 10:23:24 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 99011-04 for ; Fri, 21 Feb 2003 10:23:13 -0500 (EST) Received: from c001.snv.cp.net (h008.c001.snv.cp.net [209.228.32.122]) by postgresql.org (Postfix) with SMTP id 433EF474E4F for ; Fri, 21 Feb 2003 10:23:13 -0500 (EST) Received: (cpmta 15202 invoked from network); 21 Feb 2003 07:23:16 -0800 Received: from 209.228.32.120 (HELO mail.dilger.cc.criticalpath.net) by smtp.register-admin.com (209.228.32.122) with SMTP; 21 Feb 2003 07:23:16 -0800 X-Sent: 21 Feb 2003 15:23:16 GMT Received: from [216.68.146.219] by mail.dilger.cc with HTTP; Fri, 21 Feb 2003 07:23:15 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 To: demolish@cwgsy.net Cc: pgsql-admin@postgresql.org From: "Nikolaus Dilger" Subject: Re: Changing the time on the server X-Sent-From: nikolaus@dilger.cc Date: Fri, 21 Feb 2003 07:23:15 -0800 (PST) X-Mailer: Web Mail 5.2.3-0_sol28 Message-Id: <20030221072316.25194.h006.c001.wm@mail.dilger.cc.criticalpath.net> X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/350 X-Sequence-Number: 7548 Donald, It depends on your application and by how much you change the time. If you have a database field that is populated with the system time when you insert records your application logic may not work as intended. Not sure why you would want to play with the system clock in the first place. If you use NTP (Network Time Protocol) your server will always have the exact time.=20 If your time is off you usually only have to change it once to the correct time. And it is good practice to have the database down if you ever have to set the time backwards. E.g. if my system clock would be 15 minutes to fast, I would keep the database down for at least 15 minutes after chaning the clock back to avoid mismatch in the timestamps. Regards, Nikolaus Dilger On Fri, 21 Feb 2003, "Donald Fraser" wrote: Could somebody tell me the consequences=20 of=A0setting the date forward in=A0time on the server running PostgreSQL=20 and then at a later date, after some transactions have been=20 committed,=A0setting the date back in time? =A0 Thanks in advance, Donald Fraser From tgl@sss.pgh.pa.us Fri Feb 21 15:38:52 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6646B475BEC for ; Fri, 21 Feb 2003 10:38:52 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 06292-06 for ; Fri, 21 Feb 2003 10:38:41 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 1C994475CA6 for ; Fri, 21 Feb 2003 10:35:41 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1LFZh5u014976; Fri, 21 Feb 2003 10:35:44 -0500 (EST) To: "Donald Fraser" Cc: "[ADMIN]" Subject: Re: Changing the time on the server In-reply-to: <002601c2d99d$8ca4d220$1664a8c0@DEMOLITION> References: <002601c2d99d$8ca4d220$1664a8c0@DEMOLITION> Comments: In-reply-to "Donald Fraser" message dated "Fri, 21 Feb 2003 11:36:56 +0000" Date: Fri, 21 Feb 2003 10:35:43 -0500 Message-ID: <14975.1045841743@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/351 X-Sequence-Number: 7549 "Donald Fraser" writes: > Could somebody tell me the consequences of setting the date forward in time= > on the server running PostgreSQL and then at a later date, after some tran= > sactions have been committed, setting the date back in time? AFAIR, Postgres itself couldn't care less. If your application stores timestamps into the database, it might get a little confused about which actions were done in what order ... regards, tom lane