|
|
Choosing A Webhost: |
Re: Explain plan for 2 column index : timestamps and time zones: msg#00317db.postgresql.performance
> From: Tom Lane [mailto:tgl@xxxxxxxxxxxxx] > My guess is that the original SQL was > WHERE ... date_from = current_timestamp > This should be > WHERE ... date_from = localtimestamp > if timestamp without tz is the intended column datatype. Thank you. The problem was exactly this: current_timestamp: TIMESTAMP with TZ my attribute "date_from TIMESTAMP " - without TZ After change to WHERE ... date_from = localtimestamp the plan worked just well. > (it really sucks that SQL specifies "timestamp" to default to "without time zone" ...) Tzones is one area I never delt with and IMMEDIATELY ran into problem, implicit type conversion is an evil. ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Cost of indexscan, Kari Lavikka |
|---|---|
| Next by Date: | Unique index and estimated rows., Kari Lavikka |
| Previous by Thread: | Cost of indexscan, Kari Lavikka |
| Next by Thread: | Unique index and estimated rows., Kari Lavikka |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |