Skip to content
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

Use additional instead of index for admindir in deb_packages #7573

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Apr 26, 2022

Although both index and additional add the column to the primary key,
index is meant to mark columns that make the row unique.
So the column values should contain unique values.
additional instead marks a column that when provided in a where clause
changes the table behvior, which is more correct in this case,
since the packages will be parsed from a different path than the default.

@Smjert Smjert added this to the 5.3.0 milestone Apr 26, 2022
@Smjert Smjert requested review from a team as code owners April 26, 2022 15:59
Although both index and additional add the column to the primary key,
index is meant to mark columns that make the row unique.
So the column values should contain unique values.
additional instead marks a column that when provided in a where clause
changes the table behvior, which is more correct in this case,
since the packages will be parsed from a different path than the default.
@Smjert Smjert force-pushed the stefano/fix/deb-packages-column-attr branch from f89bdcf to 14a1159 Compare April 26, 2022 16:11
@mike-myers-tob mike-myers-tob added the ready for review Pull requests that are ready to be reviewed by a maintainer label Apr 26, 2022
@alessandrogario alessandrogario merged commit 3a9059f into osquery:master Apr 27, 2022
@alessandrogario alessandrogario deleted the stefano/fix/deb-packages-column-attr branch April 27, 2022 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux ready for review Pull requests that are ready to be reviewed by a maintainer virtual tables
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants