Re: Text <-> C string
От
Gregory Stark
Тема
Re: Text <-> C string
Дата
Msg-id
873ax7rc65.fsf@oxford.xeocode.com
Ответ на
Re: Text <-> C string (Brendan Jurd)
Список
Дерево обсуждения
Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: Text <-> C string Gregory Stark <stark@enterprisedb.com>
Re: Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: Text <-> C string Gregory Stark <stark@enterprisedb.com>
Re: Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: [PATCHES] Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: [PATCHES] Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: [PATCHES] Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: [PATCHES] Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: [PATCHES] Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Text <-> C string Andrew Dunstan <andrew@dunslane.net>
Re: Text <-> C string Bruce Momjian <bruce@momjian.us>
Re: [PATCHES] Text <-> C string Bruce Momjian <bruce@momjian.us>
Re: [PATCHES] Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Text <-> C string Sam Mason <sam@samason.me.uk>
Re: Text <-> C string Volkan YAZICI <yazicivo@ttmail.com>
Re: Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: Text <-> C string Gregory Stark <stark@enterprisedb.com>
Re: Text <-> C string Alvaro Herrera <alvherre@commandprompt.com>
Re: Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: Text <-> C string "Pavel Stehule" <pavel.stehule@gmail.com>
Re: Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
Re: Text <-> C string Bruce Momjian <bruce@momjian.us>
Re: Text <-> C string Alvaro Herrera <alvherre@commandprompt.com>
Re: [PATCHES] Text <-> C string "Brendan Jurd" <direvus@gmail.com>
Re: [PATCHES] Text <-> C string Tom Lane <tgl@sss.pgh.pa.us>
"Brendan Jurd" writes: > On 9/22/07, Gregory Stark wrote: >> The canonical way to do it is with >> >> DatumGetCString(DirectFunctionCall1(textout, t)) > > Ah, I see. Thanks. > > In that case, would it be helpful if I submitted a patch for the > various code fragments that do this locally, updating them to use > DatumGetCString? I would be interested in seeing just a list of such places if you have it handy. I don't think we consider it wrong to violate the text data type abstraction barrier like you describe though. I'm interested because any such code is possibly either failing to take into account toasted data or is unnecessarily detoasting packed varlenas. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления