Best bit fields implementation under postgres
- From: alex221@xxxxxxxxx
- Date: 22 Jan 2006 13:08:30 -0800
Hello. I'm working on a database (postgresql) structure and some of the
tables in it
must store bit fields. Later on it must handle queries like "give me
all rows in this table that have bit N set to 1 AND bit M set to 0 AND
......". As far as i know i have several ways to inplement bit fields.
1. Using Bit String Types;
2. using plain integers
3. using arrays of boolean values
4. anything else?
What is the best way from the viewpoint of performance? Thanks
.
- Follow-Ups:
- Re: Best bit fields implementation under postgres
- From: --CELKO--
- Re: Best bit fields implementation under postgres
- From: Christopher Browne
- Re: Best bit fields implementation under postgres
- Prev by Date: Re: Oracle - MySQL decision
- Next by Date: Re: Best bit fields implementation under postgres
- Previous by thread: Oracle - MySQL decision
- Next by thread: Re: Best bit fields implementation under postgres
- Index(es):
Relevant Pages
|