Re: libpq support for arrays and composites
От | Tom Lane |
---|---|
Тема | Re: libpq support for arrays and composites |
Дата | |
Msg-id | 16909.1213107791@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: libpq support for arrays and composites ("Merlin Moncure" <mmoncure@gmail.com>) |
Ответы |
Re: libpq support for arrays and composites
|
Список | pgsql-hackers |
"Merlin Moncure" <mmoncure@gmail.com> writes: > On 6/8/08, Andrew Dunstan <andrew@dunslane.net> wrote: >> Tom Lane wrote: >>> Are you intending that these operations support both text and binary >>> results? >> >> I'm a bit open on that. > IMO, support for binary is critical. Because of the interplay of the > array and composite out formats, the number of backslashes grows > exponentially (!) with nesting levels. This makes text format arrays > unsuitable for any non-trivial operations involving arrays of > composites. Um ... but who cares, as long as you've got functions to wrap and unwrap the data for you? Personally I wouldn't object if these were text-only; they'd be a whole lot more future-proof that way. > One alternative is to do a MAXDIM (6) argument 'getter' also taking > the requested dimension with perhaps some wrapping macros for > simplicity. One issue with this is that it seems to suggest array > slicing etc. which seems more complicated than it's worth. Let's not embed MAXDIM in libpq's ABI :-( regards, tom lane
В списке pgsql-hackers по дате отправления: