pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Some refactoring of logical/worker.c
3+ messages / 3 participants
[nested] [flat]
* pgsql: Some refactoring of logical/worker.c
@ 2020-03-24 14:17 Peter Eisentraut <peter@eisentraut.org>
2020-03-24 14:39 ` Re: pgsql: Some refactoring of logical/worker.c Erik Rijkers <er@xs4all.nl>
0 siblings, 1 reply; 3+ messages in thread
From: Peter Eisentraut @ 2020-03-24 14:17 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Some refactoring of logical/worker.c
This moves the main operations of apply_handle_{insert|update|delete},
that of inserting, updating, deleting a tuple into/from a given
relation, into corresponding
apply_handle_{insert|update|delete}_internal functions. This allows
performing those operations on relations that are not directly the
targets of replication, which is something a later patch will use for
targeting partitioned tables.
Author: Amit Langote <amitlangote09@gmail.com>
Reviewed-by: Rafia Sabih <rafia.pghackers@gmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/CA+HiwqH=Y85vRK3mOdjEkqFK+E=ST=eQiHdpj43L=_eJMOOznQ@mail....
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/97ee604d9bcedf0066986521a7ee15e3aa87be34
Modified Files
--------------
src/backend/replication/logical/worker.c | 174 ++++++++++++++++++++-----------
1 file changed, 115 insertions(+), 59 deletions(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Some refactoring of logical/worker.c
2020-03-24 14:17 pgsql: Some refactoring of logical/worker.c Peter Eisentraut <peter@eisentraut.org>
@ 2020-03-24 14:39 ` Erik Rijkers <er@xs4all.nl>
2020-03-24 15:02 ` Re: pgsql: Some refactoring of logical/worker.c Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 1 reply; 3+ messages in thread
From: Erik Rijkers @ 2020-03-24 14:39 UTC (permalink / raw)
To: Peter Eisentraut <peter@eisentraut.org>; +Cc: pgsql-committers@lists.postgresql.org
On 2020-03-24 15:17, Peter Eisentraut wrote:
> Some refactoring of logical/worker.c
>
> Discussion:
> https://www.postgresql.org/message-id/flat/CA+HiwqH=Y85vRK3mOdjEkqFK+E=ST=eQiHdpj43L=_eJMOOznQ@mail....
>
> Branch
> ------
> master
>
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/97ee604d9bcedf0066986521a7ee15e3aa87be34
>
> Modified Files
> --------------
> src/backend/replication/logical/worker.c | 174
> ++++++++++++++++++++-----------
> 1 file changed, 115 insertions(+), 59 deletions(-)
gcc 9.3.0 mutters under its breath,
worker.c: In function ‘apply_handle_update_internal’:
worker.c:791:22: warning: unused variable ‘remoterel’
[-Wunused-variable]
791 | LogicalRepRelation *remoterel = &relmapentry->remoterel;
|
Otherwise the build is fine (documentation build too, including .pdf,
thanks Tom)
Erik Rijkers
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Some refactoring of logical/worker.c
2020-03-24 14:17 pgsql: Some refactoring of logical/worker.c Peter Eisentraut <peter@eisentraut.org>
2020-03-24 14:39 ` Re: pgsql: Some refactoring of logical/worker.c Erik Rijkers <er@xs4all.nl>
@ 2020-03-24 15:02 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2020-03-24 15:02 UTC (permalink / raw)
To: Erik Rijkers <er@xs4all.nl>; +Cc: pgsql-committers@lists.postgresql.org
On 2020-03-24 15:39, Erik Rijkers wrote:
> worker.c: In function ‘apply_handle_update_internal’:
> worker.c:791:22: warning: unused variable ‘remoterel’
> [-Wunused-variable]
> 791 | LogicalRepRelation *remoterel = &relmapentry->remoterel;
> |
fixed
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-03-24 15:02 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 14:17 pgsql: Some refactoring of logical/worker.c Peter Eisentraut <peter@eisentraut.org>
2020-03-24 14:39 ` Erik Rijkers <er@xs4all.nl>
2020-03-24 15:02 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox