Postgresql Support
This is not a bug it's a feature! I am requesting postgreql suport via FDW. BTW I generated the capability to do PG FDW via Rust! https://github.com/posix4e/rpgffi. We probably don't wanna do this as a part of tidb though. Some projects which use this code
- https://github.com/instructure/jsoncdc
- https://github.com/durch/google-bigtable-postgres-fdw
@posix4e Thanks for your suggestion! PG protocol is on our roadmap. But it is a long-term goal. Your repo seems interesting. I will take a look.
I’d suggest an intermediate goal of a foriegn data wrapper. As my bigtable example demonstrated you can implement a simple version easily.
Could possibly need tidb as cache layer first.
Materialized view development in postgres is hard due to aggregation, sorting (million rows).
Child view depends on parent view so any change would require parent to be drop and recreated...
Although, people can use table to replace view, sometime AWS Aurora under large stress, could fail over. Then need a manual reboot (might be smarter way, but it was read as aws core internal error).
Its read replica during master DDL, will lock up...so session number went up to max..
Would you guys think of these user cases ?
Thanks 💯
I think not starting with a simple Fdw is hard. On Mon, Jul 2, 2018 at 2:53 AM M Zhuang [email protected] wrote:
Could possibly need tidb as cache layer first. Materialized view development in postgres is hard due to aggregation, sorting. Child view depends on parent view so any change would require to be changed.. Althrough, people can use table to replace view. But sometime AWS Aurora under large stress, database won't be back online anymore.
Its read replica during master DDL, will lock up...so session number went up to max..
Would you guys think of these user case ?
Thanks 💯
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pingcap/tidb/issues/6459#issuecomment-401741913, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxN27TTyDAQ0YS848BBOojQxQOYXXDcks5uCe2rgaJpZM4Txcqj .
@shenli
@posix4e Thanks for your suggestion! PG protocol is on our roadmap. But it is a long-term goal. Your repo seems interesting. I will take a look.
Road map link looks like it’s out of date, can you give me a new link? I'm also care about postgresql support.
Thanks!
@codelipenghui Here is the link of the roadmap, PostgreSQL protocol compatibility is not in our short term schedule.
@eurekaka thanks.
What made you chose mysql over postgres support?
@shenli please help explain a little bit about the protocol choice, thanks.
@ForsakenHarmony in the MySQL-world it is very common to shard databases. We targeted MySQL support first because we have something to offer their users.
Any progress with this?
Short to medium term focus on MySQL compatibility, no plans yet.
cool feature. can't wait to do it.
Dear friends,
Hope this project is the nice thing you are looking for.
https://github.com/DigitalChinaOpenSource/TiDB-for-PostgreSQL
Maybe you can look at following projects, communications and contributions are welcomed. https://github.com/DigitalChinaOpenSource/TiDB-for-PostgreSQL https://github.com/DigitalChinaOpenSource/DCParser
Dear friends,
Hope this project is the nice thing you are looking for.
https://github.com/DigitalChinaOpenSource/TiDB-for-PostgreSQL
Cool! Now I can get wire compatibility for the following with a single TiDB data-store.:stuck_out_tongue_closed_eyes: :rofl:
- MySQL natively from TiDB.
- MangoDB via https://github.com/MangoDB-io/MangoDB
- PostgreSQL via https://github.com/DigitalChinaOpenSource/TiDB-for-PostgreSQL