From: A J <s5aly@yahoo.com>
To: PG Admin <pgsql-admin@postgresql.org>
Subject: test commit_delay
Date: Wed, 27 Jul 2011 09:33:49 -0700 (PDT)
Message-ID: <1311784429.95728.YahooMailNeo@web120001.mail.ne1.yahoo.com> (raw)
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.
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-admin@postgresql.org
Cc: s5aly@yahoo.com
Subject: Re: test commit_delay
In-Reply-To: <1311784429.95728.YahooMailNeo@web120001.mail.ne1.yahoo.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