Re: [PATCH] by request: base64 for bytea - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] by request: base64 for bytea
Date
Msg-id 10672.993396387@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] by request: base64 for bytea  (Marko Kreen <marko@l-t.ee>)
List pgsql-hackers
Marko Kreen <marko@l-t.ee> writes:
> But what should be return type of decrypt()?

You'll need more than one name: decrypt to text, decrypt to bytea, etc.
Think about what happens when you need to support additional types.
Relying on implicit conversions or binary equivalence will not scale.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alex Pilosov
Date:
Subject: Re: [PATCH] by request: base64 for bytea
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCH] by request: base64 for bytea