Re: [PATCHES] cast bytea to/from bit strings

2006-05-09 Thread Fabien COELHO
Dear Tom, I think that the inability to convert nearly binary compatible standard types one to the other is a postgresql issue. Even if it is not often useful, the point is completeness and soundness of the type provided by the core. OK, can I get some feedback from others about this patch?

Re: [PATCHES] cast bytea to/from bit strings

2006-05-06 Thread Tom Lane
Bruce Momjian writes: > Fabien COELHO wrote: >> I think that the inability to convert nearly binary compatible standard >> types one to the other is a postgresql issue. Even if it is not often >> useful, the point is completeness and soundness of the type provided by >> the core. > OK, can I g

Re: [PATCHES] cast bytea to/from bit strings

2006-05-06 Thread Bruce Momjian
Fabien COELHO wrote: > > Dear Bruce, > > > I am not sure this is of general enough usefulness to be in the backend. > > Hmm... > > I think that the inability to convert nearly binary compatible standard > types one to the other is a postgresql issue. Even if it is not often > useful, the poin

Re: [PATCHES] cast bytea to/from bit strings

2006-05-05 Thread Fabien COELHO
Dear Bruce, I am not sure this is of general enough usefulness to be in the backend. Hmm... I think that the inability to convert nearly binary compatible standard types one to the other is a postgresql issue. Even if it is not often useful, the point is completeness and soundness of the t

Re: [PATCHES] cast bytea to/from bit strings

2006-05-05 Thread Bruce Momjian
I am not sure this is of general enough usefulness to be in the backend. Can you add it as a pgfoundry project? --- Fabien COELHO wrote: > > Dear PostgreSQL developers, > > Please find attached a small patch to convert byt

[PATCHES] cast bytea to/from bit strings

2006-05-04 Thread Fabien COELHO
Dear PostgreSQL developers, Please find attached a small patch to convert bytea to bit strings and vice versa. I used it in order to be able xor md5 results so as to checksum bundles of tuples together. The MD5 result is an hexa text convertible to bytea with decode, but then I was stuck...