Re: User defined I/O conversion casts
| От | Heikki Linnakangas |
|---|---|
| Тема | Re: User defined I/O conversion casts |
| Дата | |
| Msg-id | 48B817FE.6030906@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: User defined I/O conversion casts (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: > Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes: >> Patch attached. I'm using a magic OID "1" in pg_cast.castfunc field to >> mark these extra I/O conversion casts. > > Ugh. That's really unacceptable (doesn't it make the oidjoins > regression test fail?), Yeah, it does if you create a cast like that. And pg_dump/restore will need to be taught about it as well. > I think that as things stand at the moment, you can get I/O conversion > casts to work for a user-defined type by making it be of string > category. Maybe that would be an easier way to get the effect. Hmm. That would be sensible only for types that are, well, strings. Not if you wanted to make the cast from, say, int4 to text implicit. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: