From: | Seref Arikan <serefarikan(at)kurumsalteknoloji(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PG-General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Does it make sense to break a large query into separate functions? |
Date: | 2013-05-08 14:09:01 |
Message-ID: | CA+4ThdrRp1=nETOKHDVGnEa3XgbROU=fTuWt7zHDiFAF2ua6uA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks Tom,
I am happy with a 10K feet level discussion of the approach, and your
response is just what I was looking for.
Regards
Seref
On Wed, May 8, 2013 at 3:05 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Seref Arikan <serefarikan(at)kurumsalteknoloji(dot)com> writes:
> > I've just noticed that some parts of the autogenerated queries can be
> > functions on their own. Would moving these parts to their own functions
> > help the query planner?
>
> It's difficult to answer that without a lot more detail than you've
> provided, but my offhand guess would be "no". Usually it's better
> when the planner can expand functions inline, which would just be
> reversing the transformation you're thinking of.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Julian | 2013-05-08 14:17:59 | Re: Design advice requested |
Previous Message | Tom Lane | 2013-05-08 14:05:17 | Re: Does it make sense to break a large query into separate functions? |