Re: ADTs and embedded sql
От | Tom Lane |
---|---|
Тема | Re: ADTs and embedded sql |
Дата | |
Msg-id | 12675.1024591054@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | ADTs and embedded sql ("Tony Griffiths(RA)" <griffitt@cs.man.ac.uk>) |
Список | pgsql-hackers |
"Tony Griffiths(RA)" <griffitt@cs.man.ac.uk> writes: > a) The client-side programmer has to be responsible for parsing the > returned string, which could cause problems if the output format of the > ADT is changed, and You seem to be proposing that we instead expose the internal storage format of the ADT, which seems to me to be much more likely to change than the string representation. (Not to mention that it will open up a host of platform compatibility issues --- endianness, struct packing, float format rules for example.) To give just one example, as of 7.3 there will be two entirely different internal formats for the datetime-related types. A client would have to be prepared to cope with that, on top of possible endian and float format differences between server and client machines. Parsing the string representation may be an annoyance, but I suspect it is the lesser evil. regards, tom lane
В списке pgsql-hackers по дате отправления: