Re: [Review] Tests citext casts by David Wheeler.
От | David E. Wheeler |
---|---|
Тема | Re: [Review] Tests citext casts by David Wheeler. |
Дата | |
Msg-id | F493CAA7-8D82-45B6-9C9B-925639920644@kineticode.com обсуждение исходный текст |
Ответ на | Re: [Review] Tests citext casts by David Wheeler. ("David E. Wheeler" <david@kineticode.com>) |
Ответы |
Re: [Review] Tests citext casts by David Wheeler.
Re: [Review] Tests citext casts by David Wheeler. |
Список | pgsql-hackers |
On Sep 12, 2008, at 11:06, David E. Wheeler wrote: >> Er, look into pg_cast and then pg_proc? For instance >> >> select oid::regprocedure, prosrc from pg_proc >> where oid in (select castfunc from pg_cast); > > That looks like *exactly* what I need. Thanks! Pity. Looks like there were only a few I wasn't using, text_char, char_text, text_name, and texttoxml. Do I really need to keep all my other casts like these in 8.3? CREATE OR REPLACE FUNCTION int8(citext) RETURNS int8 AS 'SELECT int8( $1::text )' LANGUAGE SQL IMMUTABLE STRICT; CREATE OR REPLACE FUNCTION citext(int8) RETURNS citext AS 'SELECT text( $1 )::citext' LANGUAGE SQL IMMUTABLE STRICT; Thanks, David
В списке pgsql-hackers по дате отправления: