Re: New Type

Поиск
Список
Период
Сортировка
От selkovjr@mcs.anl.gov
Тема Re: New Type
Дата
Msg-id 200005270722.CAA03709@mail.xnet.com
обсуждение исходный текст
Ответ на New Type  (Olivier PRENANT <ohp@pyrenet.fr>)
Список pgsql-sql
> 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
Дата:
Сообщение: Re: is limit a reserved keyword?
Следующее
От: CB
Дата:
Сообщение: joins again