-
Notifications
You must be signed in to change notification settings - Fork 648
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
Add include for index in postgres #1362
Add include for index in postgres #1362
Conversation
Thanks for your submission, @lillo42 . For review, things I will look at:
|
I implement based on SQL Server 😄
That is something I want to implement, also NULL {First | Last}, CONCURRENTLY and maybe ONLY/WITH/TABLESPACE/WHERE. 😄
What I should to do when user try to use include a column in Postgres 10 or lower? Throw a exception |
Yes, I would throw an exception for older generators. Or at least logsay a warning (in this case, that may be more conservative, as it guarantees non semantic changes that are physical layout issues don't block migration unexpectedly. While ideally people know their target deployment, some people work in the wild west and need a reminder to get things under control). As for SQL Server vs. Postgres, do you see potential for code reuse. I plan to look myself but have not had time yet. Otherwise this looks good and I'm optimistic to include this soon as part of 3.2.10 |
Table space is a huge feature that should work across all processors as most databases except Sqlite support partitioning. There is a ticket in the backlog for this. |
Chances are remaining tasks here are to update FluentMigrator Documentation repo to document the new processor id, and a bonus would be to add doc explaining advanced index features. |
foreach feature (NULL Last/FIRST, using index algorithm and etc) should I open a new PR or do every thing in this one?
Yes, the code are very similiar. |
Separate PRs are better. Easier to review and more self-contained. If, prior to opening the PR, you can create a small issue with related Postgres 11 documentation (or earlier if feature existed before then), that would be great as well. I get some people just want to go straight to the PR but it helps with google search indexing when we create issues. |
@lillo42 Thanks for the PR and the last addition! |
@lillo42 I should release 3.2.10 by this weekend, and that will likely be the last .NET Core 3.0 release leading up to .NET 5 RTM. I am trying to rush to get the 4.0 branch merged with 3.2.9+changes so that we can easily/smoothly take in .NET 5. |
@lillo42 If interested I created the associated doc task in the documentation repo for FluentMigrator. Ideally it would combine SQL Server and Postgres into the same page. Something like an example with approximate generated SQL would be useful - anything to help land on a Google search for something like "fluentmigrator include column index" |
Add include for index in postgres
Add support for postgres 11