Re: New Type - Mailing list pgsql-sql

From selkovjr@mcs.anl.gov
Subject Re: New Type
Date
Msg-id 200005270722.CAA03709@mail.xnet.com
Whole thread Raw
In response to New Type  (Olivier PRENANT <ohp@pyrenet.fr>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: is limit a reserved keyword?
Next
From: CB
Date:
Subject: joins again