ApsaraDB / PolarDB-for-PostgreSQL

A cloud-native database based on PostgreSQL developed by Alibaba Cloud.
https://apsaradb.github.io/PolarDB-for-PostgreSQL/zh/
Apache License 2.0
2.89k stars 480 forks source link

How does PxPolicy work?[Question] #280

Closed Weijun-H closed 2 years ago

Weijun-H commented 2 years ago

Describe the problem Now I am working on the distributed version of COPY, but I met some troubles.

In struct RelationData, this is a member

/* POLAR px */
struct PxPolicy *rd_pxpolicy; /* Partitioning info if distributed rel */
/* POLAR end */

But I did not find where it was initialized or updated. Does this value work the same way as in Greenplum? If not, how does it work in PolarDB? Thank you very much.

polardb-bot[bot] commented 2 years ago

Hi @Weijun-H ~ Thanks for opening this issue! 🎉

Please make sure you have provided enough information for subsequent discussion.

We will get back to you as soon as possible. ❤️

mrdrivingduck commented 2 years ago

Describe the problem Now I am working on the distributed version of COPY, but I met some troubles.

In struct RelationData, this is a member

/* POLAR px */
struct PxPolicy *rd_pxpolicy; /* Partitioning info if distributed rel */
/* POLAR end */

But I did not find where it was initialized or updated. Does this value work the same way as in Greenplum? If not, how does it work in PolarDB? Thank you very much.

Seems that we are not using it.