Re: Changeset Extraction v7.1

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: Changeset Extraction v7.1
Date: 2014-01-24 16:28:18
Message-ID: 20140124162818.GU7182@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2014-01-24 00:32:09 +0100, Andres Freund wrote:
> I am fine with reworking things so that the first operation of several
> doesn't PANIC because we still can clearly ERROR out in that case. That
> should press the likelihood of problems into the utterly irrelevant
> area. E.g. ERROR for the rename(oldpath, newpath) and then start a
> critical section for the fsync et al.

So, I've changed stuff around to PANIC only as soon as we're in a state
that's unclear.
To test stuff I've added another .so to the test_decoding contrib that
exposes mkdir/rmdir/chmod/unlink to sql to test those cases in the
contrib's sql/slot.sql. Not sure if we want to keep that, but it's
certainly helpful for now.
The required changes certainly didn't make things look nicer...

I've also changed the temporary name used when creating/dropping slots
to $slotname.tmp.

That doesn't remove PANICs but makes them even less likely. Ok?

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
0001-wal_decoding-Introduce-the-replication-slot-interfac.patch.gz application/x-patch-gzip 15.0 KB
0002-wal_decoding-physical-streaming-replication-walsende.patch.gz application/x-patch-gzip 5.2 KB
0003-wal_decoding-Introduce-changeset-extraction.patch.gz application/x-patch-gzip 72.4 KB
0004-wal_decoding-Only-peg-the-xmin-horizon-for-catalog-t.patch.gz application/x-patch-gzip 4.5 KB
0005-wal_decoding-Allow-walsenders-to-connect-to-a-specif.patch.gz application/x-patch-gzip 4.0 KB
0006-wal_decoding-logical-changeset-extraction-walsender-.patch.gz application/x-patch-gzip 8.1 KB
0007-wal_decoding-pg_recvlogical-Introduce-pg_receivexlog.patch.gz application/x-patch-gzip 9.1 KB
0008-wal_decoding-test_decoding-Add-a-simple-decoding-mod.patch.gz application/x-patch-gzip 27.4 KB
0009-wal_decoding-design-document-v2.4-and-snapshot-build.patch.gz application/x-patch-gzip 12.9 KB
0010-wal_decoding-Documentation-for-replication-slots-and.patch.gz application/x-patch-gzip 13.1 KB
0011-wal_decoding-Temporarily-add-logical-decoding-regres.patch.gz application/x-patch-gzip 1.4 KB
0012-slot-hack-up-pg_receivexlog-support.patch.gz application/x-patch-gzip 1.9 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thom Brown 2014-01-24 17:09:49 Re: Minmax indexes
Previous Message Harold Giménez 2014-01-24 16:21:22 Re: proposal: hide application_name from other users