Skip site navigation (1) Skip section navigation (2)

Re: Analysis Function

From: David Jarvis <thangalin(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Analysis Function
Date: 2010-06-11 20:38:07
Message-ID: (view raw or whole thread)
Lists: pgsql-performance

I added an explicit cast in the SQL:

        dateserial(extract(YEAR FROM
m.taken)::int,'||p_month1||','||p_day1||') d1,
        dateserial(extract(YEAR FROM
m.taken)::int,'||p_month2||','||p_day2||') d2

The function now takes three integer parameters; there was no performance

Thank you.


In response to


pgsql-performance by date

Next:From: Szymon KosokDate: 2010-06-12 12:03:10
Subject: ~400 TPS - good or bad?
Previous:From: David JarvisDate: 2010-06-11 20:30:58
Subject: Re: Analysis Function

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group