Re: Trigger transaction isolation

2020-09-02 Thread Dirk Lattermann
Thank you, Tom, for this valuable information. On Tue, 01 Sep 2020 11:02:01 -0400 1Tom Lane wrote: > visibility rules are the same as for any other function. So the > answer to the OP's question depends on the transaction's isolation > level and (for typical PLs) on whether the function is VOLA

Re: SSL between Primary and Seconday PostgreSQL DBs

2020-09-02 Thread Peter Eisentraut
On 2020-08-27 12:57, Susan Joseph wrote: So has no one done this before? I'm sure people have done this. But I suggest that if you ask a question on this mailing list, you ask something more concrete, like, I tried to do this, and got stuck here, and tried this and got this error. People c

Re: Reconstructing transaction content after the fact

2020-09-02 Thread Tom Lane
Alvaro Herrera writes: > On 2020-Sep-02, Tom Lane wrote: >> See VACUUM FREEZE. You couldn't hide connections immediately after >> insertion, but if the idea is to sanitize every so often, it'd help. > Starting with 9.4 which introduced the use of HEAP_XMIN_FROZEN > combination in infomask to rep

Re: Reconstructing transaction content after the fact

2020-09-02 Thread Alvaro Herrera
On 2020-Sep-02, Tom Lane wrote: > Lionel Bouton writes: > > Are these t_xmin values ever cleaned up (by VACUUM or another mechanism) > > ? If positive is there a way to configure the approximate time during > > which these values can be recovered ? > > See VACUUM FREEZE. You couldn't hide conn

Re: Reconstructing transaction content after the fact

2020-09-02 Thread Francisco Olarte
Lionel: On Wed, Sep 2, 2020 at 5:46 PM Lionel Bouton wrote: ... > The software uses a modern version of PostgreSQL (9.6 or later) and uses > a transaction to store a vote and the corresponding register entry in > two separate tables. ...> > There's already an obvious angle of attack to correlate

Tuchanka

2020-09-02 Thread Олег Самойлов
Hi all. I have developed a test bed to test high available clusters based on Pacemaker and PostgreSQL. The combination of words "test bed" was given to me by a dictionary. For an russian this is rather funny, so, please, tell me is this suitable phrase for this? The test bed is deployed on Virt

Re: Reconstructing transaction content after the fact

2020-09-02 Thread Tom Lane
Lionel Bouton writes: > Are txids in table file data indeed a means by which you can recover the > data written by a single transaction (assuming the txids don't overflow > the 32bit limit during the life of the cluster) ? They are. You could reduce the connections between different rows by writ

Reconstructing transaction content after the fact

2020-09-02 Thread Lionel Bouton
Hi, I'm a long time PostgreSQL user (since 7.x), familiar with the basics of PostgreSQL internals and I'm currently participating in an audit of a software voting solution which should for obvious reasons avoid to store any link between the voter register and the actual votes. The software uses a