From: | mitani <mitani(at)sraw(dot)co(dot)jp> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCH] Allow transaction to partition table using FDW |
Date: | 2019-02-22 08:33:07 |
Message-ID: | 20190222173307.5b44e008ff328988c05c08bf@sraw.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi there,
I modified my patch in response to Ishii-san's pointed out.
I always set 'COMMITTED READ' to SQL in 'begin_remote_xact()', but changed to set it only when 'XactIsoLevel' == 'XACT_READ_COMMITTED'.
I tested transaction query to partition tables on remote servers as follows,
(sent BEGIN - UPDATE - COMMIT query in two sessions)
target record on the same server target record on a different server
--------------------------------------------------------------------------------------------------------
target table is same (wait) (wait)
target table is defferent (no wait) (no wait)
(wait): Session 2 is kept waiting until session 1 commits
(no wait): Session 2 can be committed before session 1 commits
I do not understand FDW's design philosophy, so please let me know if there is a problem with my patch.
The target version of PostgreSQL is 11.2, and target file of this patch is 'contrib/postgresql/connection.c'.
Regards,
--
mitani <mitani(at)sraw(dot)co(dot)jp>
Attachment | Content-Type | Size |
---|---|---|
002-allow-transaction-to-partition-table-using-FDW.patch | application/octet-stream | 662 bytes |
fdw-test-case.pdf | application/pdf | 15.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2019-02-22 08:39:59 | Re: Unified logging system for command-line programs |
Previous Message | Kyotaro HORIGUCHI | 2019-02-22 08:19:56 | Re: shared-memory based stats collector |