Re: UDFs

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: jf <jf(at)danglingpointers(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: UDFs
Date: 2007-08-13 08:39:17
Message-ID: 162867790708130139s47d0652dlfc6669eeed04ee6a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> hash = (text *)palloc(hlen+1);

??? palloc(hlen + VARHDRSZ)

>
> memset(VARDATA(hash), 0, hlen);
> SHA512(VARDATA(plain), hlen, VARDATA(hash));

++ VARATT_SIZEP (hash) = VARHDRSZ + ....;

> PG_RETURN_TEXT_P(hash);
> }
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

In response to

  • UDFs at 2007-08-13 15:17:36 from jf

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-08-13 08:42:52 Re: UDFs
Previous Message Pavel Stehule 2007-08-13 06:45:20 Re: Persistent connections in PHP