From: RPK <rpk.general@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Retrieve month from date
Date: Fri, 20 Apr 2007 09:13:37 -0700 (PDT)
Message-ID: <10105471.post@talk.nabble.com> (raw)
In-Reply-To: <11604f180704200519h5d858f6ey1efbbccd52ccd0c9@mail.gmail.com>
References: <11604f180704200519h5d858f6ey1efbbccd52ccd0c9@mail.gmail.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rpk.general@gmail.com
Subject: Re: Retrieve month from date
In-Reply-To: <10105471.post@talk.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox