Search Postgresql Archives

Re: UDFs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
>         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
>

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux