-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgres-xl support for 'DISTRIBUTE BY' #248
Comments
It's actually quite easy to add this capability - see #199 for a similar example if you want to submit a PR. You can also easily add this to your migrations by manually editing the migration code and adding the DISTRIBUTE BY clause. |
I'm interested in picking this up. |
@Jmorjsm great. I'm not familiar with this feature (or postgres-xsl/greenplum), are you saying multiple distributed PostgreSQL DBs have the exact same command syntax, as a sort of standard? I'd be wary of assuming cross-database compatibility here - even if there's similarity between the different DBs, I'm guessing there are syntax differences as well. A comparison with some links to the different database docs would be useful. Otherwise, and to be on the safe side, I'd go with an entity type builder extension such as PostgresXLDistributeBy, to make sure there's no confusion about this being applicable to regular PostgreSQL. There's also the question of what DISTRIBUTE BY accepts as a parameter, and modeling that well. You can write up a quick proposal (nothing too formal), if you'd prefer to submit a PR directly that's fine too. |
Turns out postgres-xl has a few more distribution options than Greenplum, with distribution styles and more distribution strategies. [
DISTRIBUTE BY { REPLICATION | ROUNDROBIN | { [HASH | MODULO ] ( column_name ) } } |
DISTRIBUTED { { BY ( column_name ) } | { RANDOMLY } |
DISTSTYLE { EVEN | KEY | ALL } DISTKEY ( column_name )
] I have implemented all of the above in #1697. [ DISTRIBUTED BY (column [opclass], [ ... ] )
| DISTRIBUTED RANDOMLY | DISTRIBUTED REPLICATED ] |
Hi,
Wonder wheter it's possible to use postgresql-xl with this ef driver. It would have to be possible to provide the
'DISTRIBUTE BY' then somehow on the the table.
CREATE TABLE disttab (col1 int, col2 int, col3 text) DISTRIBUTE BY HASH(col1);
\d+ disttab
CREATE TABLE repltab (col1 int, col2 int) DISTRIBUTE BY REPLICATION;
\d+ repltab
i assume it is not yet possible, would it be possible to add this as new Feature ?
The text was updated successfully, but these errors were encountered: