Re: Retrieve month from date

From: RPK <rpk(dot)general(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Retrieve month from date
Date: 2007-04-20 16:13:37
Message-ID: 10105471.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Thanks both of you,

I ran EXPLAIN command on above suggested query and got following result:

"Aggregate (cost=2.77..2.79 rows=1 width=10)"
" -> Seq Scan on studentfeespayment (cost=0.00..2.77 rows=1 width=10)"
" Filter: (date_part('month'::text, (recieptmonthyear)::timestamp
without time zone) = 4::double precision)"

What does this mean? Can I optimize it better?

--
View this message in context: http://www.nabble.com/Retrieve-month-from-date-tf3617513.html#a10105471
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo De León 2007-04-20 16:33:30 Re: Retrieve month from date
Previous Message Dmitry Turin 2007-04-20 15:59:23 Fwd: Re[2]: We all are looped on Internet: request + transport = invariant