Re: Problems with pgcrypto and special characters - Mailing list pgsql-general

From Tom Lane
Subject Re: Problems with pgcrypto and special characters
Date
Msg-id 24650.1109619849@sss.pgh.pa.us
Whole thread Raw
In response to Problems with pgcrypto and special characters  ("Markus Wollny" <Markus.Wollny@computec.de>)
List pgsql-general
"Markus Wollny" <Markus.Wollny@computec.de> writes:
> ... I'am using the following function as workaround for a bytea-to-text-cast:

> create or replace function bytea2text(bytea) returns text as '
>  begin
>    return $1;
>  end;
>  ' language plpgsql;

That looks like your problem right there.

Possibly a binary cast (WITHOUT FUNCTION) would solve your problem,
though I doubt it will work well on bytea values containing \0.

            regards, tom lane

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Fast major-version upgrade (was: postgresql 8.0 advantages)
Next
From: bill@wadley.org
Date:
Subject: Clay Shirky observation regarding MySQL