Re: column ordering, was Re: [PATCHES] Enums patch v2

From: Richard Huxton <dev(at)archonet(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Kenneth Marshall <ktm(at)is(dot)rice(dot)edu>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, Gregory Stark <stark(at)enterprisedb(dot)com>
Subject: Re: column ordering, was Re: [PATCHES] Enums patch v2
Date: 2006-12-20 14:36:32
Message-ID: 45894A70.4020509@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Andrew Dunstan wrote:
>
> Or we could divide the positive number space in two, by starting at 2^14
> (attnums are int2). Then a simple bitmask test would work to distinguish
> them.

Perhaps divide-by-four, then it would be possible to have calculated
columns (as mentioned recently on one of the lists). In particular, that
would let you have FK constraints with a constant as part of the key.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-12-20 14:46:30 Re: [HACKERS] Bundle of patches
Previous Message Teodor Sigaev 2006-12-20 14:35:53 Re: Bundle of patches

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-12-20 14:46:30 Re: [HACKERS] Bundle of patches
Previous Message Teodor Sigaev 2006-12-20 14:35:53 Re: Bundle of patches