Re: New Type

Поиск
Список
Период
Сортировка
Искать
От
selkovjr@mcs.anl.gov
Тема
Re: New Type
Дата
в 03:22:52
Msg-id
200005270722.CAA03709@mail.xnet.com
Ответ на
New Type (Olivier PRENANT)
Список
Дерево обсуждения
New Type Olivier PRENANT <ohp@pyrenet.fr>
Re: New Type selkovjr@mcs.anl.gov

> Hi all,
> 
> I'm trying to create a type password; the goal is to have a table like:
> 
> CREATE TABLE test (
> username varchar,
> pass passwd);
> 
> insert into test values ('me','secret');
> 
> and have "secret" being automagicly crypted.
> 
> What I want is to mimic the PASSWORD function of mysql but much better,
> not having to call a function.
> 
> I just can't figure how to write the xx_crypt(opaque) returns opaque
> function.
> 
> Any help available???

Yes. Send me your code as a function that runs in a.out, I will
convert it. You will get in a form suitable for use as a contrib. You
will then be on your own. I'll do it in a split-second, but give me a
day or two to respond; I am moving and can't read my mail often enough.

--Gene



В списке pgsql-sql по дате отправления
От: Tom Lane
Дата:
От: CB
Дата:
Сообщение: joins again
FAQ