From: | A J <s5aly(at)yahoo(dot)com> |
---|---|
To: | PG Admin <pgsql-admin(at)postgresql(dot)org> |
Subject: | test commit_delay |
Date: | 2011-07-27 16:33:49 |
Message-ID: | 1311784429.95728.YahooMailNeo@web120001.mail.ne1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I am trying to see the impact of commit_delay.
Set it to 100000 (microseconds), i.e. to 100ms
synchronous_commit is kept to default (i.e. ON)
Now I expect my DML statements to take atleast 100ms. But when I try to execute a few and measure using the timing command of postgres or the time command of linux, the duration is just a few milliseconds.
time /usr/local/pgsql/bin/psql -c "insert into abc values(1);" test
INSERT 0 1
real 0m0.010s
user 0m0.000s
sys 0m0.000s
OR
test=# \timing
Timing is on.
test=# insert into abc values(1);
INSERT 0 1
Time: 2.637 ms
What am I doing wrong ?
Thanks.
From | Date | Subject | |
---|---|---|---|
Next Message | Glyn Astill | 2011-07-27 16:39:45 | Re: Adding line to pg_hba.conf for a specific group makes superuser authentication fail in 9.0? |
Previous Message | Tom Lane | 2011-07-27 16:32:01 | Re: Adding line to pg_hba.conf for a specific group makes superuser authentication fail in 9.0? |