pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Marqués <martin@2ndquadrant.com>
To: Mark Fletcher <markf@corp.groups.io>
To: github kran <githubkran@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Pulling data from Postgres DB table for every 5 seconds.
Date: Wed, 9 Jan 2019 20:40:26 -0300
Message-ID: <c2eae2d8-cadc-2339-6e5c-a4b73369aaf7@2ndquadrant.com> (raw)
In-Reply-To: <CAEO096q6VdnZtKO2-4MkSYe29xguh+UiSsMLoD2L7jSQ=nnWFg@mail.gmail.com>
References: <CACaZr5TQ6CuFe8tPSwNLA68ujTjT_=cCHhA0Nx0+9=BsNV4PYA@mail.gmail.com>
	<CACaZr5Ta1S_wXm-ZaA=2pQU+rsR_tzN5d4NWdju8JYxX-qNnEQ@mail.gmail.com>
	<CAEO096pA=BTA1t5yAnc6HSOWbxL_ciLamrbwVaOjWqAkr_rWUA@mail.gmail.com>
	<CACaZr5S8PKauzFFE2g5L4Kc4k7kY+bANBJfq1qXjEwPws2-dgw@mail.gmail.com>
	<CAEO096r6WPTVkHPujM7p1qQTO0=cic534=JD7D33AT+0kEydMg@mail.gmail.com>
	<CACaZr5TgA5rJSgXxtsJzMb46w8VYj8+f-mBrLc6HggOXcZ7u5Q@mail.gmail.com>
	<CAEO096q6VdnZtKO2-4MkSYe29xguh+UiSsMLoD2L7jSQ=nnWFg@mail.gmail.com>

El 9/1/19 a las 20:22, Mark Fletcher escribió:
> On Wed, Jan 9, 2019 at 12:58 PM github kran <githubkran@gmail.com
> <mailto:githubkran@gmail.com>> wrote:
> 
> 
>     Mark - just curious to know on the logical replication. Do you think
>     I can use it for my use case where i need to publish data to a
>     subscriber when there is a change in the data updated for a row or
>     any new inserts happening on the table. Intention
>     is to send this data in Json format by collecting this modified data
>     in real time to a subscriber.
> 
> From what you've said, it's a great use case for that feature. The one
> thing to note is that you will have to code up a logical replication
> client. If I can do it, pretty much anyone can, but it might take some
> time to get things right. I wrote about some of what I found when
> developing our client a year ago
> here: https://wingedpig.com/2017/09/20/streaming-postgres-changes/
> 
> We ended up just using the included test output plugin that comes with
> the postgresql distribution. And we didn't end up streaming to Kafka or
> anything else first. We just take the data and insert it into our
> elasticsearch cluster directly as we get it.

I realy doubt that would work. Aurora doesn't have WALs, so how would
you be able to decode the transactions?

AFAIU, you can't use logical decoding on Aurora. Maybe you should be
asking at the Aurora support channel.

Regards,

-- 
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services




view thread (15+ messages)  latest in thread

Message-ID: <c2eae2d8-cadc-2339-6e5c-a4b73369aaf7@2ndquadrant.com>
Permalink:  ../c2eae2d8-cadc-2339-6e5c-a4b73369aaf7@2ndquadrant.com/
Also on:    postgresql.org/message-id/c2eae2d8-cadc-2339-6e5c-a4b73369aaf7@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: martin@2ndquadrant.com, markf@corp.groups.io, githubkran@gmail.com
  Subject: Re: Pulling data from Postgres DB table for every 5 seconds.
  In-Reply-To: <c2eae2d8-cadc-2339-6e5c-a4b73369aaf7@2ndquadrant.com>
  References: <CACaZr5TQ6CuFe8tPSwNLA68ujTjT_=cCHhA0Nx0+9=BsNV4PYA@mail.gmail.com> <CACaZr5Ta1S_wXm-ZaA=2pQU+rsR_tzN5d4NWdju8JYxX-qNnEQ@mail.gmail.com> <CAEO096pA=BTA1t5yAnc6HSOWbxL_ciLamrbwVaOjWqAkr_rWUA@mail.gmail.com> <CACaZr5S8PKauzFFE2g5L4Kc4k7kY+bANBJfq1qXjEwPws2-dgw@mail.gmail.com> <CAEO096r6WPTVkHPujM7p1qQTO0=cic534=JD7D33AT+0kEydMg@mail.gmail.com> <CACaZr5TgA5rJSgXxtsJzMb46w8VYj8+f-mBrLc6HggOXcZ7u5Q@mail.gmail.com> <CAEO096q6VdnZtKO2-4MkSYe29xguh+UiSsMLoD2L7jSQ=nnWFg@mail.gmail.com> <c2eae2d8-cadc-2339-6e5c-a4b73369aaf7@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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