Re: table as log (multiple writers and readers)

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: table as log (multiple writers and readers)
Date: 2008-04-17 03:17:29
Message-ID: 20080417031729.GA1226@crankycanuck.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Apr 17, 2008 at 12:35:33AM +0800, Craig Ringer wrote:
> That's subject to the same issues, because a transaction's
> current_timestamp() is determined at transaction start.

But clock_timestamp() (and its ancestors in Postgres) don't have that
restriction. I dunno that it's enough for you, though, since you have
visibility issues as well. You seem to want both the benefits of files and
relational database transactions, and I don't think you can really have both
at once without paying in reader complication.

One way I can think of doing it is to write a seen_log that notes what the
client has already seen with a timestamp of (say) 1 minute. Then you can
say "go forward from this time excluding ids (ids here)".

A

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-04-17 04:24:21 Re: Binary bytea to literal strings
Previous Message Dragan Zubac 2008-04-17 02:57:12 Binary bytea to literal strings