Re: Getting the type Oid in a CREATE TYPE output function

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: Getting the type Oid in a CREATE TYPE output function
Дата
Msg-id e51f66da0610160635y7b4d2631vca8a24c2d9b4a306@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Getting the type Oid in a CREATE TYPE output function  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Getting the type Oid in a CREATE TYPE output function  (Weslee Bilodeau <weslee.bilodeau@hypermediasystems.com>)
Список 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 по дате отправления:

Предыдущее
От: "Marko Kreen"
Дата:
Сообщение: Re: Threaded python on FreeBSD
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Postgresql Caching