On 10/12/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Weslee Bilodeau <weslee.bilodeau@hypermediasystems.com> writes:
> > It works perfectly so long as I used the same key for all my custom
> > types. When I want a different key for each type though (so for example,
> > encrypt credit cards with one key, addresses with another, etc) I need a
> > way to tell them apart.
>
> [ shrug... ] Seems like you should be putting the key ID into the
> stored encrypted datums, then.
The PGP functions happen to do it already - pgp_key_id().
--
marko