Re: Getting the type Oid in a CREATE TYPE output function - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: Getting the type Oid in a CREATE TYPE output function
Date
Msg-id e51f66da0610160635y7b4d2631vca8a24c2d9b4a306@mail.gmail.com
Whole thread Raw
In response to Re: Getting the type Oid in a CREATE TYPE output function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Getting the type Oid in a CREATE TYPE output function
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: "Marko Kreen"
Date:
Subject: Re: Threaded python on FreeBSD
Next
From: "Merlin Moncure"
Date:
Subject: Re: Postgresql Caching