Re: Pulling data from Postgres DB table for every 5 seconds.

From: Martín Marqués <martin(at)2ndquadrant(dot)com>
To: Mark Fletcher <markf(at)corp(dot)groups(dot)io>, github kran <githubkran(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Pulling data from Postgres DB table for every 5 seconds.
Date: 2019-01-09 23:40:26
Message-ID: c2eae2d8-cadc-2339-6e5c-a4b73369aaf7@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

El 9/1/19 a las 20:22, Mark Fletcher escribió:
> On Wed, Jan 9, 2019 at 12:58 PM github kran <githubkran(at)gmail(dot)com
> <mailto:githubkran(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martín Marqués 2019-01-09 23:43:41 Re: postgres operational
Previous Message Mark Fletcher 2019-01-09 23:22:42 Re: Pulling data from Postgres DB table for every 5 seconds.