From: | Ron Peterson <ron(dot)peterson(at)yellowbank(dot)com> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: convert binary string to datum |
Date: | 2007-10-13 17:41:02 |
Message-ID: | 20071013174102.GB18834@yellowbank.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2007-10-13_11:12:05-0400 Gregory Stark <stark(at)enterprisedb(dot)com>:
> "Ron Peterson" <ron(dot)peterson(at)yellowbank(dot)com> writes:
>
> > 2007-10-13_08:50:56-0400 Ron Peterson <ron(dot)peterson(at)yellowbank(dot)com>:
> >> 2007-10-13_01:22:06-0400 Gregory Stark <stark(at)enterprisedb(dot)com>:
> >
> >> > And normally you would define your own datatype and not use bytea.
> >>
> >> Actually, I already have my data in a structure much like varlena.
> >
> > Pght, I misunderstood what you were saying. You mean create a
> > full-blown new type. I was thinking completely internally. Yeah,
> > that's probably a better approach - I'll do that.
>
> Or you could just define new functions which operate on bytea if you're just
> storing binary data.
A tuple of two or three bytea values (cryptographic keys); e.g. (bytea,
bytea)
> I don't understand what you mean with "internally" if you're storing
> this in tuples?
I thought you were talking about something like a C structure - I think
I just misunderstood what you were saying. I'm still a little mixed up
about just exactly what, internally, a tuple and a tupledesc are and how
they are used. I think I can get where I want to go without completely
figuring that out right now though...
--
Ron Peterson
https://www.yellowbank.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2007-10-13 17:44:33 | Re: convert binary string to datum |
Previous Message | Martijn van Oosterhout | 2007-10-13 17:35:41 | Re: CHAR SETS |