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

Comply with PostgreSQL database name format #7198

Merged
merged 2 commits into from
May 30, 2018

Conversation

kvch
Copy link
Contributor

@kvch kvch commented May 29, 2018

Support _ and $ in PostgreSQL database names as all of those are valid characters in a name.

Reference:

SQL identifiers and key words must begin with a letter (a-z, but also letters with diacritical marks and non-Latin letters) or an underscore (_). Subsequent characters in an identifier or key word can be letters, underscores, digits (0-9), or dollar signs ($). Note that dollar signs are not allowed in identifiers according to the letter of the SQL standard, so their use might render applications less portable.

(Source: https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS)

Closes #7195

@kvch kvch force-pushed the fix/filebeat/postresql-module-db-name branch from 592a9ae to 914dbc0 Compare May 29, 2018 14:01
@codecov
Copy link

codecov bot commented May 29, 2018

Codecov Report

Merging #7198 into master will decrease coverage by 0.27%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #7198      +/-   ##
=========================================
- Coverage   64.78%   64.5%   -0.28%     
=========================================
  Files         769     769              
  Lines       47826   47826              
=========================================
- Hits        30984   30852     -132     
- Misses      13925   14075     +150     
+ Partials     2917    2899      -18
Impacted Files Coverage Δ
filebeat/input/redis/harvester.go 0% <0%> (-79.69%) ⬇️
filebeat/autodiscover/autodiscover.go 0% <0%> (-76.48%) ⬇️
filebeat/input/redis/input.go 3.63% <0%> (-60%) ⬇️
filebeat/fileset/pipelines.go 61.11% <0%> (-27.78%) ⬇️
filebeat/fileset/modules.go 42.98% <0%> (-14.48%) ⬇️
filebeat/channel/outlet.go 90.47% <0%> (-9.53%) ⬇️
filebeat/inputsource/tcp/client.go 79.24% <0%> (-9.44%) ⬇️
filebeat/inputsource/tcp/conn.go 91.3% <0%> (-8.7%) ⬇️
filebeat/fileset/factory.go 67.92% <0%> (-3.78%) ⬇️
filebeat/input/input.go 88.05% <0%> (-2.99%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7abc684...914dbc0. Read the comment docs.

@kvch
Copy link
Contributor Author

kvch commented May 29, 2018

jenkins test this please

Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

LGTM. Could you add a changelog entry?

@kvch kvch force-pushed the fix/filebeat/postresql-module-db-name branch from 914dbc0 to b63462b Compare May 30, 2018 08:21
@kvch
Copy link
Contributor Author

kvch commented May 30, 2018

Done.

@ruflin
Copy link
Contributor

ruflin commented May 30, 2018

WFG

@ruflin ruflin merged commit d21b351 into elastic:master May 30, 2018
@ph
Copy link
Contributor

ph commented Jun 12, 2018

I think we should backport it to 6.3, I will backport #7269 and I would prefer we don't diverge too much :)

@ph ph added the needs_backport PR is waiting to be backported to other branches. label Jun 14, 2018
@ph ph added v6.3.1 and removed needs_backport PR is waiting to be backported to other branches. labels Jun 14, 2018
ph pushed a commit to ph/beats that referenced this pull request Jun 14, 2018
Support `_` and `$` in PostgreSQL database names as all of those are valid characters in a name.

Reference:
> SQL identifiers and key words must begin with a letter (a-z, but also letters with diacritical marks and non-Latin letters) or an underscore (_). Subsequent characters in an identifier or key word can be letters, underscores, digits (0-9), or dollar signs ($). Note that dollar signs are not allowed in identifiers according to the letter of the SQL standard, so their use might render applications less portable.

(Source: https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS)

Closes elastic#7195

(cherry picked from commit d21b351)
ruflin pushed a commit that referenced this pull request Jun 15, 2018
Support `_` and `$` in PostgreSQL database names as all of those are valid characters in a name.

Reference:
> SQL identifiers and key words must begin with a letter (a-z, but also letters with diacritical marks and non-Latin letters) or an underscore (_). Subsequent characters in an identifier or key word can be letters, underscores, digits (0-9), or dollar signs ($). Note that dollar signs are not allowed in identifiers according to the letter of the SQL standard, so their use might render applications less portable.

(Source: https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS)

Closes #7195

(cherry picked from commit d21b351)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
)

Support `_` and `$` in PostgreSQL database names as all of those are valid characters in a name.

Reference:
> SQL identifiers and key words must begin with a letter (a-z, but also letters with diacritical marks and non-Latin letters) or an underscore (_). Subsequent characters in an identifier or key word can be letters, underscores, digits (0-9), or dollar signs ($). Note that dollar signs are not allowed in identifiers according to the letter of the SQL standard, so their use might render applications less portable.

(Source: https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS)

Closes elastic#7195

(cherry picked from commit a74f810)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants