pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: selkovjr@mcs.anl.gov
To: ohp@pyrenet.fr
Cc: pgsql-sql@postgresql.org
Subject: Re: New Type
Date: Sat, 27 May 2000 02:22:32 -0500
Message-ID: <200005270722.CAA03709@mail.xnet.com> (raw)
In-Reply-To: <Pine.UW2.4.21.0005262158330.4093-100000@server.pyrenet.fr>
References: <Pine.UW2.4.21.0005262158330.4093-100000@server.pyrenet.fr>


> 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





view thread (2+ messages)

Message-ID: <200005270722.CAA03709@mail.xnet.com>
Permalink:  ../200005270722.CAA03709@mail.xnet.com/
Also on:    postgresql.org/message-id/200005270722.CAA03709@mail.xnet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: selkovjr@mcs.anl.gov, ohp@pyrenet.fr
  Subject: Re: New Type
  In-Reply-To: <200005270722.CAA03709@mail.xnet.com>
  References: <Pine.UW2.4.21.0005262158330.4093-100000@server.pyrenet.fr> <200005270722.CAA03709@mail.xnet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox