Re: bigint vs txid user confusion

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: bigint vs txid user confusion
Date: 2016-12-21 06:06:34
Message-ID: 6a1124fb-df55-6f70-b1e8-3a29f576a7b5@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 12/20/16 10:20 PM, Craig Ringer wrote:
> Tools look at pg_class.relfrozenxid and pg_databse.datfrozenxid more
> than probably anything else, so making changes that ignores them is
> pretty pointless.

Except the only useful way I know of to access *frozenxid is using
age(), and even that is a royal PITA when the xid is a special xid. So
I'd argue that we should effectively remove xid from user's view. Even
if we don't want to bloat pg_class by 4 bytes, we should just make xid
even more opaque than it is today and tell users to just cast it to bigxid.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Borodin 2016-12-21 06:26:57 Re: pg_background contrib module proposal
Previous Message Tom Lane 2016-12-21 05:32:22 Re: simplehash vs. pgindent