Re: Feature Request: Multi-octet raw

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Trent Shipley <tshipley(at)deru(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Request: Multi-octet raw
Date: 2005-12-07 12:43:41
Message-ID: 20051207124341.GA3450@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 06, 2005 at 08:54:42PM -0700, Trent Shipley wrote:
> It would be nice if Postgresql supported multi-octet raw data. Certainly a
> lot of what you would do with it would be similar to bytea, but the basic
> string functions would be overloaded so that the unit of work would be a
> multi-octet word.

Well, PostgreSQL allows you to create your own types so you could just
make one that does what you want. The only tricky part would be the
syntax on creation because user-defined types can't take parameters.
OTOH, maybe by the time someone writes the code for such a type the
details will have been worked out.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zoltan Boszormenyi 2005-12-07 13:50:14 Re: SERIAL type feature request
Previous Message Luke Lonergan 2005-12-07 10:46:41 Re: Replication on the backend