Skip to content

Scaffold index operators and included (covered) index columns#709

Merged
roji merged 2 commits intonpgsql:devfrom
roji:index-scaffolding-stuff
Nov 17, 2018
Merged

Scaffold index operators and included (covered) index columns#709
roji merged 2 commits intonpgsql:devfrom
roji:index-scaffolding-stuff

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Nov 17, 2018

Closes #704

/cc @khellang

Copy link
Copy Markdown
Contributor

@austindrenski austindrenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One real question on the version detection in testing, otherwise just some nits.

Comment thread src/EFCore.PG/Scaffolding/Internal/NpgsqlDatabaseModelFactory.cs Outdated
Comment thread src/EFCore.PG/Scaffolding/Internal/NpgsqlDatabaseModelFactory.cs Outdated
[Fact]
public void Index_covering()
{
if (Fixture.TestStore.GetPostgresVersion() < new Version(11, 0))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, but should we at some point start testing against multiple release versions of PostgreSQL?

Might be something to consider in a few weeks, after 2.2 and the move to Azure Pipelines.

Copy link
Copy Markdown
Member Author

@roji roji Nov 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A long, long time ago it actually worked this way. The problems were a much longer build time (multiplied by the number of versions supported), and significantly more complexity in maintenance of the tests themselves and/or the CI platform (this may be partially gone with Azure, or not).

As a general rule, I'm not sure we've seen many version-related issues that weren't reported and fixed rather quickly. So while testing all versions is theoretically better, I'm simply not sure the added value is worth the downsides... Am definitely open to discussing this though - maybe open a new issue for discussing?

Comment thread test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlTestStore.cs
@roji
Copy link
Copy Markdown
Member Author

roji commented Nov 17, 2018

@austindrenski thanks for reviewing so quickly! Pushed a commit fixing the nits, and see my comments on the larger issues of versioning.

Copy link
Copy Markdown
Contributor

@austindrenski austindrenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/EFCore.PG/Scaffolding/Internal/NpgsqlDatabaseModelFactory.cs Outdated
@roji roji force-pushed the index-scaffolding-stuff branch from a230366 to 79f86da Compare November 17, 2018 22:34
@roji roji merged commit 8deecec into npgsql:dev Nov 17, 2018
@roji roji deleted the index-scaffolding-stuff branch November 17, 2018 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants