"Tom Lane" <[EMAIL PROTECTED]> writes: > Log Message: > ----------- > Fix up text concatenation so that it accepts all the reasonable cases that > were accepted by prior Postgres releases. This takes care of the loose end > left by the preceding patch to downgrade implicit casts-to-text. To avoid > breaking desirable behavior for array concatenation, introduce a new > polymorphic pseudo-type "anynonarray" --- the added concatenation operators > are actually text || anynonarray and anynonarray || text.
Just a crazy thought -- probably not worth doing now or perhaps ever -- but I thought I would get it down in bits: The above change eliminated cast functions to and from text by using the text i/o functions. We could do the same for casts to and from bytea using binary i/o functions. I'm not sure how important it is for users to be able to reliably store any data type in a bytea -- certainly not as important as being able to reliably cast to and from text. Perhaps if you're doing some form of replication between different architectures you might want to use binary representation for your transfers. Or if you're doing something in a PL language like compressing or bundling up multiple data in a container format or something. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq