Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DEA01633CAE for ; Tue, 25 May 2010 01:25:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 05697-06 for ; Tue, 25 May 2010 04:25:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from imail.internode.com.au (exchht01-ext.internode.com.au [203.26.95.185]) by mail.postgresql.org (Postfix) with ESMTP id 0D10563297D for ; Tue, 25 May 2010 01:25:50 -0300 (ADT) Received: from EXCHMAIL.staff.internode.com.au ([169.254.1.229]) by exchht01.staff.internode.com.au ([fe80::193f:3ff6:d38f:74dc%12]) with mapi; Tue, 25 May 2010 13:55:46 +0930 From: Samuel Stearns To: "pgsql-admin@postgresql.org" Date: Tue, 25 May 2010 13:55:44 +0930 Subject: transaction_timestamp() Thread-Topic: transaction_timestamp() Thread-Index: Acr7wle+35Q7jJH3Te6VEan48ht+8g== Message-ID: <68B59BEDCD36854AADBDF17E91B2937A01A57CCCB9@EXCHMAIL.staff.internode.com.au> Accept-Language: en-US, en-AU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-AU Content-Type: multipart/alternative; boundary="_000_68B59BEDCD36854AADBDF17E91B2937A01A57CCCB9EXCHMAILstaff_" MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.01 tagged_above=-10 required=5 tests=BAYES_20=-0.001, HTML_MESSAGE=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/227 X-Sequence-Number: 34700 --_000_68B59BEDCD36854AADBDF17E91B2937A01A57CCCB9EXCHMAILstaff_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Howdy, I have an archiving script running in an 8.3 environment using transaction_= timestamp() for the INSERT and DELETE operations. I want to run the same t= hing in an 8.1 environment but transaction_timestamp() does not exist in 8.= 1. now() will not work because of the time that elapses between the INSERT= and DELETE operations (I will end up losing some data). Does anyone have = any suggestions, please? Thanks, Sam --_000_68B59BEDCD36854AADBDF17E91B2937A01A57CCCB9EXCHMAILstaff_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Howdy,

 

I have an archiving script running in an 8.3 environment using transaction_timestamp() for the INSERT and DELETE operations.  I want to run the same thing in an 8.1 environment but transaction_timestamp(= ) does not exist in 8.1.  now() will not work because of the time that elapses between the INSERT and DELETE operations (I will end up losing some data).  Does anyone have any suggestions, please?

 

Thanks,

 

Sam

 

--_000_68B59BEDCD36854AADBDF17E91B2937A01A57CCCB9EXCHMAILstaff_--