Skip to content

Commit d85f518

Browse files
author
James William Pye
committed
Remove the locale parameters to Cluster.init().
These parameters are merely pushed into postgresql.conf, and thus are better altered with Cluster.settings.update after initialization takes place. However, the encoding parameter is still necessary.
1 parent 71a0e53 commit d85f518

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

postgresql/cluster.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,11 @@ class ClusterWarning(pg_exc.Warning):
6767

6868
initdb_option_map = {
6969
'encoding' : '-E',
70-
'locale' : '--locale',
71-
'collate' : '--lc-collate',
72-
'ctype' : '--lc-ctype',
73-
'monetary' : '--lc-monetary',
74-
'numeric' : '--lc-numeric',
75-
'time' : '--lc-time',
7670
'authentication' : '-A',
7771
'user' : '-U',
7872
# pwprompt is not supported.
79-
# Cluster.init is *not* intended for interactive use.
73+
# interactive use should be implemented by the application
74+
# calling Cluster.init()
8075
}
8176

8277
class Cluster(pg_api.Cluster):

0 commit comments

Comments
 (0)