Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

Next:From: Tom LaneDate: 2006-12-20 14:46:30
Subject: Re: [HACKERS] Bundle of patches
Previous:From: Teodor SigaevDate: 2006-12-20 14:35:53
Subject: Re: Bundle of patches

pgsql-patches by date

Next:From: Tom LaneDate: 2006-12-20 14:46:30
Subject: Re: [HACKERS] Bundle of patches
Previous:From: Teodor SigaevDate: 2006-12-20 14:35:53
Subject: Re: Bundle of patches

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group