Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > Re: statement_t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 3761 of 4088
Post > Topic >>

Re: statement_timeout and crosstab

by tgl@[EMAIL PROTECTED] (Tom Lane) May 10, 2008 at 04:57 PM

"Tiago D. Jacobs - iMDT" <tiago@[EMAIL PROTECTED]
> writes:
> ( 5 ) Here's the problem (it returns without breaking by timeout):

Hm, works fine here:

ERROR:  canceling statement due to statement timeout
CONTEXT:  SQL statement "SELECT i.item_name::text As row_name, 
to_char(if.action_date, 'mon')::text As bucket,
        SUM(if.num_used)::integer As bucketvalue
    FROM inventory As i INNER JOIN inventory_flow As if
        ON i.item_id = if.item_id
      AND action_date BETWEEN date '2007-01-01' and date '2007-12-31 
23:59'
    GROUP BY i.item_name, to_char(if.action_date, 'mon'), 
date_part('month', if.action_date)
    ORDER BY i.item_name"

How long does the query run on your machine?  If it's less than 10ms,
maybe what you're seeing is just that the resolution of
statement_timeout isn't necessarily less than 10ms, depending on
platform.

What is the platform, anyway?  And what Postgres version?

			regards, tom lane

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 4 Posts in Topic:
statement_timeout and crosstab
tiago@[EMAIL PROTECTED]   2008-05-09 16:06:14 
Re: statement_timeout and crosstab
tgl@[EMAIL PROTECTED] (T  2008-05-09 23:59:45 
Re: statement_timeout and crosstab
tiago@[EMAIL PROTECTED]   2008-05-10 16:52:01 
Re: statement_timeout and crosstab
tgl@[EMAIL PROTECTED] (T  2008-05-10 16:57:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:22:05 CDT 2008.