sql: add pg_encoding_to_char() #26380
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
pg_encoding_to_char()
translates the value in thepg_database.encoding
column into a string that represents the encoding. See https://www.postgresql.org/docs/10/static/catalog-pg-database.htmlSince CockroachDB uses UTF-8 everywhere this should be straightforward, but the function should assert that its argument is the value presented in
pg_database.encoding
.PGAdmin issues the following query:
Details can be found here: https://www.postgresql.org/docs/current/static/libpq-control.html
The text was updated successfully, but these errors were encountered: