On 1/11/08, alphax <[EMAIL PROTECTED]> wrote:
> I want to compare the record's transaction id in sql statements or
> PL/pgSQL stored procedure. Are there any system function or operator can
> safely(transaction id wraparound safed) compare the transaction id?

In 8.3 there are txid functions that export 8byte wraparound-safe
transaction id, that can be safely stored in user tables:

http://developer.postgresql.org/pgdocs/postgres/functions-info.html#FUNCTIONS-TXID-SNAPSHOT

For 8.2 and below you can get them as external module from
Skytools package: http://pgfoundry.org/projects/skytools

-- 
marko

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to