Re: Auto Partitioning

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: David Fetter <david(at)fetter(dot)org>, Simon Riggs <simon(at)2ndquadrant(dot)com>, NikhilS <nikkhils(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Auto Partitioning
Date: 2007-04-04 20:05:55
Message-ID: 46140523.2030307@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Markus Schiltknecht wrote:
> Andrew Dunstan wrote:
>> David Fetter wrote:
>>> That would be where the provably-distinct part comes in, so yes.
>>
>> That assumes you can provide some provably distinct test. In the
>> general case I have in mind that isn't so.
>
> Could you please give a somewhat more concrete example, I'm not
> following here.

What I'm asking about has nothing much to do with partitioning.

Say I have two tables, each with a field FKed to a field in a third
table. I'd like to create the values to be unique across the referring
tables. Now, there are various tricks that can be played either with
custom triggers or redundant data to do this, but there's no easy way.
However, a multi-table unique index would do it for me quite nicely, if
we could create such a thing.

However, I don't know how to set up a test for provable distinctness in
this general case.

I guess my point was really that multi-table indexes might have uses
beyond partitioning.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-04-04 20:14:42 Re: Modifying TOAST thresholds
Previous Message Tom Lane 2007-04-04 20:00:00 Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-04-04 20:28:48 Re: Re: [HACKERS] [COMMITTERS] pgsql: Add GUC temp_tablespaces to provide a default location for
Previous Message Tom Lane 2007-04-04 20:00:00 Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch