-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Comply with PostgreSQL database name format #7198
Conversation
592a9ae
to
914dbc0
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
jenkins test this please |
There was a problem hiding this 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?
914dbc0
to
b63462b
Compare
Done. |
WFG |
I think we should backport it to 6.3, I will backport #7269 and I would prefer we don't diverge too much :) |
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)
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)
) 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)
Support
_
and$
in PostgreSQL database names as all of those are valid characters in a name.Reference:
(Source: https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS)
Closes #7195