New Type

From: Olivier PRENANT <ohp(at)pyrenet(dot)fr>
To: pgsql-hackers(at)posgresql(dot)org
Cc: pgsql-sql(at)postgresql(dot)org
Subject: New Type
Date: 2000-05-26 20:03:56
Message-ID: Pine.UW2.4.21.0005262158330.4093-100000@server.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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???

TIA

--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
Quartier d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikheev, Vadim 2000-05-26 21:04:49 RE: Berkeley DB...
Previous Message Zeugswetter Andreas 2000-05-26 20:01:55 Re: Any reason to use pg_dumpall on an idle database

Browse pgsql-sql by date

  From Date Subject
Next Message Gabriel Russell 2000-05-26 21:24:51 is limit a reserved keyword?
Previous Message Zeugswetter Andreas 2000-05-26 19:47:38 Re: Re: [SQL] aliases break my query