Skip to content

Commit 2c48812

Browse files
committed
Remove other cases of developer initials in documentation.
This should improve clarity in cases where where a reader is not familar with the author's initials. :)
1 parent 094224d commit 2c48812

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

postgresql/documentation/bin.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ pg_python Examples
8686
Module execution taking advantage of the new built-ins::
8787

8888
$ python3 -m postgresql.bin.pg_python -h localhost -W -m timeit "prepare('SELECT 1').first()"
89-
Password for pg_python[pq://jwp@localhost:5432]:
89+
Password for pg_python[pq://dbusername@localhost:5432]:
9090
1000 loops, best of 3: 1.35 msec per loop
9191

9292
$ python3 -m postgresql.bin.pg_python -h localhost -W -m timeit -s "ps=prepare('SELECT 1')" "ps.first()"
93-
Password for pg_python[pq://jwp@localhost:5432]:
93+
Password for pg_python[pq://dbusername@localhost:5432]:
9494
1000 loops, best of 3: 442 usec per loop
9595

9696
Simple interactive usage::
9797

9898
$ python3 -m postgresql.bin.pg_python -h localhost -W
99-
Password for pg_python[pq://jwp@localhost:5432]:
99+
Password for pg_python[pq://dbusername@localhost:5432]:
100100
>>> ps = prepare('select 1')
101101
>>> ps.first()
102102
1
@@ -142,22 +142,22 @@ Examples
142142
Modifying a simple configuration file::
143143

144144
$ echo "setting = value" >pg.conf
145-
145+
146146
# change 'setting'
147147
$ python3 -m postgresql.bin.pg_dotconf pg.conf setting=newvalue
148-
148+
149149
$ cat pg.conf
150150
setting = 'newvalue'
151-
151+
152152
# new settings are appended to the file
153153
$ python3 -m postgresql.bin.pg_dotconf pg.conf another_setting=value
154154
$ cat pg.conf
155155
setting = 'newvalue'
156156
another_setting = 'value'
157-
157+
158158
# comment a setting
159159
$ python3 -m postgresql.bin.pg_dotconf pg.conf another_setting
160-
160+
161161
$ cat pg.conf
162162
setting = 'newvalue'
163163
#another_setting = 'value'

postgresql/documentation/clientparameters.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ instructed to do by the ``prompt_password`` key in the parameters::
100100

101101
>>> import postgresql.clientparameters as pg_param
102102
>>> p = pg_param.collect(prompt_title = 'my_prompt!', parameters = {'prompt_password':True})
103-
Password for my_prompt![pq://jwp@localhost:5432]:
103+
Password for my_prompt![pq://dbusername@localhost:5432]:
104104
>>> p
105-
{'host': 'localhost', 'user': 'jwp', 'password': 'secret', 'port': 5432}
105+
{'host': 'localhost', 'user': 'dbusername', 'password': 'secret', 'port': 5432}
106106

107107
If `None`, it will leave the necessary password resolution information in the
108108
parameters dictionary for ``resolve_password``::
109109

110110
>>> p = pg_param.collect(prompt_title = None, parameters = {'prompt_password':True})
111111
>>> p
112-
{'pgpassfile': '/Users/jwp/.pgpass', 'prompt_password': True, 'host': 'localhost', 'user': 'jwp', 'port': 5432}
112+
{'pgpassfile': '/home/{USER}/.pgpass', 'prompt_password': True, 'host': 'localhost', 'user': 'dbusername', 'port': 5432}
113113

114114
Of course, ``'prompt_password'`` is normally specified when ``parsed_options``
115115
received a ``-W`` option from the command line::
@@ -118,9 +118,9 @@ received a ``-W`` option from the command line::
118118
>>> co, ca = op.parse_args(['-W'])
119119
>>> p = pg_param.collect(parsed_options = co)
120120
>>> p=pg_param.collect(parsed_options = co)
121-
Password for [pq://jwp@localhost:5432]:
121+
Password for [pq://dbusername@localhost:5432]:
122122
>>> p
123-
{'host': 'localhost', 'user': 'jwp', 'password': 'secret', 'port': 5432}
123+
{'host': 'localhost', 'user': 'dbusername', 'password': 'secret', 'port': 5432}
124124
>>>
125125

126126

@@ -166,10 +166,10 @@ When resolution occurs, the ``prompt_password``, ``prompt_title``, and
166166

167167
>>> p=pg_param.collect(prompt_title = None)
168168
>>> p
169-
{'pgpassfile': '/Users/jwp/.pgpass', 'host': 'localhost', 'user': 'jwp', 'port': 5432}
169+
{'pgpassfile': '/Users/{USER}/.pgpass', 'host': 'localhost', 'user': 'dbusername', 'port': 5432}
170170
>>> pg_param.resolve_password(p)
171171
>>> p
172-
{'host': 'localhost', 'password': 'secret', 'user': 'jwp', 'port': 5432}
172+
{'host': 'localhost', 'password': 'secret', 'user': 'dbusername', 'port': 5432}
173173

174174

175175
Defaults

0 commit comments

Comments
 (0)