コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
7382 ビュー

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
5043
2
6月 23
14286
1
3月 15
4599
0
6月 24
973
1
6月 24
2228