At 2005-05-19 11:47:16 +0530, [EMAIL PROTECTED] 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

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to