James Pittman <j.pittman@travelaudience.com> writes:
> It does not seem possible to be able to cast a boolean to a smallint.
Well, there are also not direct casts provided from boolean to bigint,
numeric, real, or double precision ;-). I'm not terribly excited about
this.
regards, tom lane