[go: nahoru, domu]

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

SQL Identifiers and key words Documents Needs to be updated #5844

Open
shaikhnazer opened this issue Jul 10, 2024 · 0 comments
Open

SQL Identifiers and key words Documents Needs to be updated #5844

shaikhnazer opened this issue Jul 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shaikhnazer
Copy link

Summary

While going through the below SQL Identifiers and keywords documents you will find the following sentence:

"SQL identifiers and keywords must begin with a letter (a-z or A-Z). Subsequent characters in an identifier or keyword can be letters, underscores, digits (0-9), dollar signs ($), or the number sign (# )."

https://www.enterprisedb.com/docs/epas/latest/reference/sql_reference/01_sql_syntax/02_identifiers_and_key_words/

Based on the above, it seems that tables starting with "_" cannot be created. but It is created successfully.

In my opinion, the content in the EPAS manual and the actual operation are different.

Tested on EPAS 16.1:

postgres=# create table _test(a integer);
CREATE TABLE

We need to update SQL Identifiers and keywords documents as the Postgresql community already has updated documents.

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

Postgresql community Doc:

"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. The SQL standard will not define a key word that contains digits or starts or ends with an underscore, so identifiers of this form are safe against possible conflict with future extensions of the standard."

Where would you like to see this added?

https://github.com/EnterpriseDB/docs/blob/main/advocacy_docs/community/contributing/index.mdx

https://www.enterprisedb.com/docs/epas/latest/reference/sql_reference/01_sql_syntax/02_identifiers_and_key_words/

Rationale

No response

@shaikhnazer shaikhnazer added the enhancement New feature or request label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant