Re: SQL99, CREATE CAST, and initdb
| От | Peter Eisentraut |
|---|---|
| Тема | Re: SQL99, CREATE CAST, and initdb |
| Дата | |
| Msg-id | Pine.LNX.4.44.0206261800560.838-100000@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: SQL99, CREATE CAST, and initdb (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: SQL99, CREATE CAST, and initdb
|
| Список | pgsql-hackers |
Tom Lane writes: > IIRC, a function is only considered to be a cast function if it matches > by name *and schema* with the target type. So if you, for example, > make a function public.int4(something), it'll never be considered a > cast function for pg_catalog.int4. I had some doubts about that rule > when I put it in, but so far have not thought of an alternative I like > better. Perhaps it wouldn't be such a terrible idea after all to store the casting paths separately, such as in a system table pg_cast (from, to, func, implicit). This would implement the SQL99 spec fairly exactly. -- Peter Eisentraut peter_e@gmx.net
В списке pgsql-hackers по дате отправления: