Re: plpgsql arrays
От
Merlin Moncure
Тема
Re: plpgsql arrays
Дата
Msg-id
b42b73150904030818y448b72bdl8892e3839fd23955@mail.gmail.com
Ответ на
Re: plpgsql arrays (Matthew Wakeling)
Список
Дерево обсуждения
plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays justin <justin@emproshunts.com>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays justin <justin@emproshunts.com>
Re: plpgsql arrays Merlin Moncure <mmoncure@gmail.com>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Robert Haas <robertmhaas@gmail.com>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Simon Riggs <simon@2ndQuadrant.com>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Alvaro Herrera <alvherre@commandprompt.com>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Robert Haas <robertmhaas@gmail.com>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: plpgsql arrays Nathan Boley <npboley@gmail.com>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Merlin Moncure <mmoncure@gmail.com>
Re: plpgsql arrays Merlin Moncure <mmoncure@gmail.com>
Re: plpgsql arrays Matthew Wakeling <matthew@flymine.org>
Re: plpgsql arrays Merlin Moncure <mmoncure@gmail.com>
On Fri, Apr 3, 2009 at 11:15 AM, Matthew Wakeling wrote: > On Fri, 3 Apr 2009, Merlin Moncure wrote: >> >> select array(SELECT location FROM location, gene WHERE >> location.subjectid = gene.id ORDER BY objectid, intermine_start, >> intermine_end)) into genes; > > Yeah, that works nicely. > >> this will make array of location records. when you access the records >> to do the merge, make sure to use () noation: >> >> if (genes[x]).field > something then > > How is that different to genes[x].field? ah, it isn't...in many cases where you access composite type fields, () is required (especially in query). it isn't here, so you can safely leave it off. merlin
В списке pgsql-performance по дате отправления