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: AANLkTinPNQZv_9BS1fkoLPXzcBZe8FFv77PBRhPR-GpL@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

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
loss.

Thank you.

Dave

In response to

Responses

Browse pgsql-performance by date

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