Re: bitwise storage and operations

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Jonathan Vanasco <postgres(at)2xlp(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: bitwise storage and operations
Date: 2016-09-26 21:04:28
Message-ID: CAKFQuwYYFHjD-3YdruT=VEK6PVJdyUYBgt2jQ3ZuheJ5bBtUKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Sep 26, 2016 at 1:44 PM, Jonathan Vanasco <postgres(at)2xlp(dot)com> wrote:

> The documentation doesn't have any examples for SELECT for the bitwise
> operators,

Um...

​https://www.postgresql.org/docs/9.5/static/functions-bitstring.html​

SELECT B'111'::varbit & B'101'::varbit = B'101'::varbit

​SELECT 10::bit(8)::varbit​

​David J.​

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2016-09-26 23:34:56 Re: bitwise storage and operations
Previous Message Jonathan Vanasco 2016-09-26 20:44:34 bitwise storage and operations