From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Simon Riggs <simon(at)2ndquadrant(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Daniel Farina <daniel(at)heroku(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: [PATCH 10/16] Introduce the concept that wal has a 'origin' node |
Date: | 2012-06-20 17:50:37 |
Message-ID: | CA+TgmobXV4+tSwgnx7QdbigGo7vwb5a0uHgHdxnu6-w5OeE3xA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Jun 20, 2012 at 1:40 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
>> I realized a problem with that idea this morning: it might work for
>> reading things, but if anyone attempts to write data you've got big
>> problems. Maybe we could get away with forbidding that, not sure.
> Hm, why is writing a problem? You mean io conversion routines writing data?
> Yes, that will be a problem. I am fine with simply forbidding that, we should
> be able to catch that and provide a sensible error message, since SSI we have
> the support for that.
I think we could do something a little more vigorous than that, like
maybe error out if anyone tries to do anything that would write WAL or
acquire an XID. Of course, then the question becomes: then what? We
probably need to think about what happens after that - we don't want
an error replicating one row in one table to permanently break
replication for the entire system.
>> Sorry. I don't think you're planning to do something evil, but before
>> I thought you said you did NOT want to write the code to extract
>> changes as text or something similar.
> Hm. I might have been a bit ambiguous when saying that I do not want to
> provide everything for that use-case.
> Once we have a callpoint that has a correct catalog snapshot for exactly the
> tuple in question text conversion is damn near trivial. The point where you
> get passed all that information (action, tuple, table, snapshot) is the one I
> think the patch should mainly provide.
This is actually a very interesting list. We could rephrase the
high-level question about the design of this feature as "what is the
best way to make sure that you have these things available?". Action
and tuple are trivial to get, and table isn't too hard either. It's
really the snapshot - and all the downstream information that can only
be obtained via using that snapshot - that is the hard part.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2012-06-20 17:51:02 | Re: [PATCH 10/16] Introduce the concept that wal has a 'origin' node |
Previous Message | Simon Riggs | 2012-06-20 17:44:49 | Re: [PATCH 10/16] Introduce the concept that wal has a 'origin' node |