Re: md5(bytea)

From: Abhijit Menon-Sen <ams(at)oryx(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: md5(bytea)
Date: 2005-05-19 06:27:16
Message-ID: 20050519062716.GB23006@penne.toroid.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

At 2005-05-19 11:47:16 +0530, ams(at)oryx(dot)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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-05-19 09:14:06 Re: numeric precision when raising one numeric to another.
Previous Message Abhijit Menon-Sen 2005-05-19 06:17:16 Re: md5(bytea)