Re: md5(bytea) - Mailing list pgsql-patches

From Abhijit Menon-Sen
Subject Re: md5(bytea)
Date
Msg-id 20050519062716.GB23006@penne.toroid.org
Whole thread Raw
In response to Re: md5(bytea)  (Abhijit Menon-Sen <ams@oryx.com>)
List pgsql-patches
At 2005-05-19 11:47:16 +0530, ams@oryx.com wrote:
>
> + Datum
> + md5_bytea(PG_FUNCTION_ARGS)
> + {
> +     /* It would be nice if we could avoid de-toasting the whole bytea,
> +      * and feed it to md5_hash in small chunks instead. */
> +     struct varlena *in = PG_DETOAST_DATUM(PG_GETARG_DATUM(0));

Oops, I guess that should be "bytea *in = PG_GETARG_BYTEA_P(0);" now.

-- ams

pgsql-patches by date:

Previous
From: Abhijit Menon-Sen
Date:
Subject: Re: md5(bytea)
Next
From: Tom Lane
Date:
Subject: Re: Refactoring in lock.c