콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7806 화면

I have to create db name starting with number; when I start duplicate an existing db and give number then it shows invalid name.  Is there any kind of restriction setup for Postgres; how can I override/change that restriction?

아바타
취소
베스트 답변

In PostgreSQL, if you use number in front or capital letter anywhere in the object name, you need to surround the name with double quote: "70_this_is_my_database"
 

아바타
취소
작성자

Hi John, I tried both double & single quotes but OpenERP is saying "Invalid database name".

Are you trying to duplicate from the Manage Database? Sorry I did not catch that earlier, but from that menu you can only use names that starts not with numbers and does not contain capital letters. You can later rename it using PostgreSQL's tools.

작성자

I had tried by creating new as well as duplicating. Both times I was getting error of invalid database name. I will try by replacing it directly in PostgreSQL.

Yes for both creating and duplicating database from Manage Database you need to specify name that does not start with number and does not contain capital letters.

관련 게시물 답글 화면 활동
1
7월 23
5687
2
6월 23
15250
1
3월 15
5177
0
6월 24
1476
1
6월 24
3210