@@ -86,7 +86,7 @@ def getuser():
8686 'KRBSRVNAME' : 'kerberos5_service' ,
8787
8888 # Extensions
89- 'ROLE' : 'role' , # SET ROLE $PGROLE
89+ # 'ROLE' : 'role', # SET ROLE $PGROLE
9090
9191 # This keyword *should* never make it to a connect() function
9292 # as `resolve_password` should be called to fill in the
@@ -144,8 +144,6 @@ def envvars(environ = os.environ, modifier : "environment variable key modifier"
144144 PGKRBSVRNAME -> kerberos5_service
145145 PGSSLKEY -> sslkey
146146
147- PGROLE -> role (role to set when connected)
148-
149147 PGTZ -> settings['timezone']
150148 PGDATESTYLE -> settings['datestyle']
151149 PGCLIENTENCODING -> settings['client_encoding']
@@ -262,12 +260,6 @@ def append_settings(option, opt_str, value, parser):
262260 type = 'choice' ,
263261)
264262
265- option_role = make_option ('--role' ,
266- dest = 'role' ,
267- help = 'run operation as the role' ,
268- type = 'str' ,
269- )
270-
271263def append_db_client_x_parameters (option , opt_str , value , parser ):
272264 parser .values .db_client_parameters .append ((option .dest , value ))
273265make_x_option = partial (make_option , callback = append_db_client_x_parameters )
@@ -313,7 +305,6 @@ def _add_help_option(self):
313305default_optparse_options = [
314306 option_unix ,
315307 option_sslmode ,
316- option_role ,
317308 option_settings ,
318309# Complex Options
319310 option_iri ,
@@ -323,7 +314,7 @@ def _add_help_option(self):
323314class DefaultParser (StandardParser ):
324315 """
325316 Parser that includes a variety of connectivity options.
326- (IRI, sslmode, role(set role), settings)
317+ (IRI, sslmode, settings)
327318 """
328319 standard_option_list = default_optparse_options
329320
0 commit comments