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: AANLkTinPNQZv_9BS1fkoLPXzcBZe8FFv77PBRhPR-GpL@mail.gmail.com (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group