Re: looking for a globally unique row ID

From: Rafal Pietrak <rafal(at)ztk-rp(dot)eu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: looking for a globally unique row ID
Date: 2017-09-15 19:39:24
Message-ID: 4a6050c8-98cd-573f-d83c-87cd3456baa9@ztk-rp.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

W dniu 15.09.2017 o 20:49, Rob Sargent pisze:
>
>
> On 09/15/2017 12:45 PM, Adam Brusselback wrote:
>>
>> I cannot image a single postgres index covering more than one
>> physical table. Are you really asking for that?
>>
>>
>> While not available yet, that is a feature that has had discussion
>> before. Global indexes are what i've seen it called in those
>> discussions. One of the main use cases is to provide uniqueness
>> across multiple tables, which would also allow things like foreign
>> keys on partitioned tables.
> I had a sneaking suspicion that partitioning would be the use-case, but
> clearly there's at least the 'notion' of a single entity
>

But (from my particular application perspective) it's quite vital.

Still, pondering ways to restructure my schema I came to conclusions
that having an index covering inherited hierarchy could help automate
partitioning - as opposed to current requirements of putting explicit
CHECKs into every child tables of that hierarchy.... and keeping those
check consisting as the schema grows. I'm not too sure though, as I'm
not familiar with postgres implementation internals.

-R

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-09-15 19:52:54 Re: cursor declare
Previous Message Peter Koukoulis 2017-09-15 19:35:16 cursor declare