I am trying to create the Postgres database using the terminal,
Normally we can create the database like
CREATE DATABASE mydatabase;
but I wanted to create with the database with a dot. like
CREATE DATABASE my.database;
I was trying to escape the characters. but it doesn't work
CREATE DATABASE my.\database;
CREATE DATABASE my\.database;
as an expected output, it should create the database named my.database
CREATE DATABASE "my.database";
. But since.
is used as seperator for schemas, tables, columns etc. this will probably lead to problems down the road.CREATE DATABASE "com.domain.type"
,CREATE DATABASE "com.domain.type.sub_type"
.....