Received: from www.schell.de (root@[195.20.238.2]) by hub.org (8.8.8/8.7.5) with ESMTP id LAA03608 for ; Sun, 2 Aug 1998 11:26:12 -0400 (EDT) Received: from guerilla.foo.bar (hennen30.iserlohn.netsurf.de [194.195.194.222]) by www.schell.de (8.9.0/8.9.0) with ESMTP id RAA06375 for ; Sun, 2 Aug 1998 17:26:10 +0200 Received: from localhost (localhost [127.0.0.1]) by guerilla.foo.bar (8.9.0/8.9.0) with SMTP id RAA03168 for ; Sun, 2 Aug 1998 17:26:01 +0200 Date: Sun, 2 Aug 1998 17:26:01 +0200 (MET DST) From: Sascha Schumann Reply-To: sas@schell.de To: pgsql-sql@postgresql.org Subject: int/bit fields Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi all, we are in the progress of converting a flat ascii database to Postgres. In the old database we used some int's to store bit fields which could be easily used after parsing and converting them to numbers. So, I need for example sth like this: SELECT * FROM mytable WHERE (statusbits & 8) <> 0 I had a quick look at the backend/utils/adt source directory, but didn't found a function which provides such services. Where has the logic gone? Any help appreciated. Sascha Schumann