From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: logical changeset generation v6.2 |
Date: | 2013-10-14 21:07:50 |
Message-ID: | 20131014210750.GD25013@awork2.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2013-10-14 15:51:14 +0200, Andres Freund wrote:
> > > It'd probably not hurt to redo those benchmarks to make sure...
> >
> > Yes, I think it would be good to characterize it more precisely than
> > "a bit", so people know what to expect.
>
> A "bit" was below the 3% range for loops of adding columns.
>
> So, any tests you'd like to see?
> * loop around CREATE TABLE/DROP TABLE
> * loop around ALTER TABLE ... ADD COLUMN
> * loop around CREATE FUNCTION/DROP FUNCTION
So, see the attatched benchmark skript. I've always done using a disk
bound and a memory bound (using eatmydata, preventing fsyncs) run.
* unpatched run, wal_level = hot_standby, eatmydata
* unpatched run, wal_level = hot_standby
* patched run, wal_level = hot_standby, eatmydata
* patched run, wal_level = hot_standby
* patched run, wal_level = logical, eatmydata
* patched run, wal_level = logical
Based on those results, there's no difference above noise for
wal_level=hot_standby, with or without the patch. With wal_level=logical
there's a measurable increase in wal traffic (~12-17%), but no
performance decrease above noise.
From my POV that's ok, those are really crazy catalog workloads.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Attachment | Content-Type | Size |
---|---|---|
results.txt | text/plain | 5.6 KB |
bench.sh | application/x-sh | 1.6 KB |
bench-altertable.sql | text/plain | 1.0 KB |
bench-createfunction.sql | text/plain | 125 bytes |
bench-createtable.sql | text/plain | 93 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Kohei KaiGai | 2013-10-14 21:24:12 | Re: Triggers on foreign tables |
Previous Message | Peter Eisentraut | 2013-10-14 20:48:31 | Re: [PATCH] Add use of asprintf() |