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

[YSQL] Support of encoding, collation and ctype in CREATE DATABASE #2444

Open
deem0n opened this issue Sep 27, 2019 · 8 comments
Open

[YSQL] Support of encoding, collation and ctype in CREATE DATABASE #2444

deem0n opened this issue Sep 27, 2019 · 8 comments
Labels
area/ysql Yugabyte SQL (YSQL) community/request Issues created by external users kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue
Projects

Comments

@deem0n
Copy link

deem0n commented Sep 27, 2019

Jira Link: DB-1918
In PostgreSQL you can run

CREATE DATABASE mi with encoding 'UTF8'  lc_collate='ru_RU.UTF-8' lc_ctype='ru_RU.UTF-8' template=template0;

Seems nothing is yet supported in Yugabyte :-(

ERROR:  Value other than default for encoding option is not yet supported
ERROR:  Value other than default for lc_collate option is not yet supported
ERROR:  Value other than default for lc_ctype option is not yet supported

tested on PostgreSQL 11.2-YB-2.0.0.0-b0

@yugabyte-ci yugabyte-ci added the community/request Issues created by external users label Sep 27, 2019
@ddorian ddorian added the area/ysql Yugabyte SQL (YSQL) label Sep 27, 2019
@ddorian ddorian added the kind/enhancement This is an enhancement of an existing feature label Sep 30, 2019
@saulfrank
Copy link

Just experienced this problem instead of using postgresql for an application.

@meatherly
Copy link

Same. I was trying to use it with active record. Any suggestions?

@ndeodhar
Copy link
Contributor

ndeodhar commented Feb 7, 2020

Thanks for reporting @saulfrank and @meatherly . Which collate and encoding options were you trying with?

@meatherly
Copy link

I'm no database guru by no means but this is the error I'm currently getting:

Caused by:
PG::FeatureNotSupported: ERROR:  Value other than default for encoding option is not yet supported
LINE 1: CREATE DATABASE "people" ENCODING = 'unicode'
                                     ^
HINT:  Please report the issue on https://github.com/YugaByte/yugabyte-db/issues
/usr/local/bundle/gems/activerecord-5.2.4.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:75:in `exec'

@meatherly
Copy link

btw I also cross referenced your ruby on rails example to see that you have the same line: encoding: unicode in there.

I'm using the kubernetes getting started not sure if that has something todo with it either.

Let me know if there is anymore info you need and I'll do my best to help out as much as I can.

@ndeodhar
Copy link
Contributor

ndeodhar commented Feb 7, 2020

Thanks for the details - that's helpful! It'll be easy for us to add support for UNICODE. Will keep you posted on the progress.

@ndeodhar
Copy link
Contributor

ndeodhar commented Feb 7, 2020

@meatherly Created a smaller issue to track support for UNICODE encoding: #3595

@meatherly
Copy link

Wow! you guys are awesome!!

@m-iancu m-iancu added this to To do in YSQL via automation May 7, 2020
@m-iancu m-iancu changed the title Support of encoding, collation and ctype in CREATE DATABASE [YSQL] Support of encoding, collation and ctype in CREATE DATABASE May 7, 2020
@yugabyte-ci yugabyte-ci added the priority/medium Medium priority issue label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) community/request Issues created by external users kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue
Projects
Status: No status
YSQL
  
To do
Development

No branches or pull requests

6 participants