Skip to content

Commit

Permalink
Add notes the user must be a superuser (#143)
Browse files Browse the repository at this point in the history
pg_bulkload expects that the user is a superuser.

```
# "test" is not a superuser
$ pg_bulkload sample_csv.ctl --username test --dbname test
NOTICE: BULK LOAD START
ERROR: query failed: ERROR:  must be superuser to use pg_bulkload
DETAIL: query was: SELECT * FROM pgbulkload.pg_bulkload($1)
```

Co-authored-by: Masahiro Ikeda <masahiro.ikeda.us@hco.ntt.co.jp>
  • Loading branch information
mikecaat and Masahiro Ikeda authored Feb 6, 2023
1 parent 59a50a7 commit 3cf3e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pg_bulkload-ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h3>接続オプション</h3>

<dt>-U USERNAME<br />
--username=USERNAME</dt>
<dd>接続するユーザ名を指定します。</dd>
<dd>接続するユーザ名を指定します。pg_bulkloadの実行ユーザは、スーパユーザ権限が必要です。</dd>

<dt>-W<br />
--password</dt>
Expand Down
2 changes: 1 addition & 1 deletion docs/pg_bulkload.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ <h3>Connection Options</h3>

<dt>-U username<br />
--username username</dt>
<dd>User name to connect as. </dd>
<dd>User name to connect as. The user must be a superuser for pg_bulkload execution.</dd>

<dt>-W<br />--password</dt>
<dd>Force pg_bulkload to prompt for a password before connecting to a database.</dd>
Expand Down

0 comments on commit 3cf3e02

Please sign in to comment.